First time here? Check out the FAQ!
2

Install Error: Can't download mock-1.0.0.zip
 

Attempting to install the dev version, and after cloning, and running "python2.7 setup.py develop", I got the following error:

Downloading http://www.voidspace.org.uk/downloads/mock-1.0.0.zip
error: Can't download http://www.voidspace.org.uk/downloads/mock-1.0.0.zip: 404 Not Found

Checking that website shows that only a tar.gz version of mock is available.

How can I tell it to download the tar.gz file instead?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
finid's avatar
123
finid
asked 12 years ago
Evgeny's avatar
13.2k
Evgeny
updated 12 years ago

Comments

I can confirm this error during installation

Toms's avatar Toms (12 years ago)

Is this one of those things were the installer is just tweaked to get a tar.gz instead of a zip file, or is it more complicated?

finid's avatar finid (12 years ago)
see more comments

3 Answers

0
  1. pip install mock
  2. python setup.py develop

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
W.F. Yang's avatar
25
W.F. Yang
answered 10 years ago, updated 10 years ago
link

Comments

Thanks for bringing this up. Handy for automation.

nongratis's avatar nongratis (9 years ago)
see more comments
0

This is strange, I can reproduce the error, but also find that repeating the "python setup.py develop" command takes you past this issue.

There is nothing we can do, one of the dependency modules requires mock library, which normally used only by the developers for testing the code.

Issues like this one may happen from time to time, because dependency modules are pulled from third party sites. It might be possible to set up an alternative module repository as a backup, but we don't have one now.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

see more comments
0

I had the same problem, and running setup again, it worked.

Can you provide an askbot distribution that includes all the dependencies already so users don't have to keep downloading them for each installation? Then you can also test that it works with those depedency versions...

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
ReedHedges's avatar
11
ReedHedges
answered 12 years ago
link

Comments

Reed, we might set up an alternative repository hosting for dependencies, but will not be just copying all the dependency code into the askbot repo, because it's just not the right way to do it. With mock the issue is on a third party site... I will try to contact the owner.

Evgeny's avatar Evgeny (12 years ago)
see more comments