-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Python 3.8 / 3.9 dependency problems (werkzeug / gevent/greenlet) #704
Comments
rhenanbartels
added a commit
to rhenanbartels/pywb
that referenced
this issue
Apr 4, 2022
8 tasks
ikreymer
pushed a commit
that referenced
this issue
Apr 10, 2022
Merged
8 tasks
I'm testing the 2.7.0-beta branch and it looks like maybe this change hasn't been merged in yet? I'm hitting this error when uwsgi starts up:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Dependencies that get downloaded and used by pywb have deprecated / changed something and current requirements.txt doesn't work out of the box in py 3.8, 3.9 (ubuntu)
Steps to reproduce the bug
Install pywb with python 3.8 / 3.9 ->
wayback -a
Traceback (most recent call last):
File "/usr/local/bin/wayback", line 11, in
load_entry_point('pywb==2.7.0b1', 'console_scripts', 'wayback')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2854, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2445, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2451, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.8/dist-packages/pywb-2.7.0b1-py3.8.egg/pywb/apps/cli.py", line 1, in
from gevent.monkey import patch_all; patch_all()
File "/usr/local/lib/python3.8/dist-packages/gevent-20.9.0-py3.8-linux-x86_64.egg/gevent/init.py", line 86, in
from gevent._hub_local import get_hub
File "/usr/local/lib/python3.8/dist-packages/gevent-20.9.0-py3.8-linux-x86_64.egg/gevent/_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent.__hub_local')
File "/usr/local/lib/python3.8/dist-packages/gevent-20.9.0-py3.8-linux-x86_64.egg/gevent/_util.py", line 148, in import_c_accel
mod = importlib.import_module(cname)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "src/gevent/_hub_local.py", line 1, in init gevent._gevent_c_hub_local
ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject
wayback --record --live -a --auto-interval 10
File "/usr/local/lib/python3.9/dist-packages/pywb-2.7.0b1-py3.9.egg/pywb/rewrite/default_rewriter.py", line 23, in
from werkzeug.useragents import UserAgent
ModuleNotFoundError: No module named 'werkzeug.useragents'
Expected behavior
pywb would run
Environment
Ubuntu / Rocky linux 8.5
Additional context
Installed greenlet isn't compatible with gevent
can be fixed with pip install greenlet==1.1.2
Installed werkzeug is version 2.1.0: New in version 2.0: This replaces the previous useragents module, but does not provide a built-in parser.
Can be fixed with pip install werkzeug==1.0.1
Should gevent be updated?
Should pywb code using werkzeug be fixed?
The text was updated successfully, but these errors were encountered: