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: AttributeError: module 'papis.format' has no attribute 'Document' #11

Open
pinusc opened this issue Apr 30, 2024 · 0 comments · May be fixed by #12
Open

Crash: AttributeError: module 'papis.format' has no attribute 'Document' #11

pinusc opened this issue Apr 30, 2024 · 0 comments · May be fixed by #12

Comments

@pinusc
Copy link

pinusc commented Apr 30, 2024

Running this against current papis main branch (although the version hasn't been updated in over a year), I would get the following error:

AttributeError: module 'papis.format' has no attribute 'Document'

caused on line 151 of main.py.

This crashes papis-rofi and makes it unusable.

This is due to an incorrect import: Document class is actually defined in papis.document, not papis.format, and was previously importable from the latter due to python shenanigans... but now that it's not imported there anymore, the code breaks. There's an easy fix, and I am about to make a PR for it.

Currently, the last release of papis (0.13) doesn't run into this issue, but once the version is bumped then papis-rofi will stop working for everyone.

@pinusc pinusc linked a pull request Apr 30, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant