3.11 issues

74 views
Skip to first unread message

xgp.l...@gmail.com

unread,
Sep 14, 2023, 8:49:11 AM9/14/23
to web2py-users
Hi,

Im trying to run web2py + python3.11 + uwgi but unable to make it work.
Seems web2py can't import libraries, when doing the same over a python3 prompt it works.

Example:

<class 'RuntimeError'> Needs redis library to work
try:
import redis
from redis.exceptions import WatchError as RWatchError
from redis.exceptions import ConnectionError as RConnectionError
except ImportError:
logger.error("Needs redis library to work")
raise RuntimeError('Needs redis library to work')
When running the same commands on a python3 prompt they run without issue.

Libraries are installed.
# pip3 list
redis              5.0.0

Change uwsgi plugin from python3 to python311 dont have any effect in the output.

Any ideas,


xgp.l...@gmail.com

unread,
Sep 14, 2023, 10:34:01 PM9/14/23
to web2py-users
I was able to get redis working using redis==4.5.1.
The default pip install version was 5.0.0


Cheers,

xgp.l...@gmail.com

unread,
Sep 14, 2023, 11:01:22 PM9/14/23
to web2py-users
Hi,

Now im running into other issues:

cannot import name 'FDPF' from 'fpdf' (unknown location)
cannot import name 'num2words' from 'num2words' (unknown location)


Suggestions?
Reply all
Reply to author
Forward
0 new messages