You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't run bpython: AttributeError: module 'xdg' has no attribute '__version__' #1001
When I run the bpython command, I get an error message saying AttributeError: module 'xdg' has no attribute '__version__'. Even when I uninstall and install bpython again, it still gets the same error, and also gets the same error when I upgrade xdg and pyxdg to the latest version.
Traceback (most recent call last):
File "/Users/lulunac/opt/anaconda3/bin/bpython", line 8, in <module>
sys.exit(main())
File "/Users/lulunac/opt/anaconda3/lib/python3.9/site-packages/bpython/curtsies.py", line 204, in main
config, options, exec_args = bpargs.parse(
File "/Users/lulunac/opt/anaconda3/lib/python3.9/site-packages/bpython/args.py", line 215, in parse
logger.info("pyxdg: %s", xdg.__version__) # type: ignore
AttributeError: module 'xdg' has no attribute '__version__'
Activity
sebastinas commentedon Oct 4, 2023
Which version of
pyxdgdo you have installed?lulunac27a commentedon Oct 4, 2023
I'm using the latest version of
pyxdg: 0.28sebastinas commentedon Oct 8, 2023
Do the anaconda packages remove
pyxdg's__version__?lulunac27a commentedon Oct 8, 2023
Both
pyxdgandxdgdoesn't have a__version__attribute.sebastinas commentedon Oct 11, 2023
It does, though: https://github.com/takluyver/pyxdg/blob/master/xdg/__init__.py#L3
Do not fail if modules don't have __version__ (fixes bpython#1001)