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

AttributeError: 'tuple' object attribute '__doc__' is read-only #91

Open
atmaniak opened this issue Nov 3, 2021 · 6 comments
Open

AttributeError: 'tuple' object attribute '__doc__' is read-only #91

atmaniak opened this issue Nov 3, 2021 · 6 comments

Comments

@atmaniak
Copy link

atmaniak commented Nov 3, 2021

With the latest release (7.0.1) i get this error message when trying examples from documentation.

I'm using Python 3.9.7

File "**/lib/python3.9/site-packages/pywebcopy/elements.py", line 234, in GenericResource html_content_types.__doc__ = "Set of valid html mimetypes." AttributeError: 'tuple' object attribute '__doc__' is read-only

@rajatomar788
Copy link
Owner

Did you try running the tests or on different python versions?

@atmaniak
Copy link
Author

atmaniak commented Nov 3, 2021

Yes, i have the same errors with the tests.

Tested with python 3.8, 3.9 and 3.10 (using docker)

@atmaniak
Copy link
Author

atmaniak commented Nov 3, 2021

Seems like the same error is happening on Github actions and the error is not correctly reported :(

https://github.com/rajatomar788/pywebcopy/runs/4058464007?check_suite_focus=true

@rajatomar788
Copy link
Owner

rajatomar788 commented Nov 4, 2021

The error seems to be suppressed in the github workflows.
So I guess I have to pull the version 7.0.1 for now.

@ezzra
Copy link

ezzra commented Nov 15, 2021

as the error is happening with 7.0.1, what version should I use to make it work?

@rajatomar788
Copy link
Owner

Hey you can use the version on the pypi as it doesn't have any error.
Or if you can use the github repo then go to this
https://github.com/rajatomar788/pywebcopy7

It has the error fixed by a patch.

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

3 participants