Skip to content

Can't run bpython: AttributeError: module 'xdg' has no attribute '__version__' #1001

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

Closed
lulunac27a opened this issue Oct 4, 2023 · 5 comments
Milestone

Comments

@lulunac27a
Copy link

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__'
@sebastinas
Copy link
Contributor

Which version of pyxdg do you have installed?

@lulunac27a
Copy link
Author

I'm using the latest version of pyxdg: 0.28

@sebastinas
Copy link
Contributor

Do the anaconda packages remove pyxdg's __version__?

@lulunac27a
Copy link
Author

Both pyxdg and xdg doesn't have a __version__ attribute.

@sebastinas
Copy link
Contributor

@sebastinas sebastinas added this to the release-0.25 milestone Jan 15, 2025
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

2 participants