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?

finid's avatar
123
finid
asked 2012-10-17 02:58:58 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2012-10-18 16:12:29 -0500
edit flag offensive 0 remove flag close merge delete

Comments

I can confirm this error during installation

Toms's avatar Toms (2012-10-17 13:11:38 -0500) edit

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 (2012-10-17 15:21:46 -0500) edit
add a comment see more comments

3 Answers

0
  1. pip install mock
  2. python setup.py develop
W.F. Yang's avatar
25
W.F. Yang
answered 2015-03-12 12:13:50 -0500, updated 2015-03-15 10:51:48 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks for bringing this up. Handy for automation.

nongratis's avatar nongratis (2015-08-03 19:10:15 -0500) edit
add a comment 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.

Evgeny's avatar
13.2k
Evgeny
answered 2012-10-18 16:23:35 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment 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...

ReedHedges's avatar
11
ReedHedges
answered 2012-10-24 10:50:03 -0500
edit flag offensive 0 remove flag delete 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 (2012-10-24 11:04:45 -0500) edit
add a comment see more comments