openSUSE / py2pack

Generate distribution packages from PyPI
Apache License 2.0
69 stars 40 forks source link

Can not fetch Django #81

Open toabctl opened 7 years ago

toabctl commented 7 years ago
$ py2pack fetch Django
downloading package Django-1.11b1...
from 
Traceback (most recent call last):
  File "/usr/bin/py2pack", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/py2pack/__init__.py", line 334, in main
    args.func(args)
  File "/usr/lib/python2.7/site-packages/py2pack/__init__.py", line 93, in fetch
    urlretrieve(url['url'], url['filename'])
  File "/usr/lib64/python2.7/urllib.py", line 98, in urlretrieve
    return opener.retrieve(url, filename, reporthook, data)
  File "/usr/lib64/python2.7/urllib.py", line 245, in retrieve
    fp = self.open(url, data)
  File "/usr/lib64/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/usr/lib64/python2.7/urllib.py", line 469, in open_file
    return self.open_local_file(url)
  File "/usr/lib64/python2.7/urllib.py", line 483, in open_local_file
    raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 2] No such file or directory: ''
sebix commented 7 years ago

Works for me with py2pack python3-py2pack 0.8.0-4.1

toabctl commented 7 years ago

Works for me with py2pack python3-py2pack 0.8.0-4.1

It does not work for me when I try to fetch the specific version with:

$ py2pack fetch Django 1.11b1
downloading package Django-1.11b1...
from 
Traceback (most recent call last):
  File "/usr/bin/py2pack", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/py2pack/__init__.py", line 334, in main
    args.func(args)
  File "/usr/lib/python3.6/site-packages/py2pack/__init__.py", line 93, in fetch
    urlretrieve(url['url'], url['filename'])
  File "/usr/lib64/python3.6/urllib/request.py", line 248, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/lib64/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python3.6/urllib/request.py", line 511, in open
    req = Request(fullurl, data)
  File "/usr/lib64/python3.6/urllib/request.py", line 329, in __init__
    self.full_url = url
  File "/usr/lib64/python3.6/urllib/request.py", line 355, in full_url
    self._parse()
  File "/usr/lib64/python3.6/urllib/request.py", line 384, in _parse
    raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: ''