python3 import error in Opalstack

20 views
Skip to first unread message

António Ramos

unread,
Nov 12, 2020, 7:17:23 AM11/12/20
to web...@googlegroups.com
hello i´m using python3 in opastack and got some problems with import 
I installed zeep and web2py is looking in the wrong place for it.
Any help ?


<class 'ImportError'> No module named applications.fileit.modules.zeep

Versão

web2py™Version 2.20.4-stable+timestamp.2020.05.03.05.18.50
PythonPython 3.6.8: /home/ramos/apps/fileit/env/bin/uwsgi (prefix: /home/ramos/apps/fileit/env)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
Traceback (most recent call last):
File "/home/ramos/apps/fileit/web2py/gluon/custom_import.py", line 78, in custom_importer
result = sys.modules[modules_prefix]
KeyError: 'applications.fileit.modules.zeep'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ramos/apps/fileit/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/ramos/apps/fileit/web2py/applications/fileit/controllers/erp_clients.py", line 236, in <module>
File "/home/ramos/apps/fileit/web2py/gluon/globals.py", line 430, in <lambda>
self._caller = lambda f: f()
File "/home/ramos/apps/fileit/web2py/gluon/tools.py", line 3867, in f
return action(*a, **b)
File "/home/ramos/apps/fileit/web2py/applications/fileit/controllers/erp_clients.py", line 191, in ClientDetail
CYGSA=getcygsainfo(cliente)
File "/home/ramos/apps/fileit/web2py/applications/fileit/controllers/erp_clients.py", line 134, in getcygsainfo
import zeep
File "/home/ramos/apps/fileit/web2py/gluon/custom_import.py", line 80, in custom_importer
raise ImportError("No module named %s" % modules_prefix)
ImportError: No module named applications.fileit.modules.zeep

António Ramos

unread,
Nov 12, 2020, 9:22:31 AM11/12/20
to web...@googlegroups.com
solved.
I need to activate my env first !
Reply all
Reply to author
Forward
0 new messages