portalocker import error

299 views
Skip to first unread message

Avinash Kachhy

unread,
Dec 21, 2016, 11:13:17 PM12/21/16
to web2py-users
Hello

On installing web2py and an application named Sahana Eden and trying to run the app, I get an error indicating that portalocker cannot be imported in pydal.py.
I see a note that this is fixed on Sept 27.
What do I need to do it so that I get the update? I had installed web2py using the command
git clone --recursive git://github.com/web2py/web2py.git and seems that I did not get the commit from late Sept.

web2py™ Version 2.14.6-stable+timestamp.2016.05.09.19.18.48
Python Python 2.7.12: /usr/bin/python (prefix: /usr)

Traceback

1.
2.
3.
4.
5.
6.
7.
Traceback (most recent call last):
File "/home/web2py/gluon/restricted.py", line 216, in restricted
exec(ccode, environment)
File "/home/web2py/applications/eden/models/000_1st_run.py", line 73, in <module>
from gluon import portalocker
ImportError: cannot import name portalocker

Error snapshot help

<type 'exceptions.ImportError'>(cannot import name portalocker)




Thanks
Avinash Kachhy

Biplov Bhandari

unread,
Dec 22, 2016, 4:55:16 AM12/22/16
to web2py-users
Hi Avinash,

You might need to adjust the web2py version. The preferred one is 2.14.6


Hope this helps!

Best Regards,
Biplov

Avinash Kachhy

unread,
Dec 24, 2016, 2:43:18 PM12/24/16
to web2py-users
That worked.
Thanks
Reply all
Reply to author
Forward
0 new messages