realiti4 / pip-upgrade

Upgrade your pip packages with one line. A fast, reliable and easy tool for upgrading all of your packages while not breaking any dependencies
MIT License
35 stars 3 forks source link

KeyError #11

Closed TabulateJarl8 closed 3 years ago

TabulateJarl8 commented 3 years ago

Hey, I decided to update my packages today, and got a KeyError. Here's the full traceback:

[tabulate@xenon ~]$ pip-upgrade
Checking outdated packages...
Skipping dulwich, warning: Name mismatch. This will be improved. Manually upgrade if needed
Traceback (most recent call last):
  File "/home/tabulate/.local/bin/pip-upgrade", line 8, in <module>
    sys.exit(main())
  File "/home/tabulate/.local/lib/python3.9/site-packages/pip_upgrade/main.py", line 98, in main
    pip_upgrade.get_dependencies()
  File "/home/tabulate/.local/lib/python3.9/site-packages/pip_upgrade/dependencies_base.py", line 35, in get_dependencies
    pkg_store = self.dict[pkg_name]
KeyError: 'Panda3D'

Version: 0.5.1 OS: Manjaro (Linux 5.10.60)

Note: This issue is resolved if I manually upgrade Panda3D.

realiti4 commented 3 years ago

Hi, thanks for pointing this out. Cases didn't match for Panda3D. Stored name and pkg_name were different for some reason. Here I applied a quick fix 578885d6206159b939c. I also bumped the version to 0.5.2, should be available on pypi soon too.

realiti4 commented 3 years ago

I also checked dulwich, but didn't get the 'Name mismatch' warning on my end.

TabulateJarl8 commented 3 years ago

The issue with Panda3D seems to have been fixed now, feel free to close this issue