Skip to content

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

Closed
@lulunac27a

Description

@lulunac27a

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__'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions