Ask Your Question
2

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

asked 2012-10-17 02:58:58 -0600

finid gravatar image

updated 2012-10-18 16:12:29 -0600

Evgeny gravatar image

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?

edit retag flag offensive close merge delete

Comments

I can confirm this error during installation

Toms gravatar imageToms ( 2012-10-17 13:11:38 -0600 )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 gravatar imagefinid ( 2012-10-17 15:21:46 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2012-10-18 16:23:35 -0600

Evgeny gravatar image

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.

edit flag offensive delete link more
0

answered 2015-03-12 12:13:50 -0600

W.F. Yang gravatar image

updated 2015-03-15 10:51:48 -0600

  1. pip install mock
  2. python setup.py develop
edit flag offensive delete link more

Comments

Thanks for bringing this up. Handy for automation.

nongratis gravatar imagenongratis ( 2015-08-03 19:10:15 -0600 )edit
0

answered 2012-10-24 10:50:03 -0600

ReedHedges gravatar image

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...

edit flag offensive delete link more

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 gravatar imageEvgeny ( 2012-10-24 11:04:45 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-10-17 02:58:58 -0600

Seen: 579 times

Last updated: Mar 15 '15