Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirroring packages doesn't work? #52

Closed
victorhooi opened this issue Mar 14, 2013 · 2 comments
Closed

Mirroring packages doesn't work? #52

victorhooi opened this issue Mar 14, 2013 · 2 comments

Comments

@victorhooi
Copy link

Hi,

I've downloaded and installed Localshop.

I then add 127.0.0.1 to the list of allowed IPs.

I then start it up via Gunicorn:

(temp)victorhooi@mjolner:~/code/localshop$ localshop run_gunicorn -b 0.0.0.0:8000
2013-03-14 10:59:53 [30230] [INFO] Starting gunicorn 0.17.1
Starting gunicorn 0.17.1
2013-03-14 10:59:53 [30230] [INFO] Listening at: http://0.0.0.0:8000 (30230)
Listening at: http://0.0.0.0:8000 (30230)
2013-03-14 10:59:53 [30230] [INFO] Using worker: sync
Using worker: sync
2013-03-14 10:59:53 [30239] [INFO] Booting worker with pid: 30239
Booting worker with pid: 30239

I startup the Celery daemon as well:

(temp)victorhooi@mjolner:~/code/localshop$ localshop celeryd -B -E

 -------------- celery@mjolner v3.0.12 (Chiastic Slide)
---- **** -----
--- * ***  * -- [Configuration]
-- * - **** --- . broker:      django://localhost//
- ** ---------- . app:         default:0x2532590 (djcelery.loaders.DjangoLoader)
- ** ---------- . concurrency: 8 (processes)
- ** ---------- . events:      ON
- ** ----------
- *** --- * --- [Queues]
-- ******* ---- . celery:      exchange:celery(direct) binding:celery
--- ***** -----

[2013-03-14 10:43:41,536: WARNING/MainProcess] celery@mjolner ready.

I then try to install yolk via this new server:

(temp2)victorhooi@mjolner:~/code/localshop$ pip install -i http://localhost:8000/simple/ yolk
Downloading/unpacking yolk
User for localhost:8000: victorhooi
Password:
  Cannot fetch index base URL http://localhost:8000/simple/
  Could not find any downloads that satisfy the requirement yolk
No distributions at all found for yolk
Storing complete log in /tmp/tmpaOR9jo

It complains about not being able to find http://localhost:8000/simple - however, I can navigate to this fine (after I type in my username and password - which incidentally can be quite annoying at times and would be cool if there was the option to turn it off).

The contents of /tmp/tmpaOR9jo:

------------------------------------------------------------
/home/victorhooi/.venvs/temp2/bin/pip run on Thu Mar 14 20:51:00 2013
Downloading/unpacking yolk

  Getting page http://localhost:8000/simple/yolk/
  Could not fetch URL http://localhost:8000/simple/yolk/: timed out
  Will skip URL http://localhost:8000/simple/yolk/ when looking for download links for yolk
  Getting page http://localhost:8000/simple/
  Could not fetch URL http://localhost:8000/simple/: timed out
  Will skip URL http://localhost:8000/simple/ when looking for download links for yolk
  Cannot fetch index base URL http://localhost:8000/simple/

  URLs to search for versions for yolk:
  * http://localhost:8000/simple/yolk/
  Getting page http://localhost:8000/simple/yolk/
  Could not fetch URL http://localhost:8000/simple/yolk/: timed out
  Will skip URL http://localhost:8000/simple/yolk/ when looking for download links for yolk
  Could not find any downloads that satisfy the requirement yolk

No distributions at all found for yolk

Exception information:
Traceback (most recent call last):
  File "/home/victorhooi/.venvs/temp2/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py", line 139, in main
    status = self.run(options, args)
  File "/home/victorhooi/.venvs/temp2/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py", line 266, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/home/victorhooi/.venvs/temp2/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1026, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/home/victorhooi/.venvs/temp2/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/index.py", line 171, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for yolk

The Celery console doesn't show anything new.

Any thoughts on what's going on here?

Cheers,
Victor

@victorhooi
Copy link
Author

Hi,

This appears to be related to a proxy issue - doesn't support authenticated proxies.

Disabling the proxy seems to work (although it still does seem a bit flaky...possibly timeout issue? Will have to investigate to narrow down).

Cheers,
Victor

@mvantellingen
Copy link
Owner

0.5 has better proxy support. If this still is an issue then please re-open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants