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

fails to install req (DistlibException) #47

Open
starenka opened this issue Nov 3, 2013 · 2 comments
Open

fails to install req (DistlibException) #47

starenka opened this issue Nov 3, 2013 · 2 comments

Comments

@starenka
Copy link

starenka commented Nov 3, 2013

2013-11-03 18:23:48,520:curdling.services.base:DEBUG:finder.start()
2013-11-03 18:23:48,521:curdling.services.base:DEBUG:downloader.start()
2013-11-03 18:23:48,523:curdling.services.base:DEBUG:curdler.start()
2013-11-03 18:23:48,524:curdling.services.base:DEBUG:dependencer.start()
2013-11-03 18:23:48,525:curdling.services.base:DEBUG:downloader.queue(from="main", data="{u'url': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default', 'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}")
2013-11-03 18:23:48,525:curdling.services.base:DEBUG:downloader[Thread-11].run(data="{u'url': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default', 'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}")
2013-11-03 18:23:49,189:curdling.services.base:DEBUG:downloader[Thread-11].run(data="{u'url': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default', 'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}"): {u'directory': '/tmp/tmp9Zmflc', u'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}
2013-11-03 18:23:49,190:curdling.services.base:DEBUG:curdler.queue(from="downloader", data="{u'directory': '/tmp/tmp9Zmflc', u'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}")
2013-11-03 18:23:49,190:curdling.services.base:DEBUG:curdler[Thread-21].run(data="{u'directory': '/tmp/tmp9Zmflc', u'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}")
2013-11-03 18:23:49,327:curdling.services.base:DEBUG:curdler[Thread-21].run(data="{u'directory': '/tmp/tmp9Zmflc', u'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}"): {u'wheel': u'/home/starenka/.curds/template_utils-mycompany-py27-none-any.whl', u'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}
2013-11-03 18:23:49,328:curdling.services.base:DEBUG:dependencer.queue(from="curdler", data="{u'wheel': u'/home/starenka/.curds/template_utils-mycompany-py27-none-any.whl', u'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}")
2013-11-03 18:23:49,328:curdling.services.base:DEBUG:dependencer[Thread-31].run(data="{u'wheel': u'/home/starenka/.curds/template_utils-mycompany-py27-none-any.whl', u'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}")
2013-11-03 18:23:49,328:curdling.services.base:ERROR:dependencer[Thread-31].run(from="curdler", data="{u'wheel': u'/home/starenka/.curds/template_utils-mycompany-py27-none-any.whl', u'requirement': 'hg+ssh://mycompany@repo.foocorp.cz//home/mycompany/repos/3rdparty/template_utils@default'}") failed:
/data/.envs/ae662e1269652509/local/lib/python2.7/site-packages/curdling/services/base.py:79 (_worker) result = self(requester, **sender_data) or {}
Traceback (most recent call last):
  File "/data/.envs/ae662e1269652509/local/lib/python2.7/site-packages/curdling/services/base.py", line 79, in _worker
    result = self(requester, **sender_data) or {}
  File "/data/.envs/ae662e1269652509/local/lib/python2.7/site-packages/curdling/services/base.py", line 66, in __call__
    return self.handle(requester, kwargs)
  File "/data/.envs/ae662e1269652509/local/lib/python2.7/site-packages/curdling/services/dependencer.py", line 16, in handle
    wheel = Wheel(data['wheel'])
  File "/data/.envs/ae662e1269652509/local/lib/python2.7/site-packages/distlib/wheel.py", line 159, in __init__
    'filename: %r' % filename)
DistlibException: Invalid name or filename: u'template_utils-mycompany-py27-none-any.whl'
@clarete
Copy link
Owner

clarete commented Nov 4, 2013

This error happens because the new binary file format for python packages (wheel) didn't like the version number in the package template_utils-mycompany-py27-none-any.whl. It should work if you change it to anything compatible to the PEP-0440.

Interesting. a wheel file can be generated with a non standard version number, but it can't be read!

It's not actually a bug in curdling but I'm definitely interested in fixing it on distlib or wherever it is happening.

Thanks for the heads up!

@starenka
Copy link
Author

starenka commented Nov 6, 2013

Thanks for hint, but the version nr was '1.0.0', which I've changed in pure desperation to '1.0', which produces same error (even if i rm the already existing wheel file in ~/.curds before reruning).. ;)

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