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

Crash when using prerelease option #285

Open
papoteur-mga opened this issue Jul 12, 2022 · 1 comment
Open

Crash when using prerelease option #285

papoteur-mga opened this issue Jul 12, 2022 · 1 comment

Comments

@papoteur-mga
Copy link

pyp2rpm --prerelease azure-common
Traceback (most recent call last):
  File "/usr/bin/pyp2rpm", line 33, in <module>
    sys.exit(load_entry_point('pyp2rpm==3.3.5', 'console_scripts', 'pyp2rpm')())
  File "/home/yves/.local/lib/python3.8/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/home/yves/.local/lib/python3.8/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/home/yves/.local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/yves/.local/lib/python3.8/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pyp2rpm/bin.py", line 215, in main
    converted = convertor.convert()
  File "/usr/lib/python3.8/site-packages/pyp2rpm/convertor.py", line 135, in convert
    local_file = self.getter.get()
  File "/usr/lib/python3.8/site-packages/pyp2rpm/convertor.py", line 195, in getter
    self._getter = package_getters.PypiDownloader(
  File "/usr/lib/python3.8/site-packages/pyp2rpm/package_getters.py", line 142, in __init__
    self.version = version or self.versions[0]
TypeError: 'dict_keys' object is not subscriptable

Note that the package doesn't exist on pypi.org.

pyp2rpm azure-common
azure-common package has no sources on PyPI, Please ask the maintainer to upload sources.

Version: pyp2rpm-3.3.5-1.mga8

@papoteur-mga
Copy link
Author

And the assumption that there is no source files is false.
https://pypi.org/project/azure-common/#files

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

1 participant