Import Issue trying to run Web2py

7 views
Skip to first unread message

Andrea Jans

unread,
Jan 6, 2026, 7:13:19 PM (5 days ago) Jan 6
to Eden ASP
I thought I might ask here first. I'm getting the following error when trying to run web2py:

(.venv) :~/src/eden$ python ../web2py/web2py.py --no-gui -a xxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/home/andrea/src/eden/../web2py/web2py.py", line 44, in <module>
    import gluon.widget
  File "/home/andrea/src/web2py/gluon/__init__.py", line 147, in <module>
    from .compileapp import LOAD
  File "/home/andrea/src/web2py/gluon/compileapp.py", line 17, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'
(.venv) :~/src/eden$ 

Anybody have any clues? I just rebuilt my windows machine with a linux distribution, so I'm not sure what I'm missing.

Andrea Jans

unread,
Jan 6, 2026, 7:42:11 PM (5 days ago) Jan 6
to Eden ASP
Sorry, it was my version of Python. Had 3.12 installed by default. Installed 3.11 and it works now.

Andrea Jans

unread,
Jan 6, 2026, 8:11:20 PM (5 days ago) Jan 6
to Eden ASP
Now, I have an error in Eden: ModuleNotFoundError(No module named 'applications.eden.modules.shapely')

Dominic König

unread,
Jan 7, 2026, 2:44:02 AM (5 days ago) Jan 7
to eden...@googlegroups.com
onsdag 7 januari 2026 02:11:20 CET skrev Andrea Jans:
> Now, I have an error in Eden: ModuleNotFoundError(No module named
> 'applications.eden.modules.shapely')

I guess you could just install shapely again after switching the Python
version (it's a version-specific site package). Make sure to use the correct
pip in this case (pip311).

Dominic

signature.asc
Reply all
Reply to author
Forward
0 new messages