Closed frenzymadness closed 7 years ago
Original traceback:
Traceback (most recent call last):
File "/home/lbalhar/.virtualenvs/py3-packaging-porting/bin/pyp2rpm", line 11, in <module>
sys.exit(main())
File "/home/lbalhar/.virtualenvs/py3-packaging-porting/lib/python3.5/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/lbalhar/.virtualenvs/py3-packaging-porting/lib/python3.5/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/lbalhar/.virtualenvs/py3-packaging-porting/lib/python3.5/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/lbalhar/.virtualenvs/py3-packaging-porting/lib/python3.5/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/lbalhar/.virtualenvs/py3-packaging-porting/lib/python3.5/site-packages/pyp2rpm/bin.py", line 99, in main
converted = convertor.convert()
File "/home/lbalhar/.virtualenvs/py3-packaging-porting/lib/python3.5/site-packages/pyp2rpm/convertor.py", line 71, in convert
local_file = self.getter.get()
File "/home/lbalhar/.virtualenvs/py3-packaging-porting/lib/python3.5/site-packages/pyp2rpm/package_getters.py", line 163, in get
request.urlretrieve(url, save_file)
File "/usr/lib64/python3.5/urllib/request.py", line 187, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/usr/lib64/python3.5/urllib/request.py", line 162, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python3.5/urllib/request.py", line 450, in open
req = Request(fullurl, data)
File "/usr/lib64/python3.5/urllib/request.py", line 268, in __init__
self.full_url = url
File "/usr/lib64/python3.5/urllib/request.py", line 294, in full_url
self._parse()
File "/usr/lib64/python3.5/urllib/request.py", line 323, in _parse
raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: 'UNKNOWN'
Sources of the Pymacs package are missing on PyPI that's why data extracted using xmlrpc API contains empty list and download_url': 'UNKNOWN'. The only thing we can do here is showing nicer error message and maybe we could ask the author of the package to add sources to PyPI.
Display an error message such as:
XYZ package has no sources on PyPI, cannot proceed. Please ask the maintainer to upload sources.
Thanks for the explanation. I will try to make PR with this error handling. Also, I will ask maintainer to add sources to PyPI.
Unfortunately, developer of Pymacs is dead and I cannot find a contact to somebody who takes care about this package. Pymacs will remain without sources on PyPI.
Fixed by PR https://github.com/fedora-python/pyp2rpm/pull/75
When I try to use pyp2rpm on Pymacs package I get following error: ValueError: unknown url type: 'UNKNOWN'
In get_url function in package_getters.py release_urls variable is empty list and release_data contains this:
This data comes from
But I cannot find definition of client.release_[data|urls] so I cannot go more to deep.
pyp2rpm version = '3.1.2'