pywebcopy icon indicating copy to clipboard operation
pywebcopy copied to clipboard

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

Open atmaniak opened this issue 3 years ago • 6 comments

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

atmaniak avatar Nov 03 '21 07:11 atmaniak

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

rajatomar788 avatar Nov 03 '21 10:11 rajatomar788

Yes, i have the same errors with the tests.

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

atmaniak avatar Nov 03 '21 10:11 atmaniak

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

atmaniak avatar Nov 03 '21 10:11 atmaniak

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

rajatomar788 avatar Nov 04 '21 13:11 rajatomar788

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

ezzra avatar Nov 15 '21 13:11 ezzra

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.

rajatomar788 avatar Nov 16 '21 09:11 rajatomar788