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

Cohen3 uses HTTPPageGetter which has been removed from Twisted #45

Open
ilveroluca opened this issue Feb 13, 2022 · 3 comments
Open

Cohen3 uses HTTPPageGetter which has been removed from Twisted #45

ilveroluca opened this issue Feb 13, 2022 · 3 comments

Comments

@ilveroluca
Copy link

Cohen3 won't start with a recent version of Twisted because it uses the Twisted HTTPPageGetter API which has been removed for security reasons.

$ cohen3 -h
Traceback (most recent call last):
  File "/usr/local/bin/cohen3", line 5, in <module>
    from coherence.cli import main
  File "/usr/local/lib/python3.9/site-packages/coherence/cli.py", line 27, in <module>
    from coherence.base import Coherence, Plugins
  File "/usr/local/lib/python3.9/site-packages/coherence/base.py", line 71, in <module>
    from coherence.upnp.core.device import Device, RootDevice
  File "/usr/local/lib/python3.9/site-packages/coherence/upnp/core/device.py", line 32, in <module>
    from coherence.upnp.core import utils
  File "/usr/local/lib/python3.9/site-packages/coherence/upnp/core/utils.py", line 611, in <module>
    class myHTTPPageGetter(client.HTTPPageGetter):
  File "/usr/local/lib/python3.9/site-packages/twisted/python/deprecate.py", line 475, in __getattribute__
    value = getattr(state._module, name)
AttributeError: module 'twisted.web.client' has no attribute 'HTTPPageGetter'
@ilveroluca
Copy link
Author

For the moment, this can issue can be worked around be requiring twisted = ">=20.3.0,<22".

@opacam
Copy link
Owner

opacam commented Feb 19, 2022

👍 Thanks for reporting!!

For now, we pinned twisted version at PR #43

@pataquets
Copy link

Forgive my newbieness but, might this have something to do with #41?

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