pbkdf2_hmac error on PythonAnywhere

43 views
Skip to first unread message

Philip Kilner

unread,
Apr 2, 2019, 4:30:15 AM4/2/19
to web...@googlegroups.com
Hi,

I've just upgraded web2py to 2.18.4 and auth is throwing: -

<type 'exceptions.AttributeError'> 'module' object has no attribute
'pbkdf2_hmac'

...which I understand is because PythonAnywhere are using Python 2.7.6,
but "pbkdf2_hmac" was introduced in 2.7.8.

Is this a known issue?

I'm not expecting to be able to ask PythonAnywheere to upgrade, so is
there a robust workaround for this? (specifically on PythonAnywhere,
where I have limited control over the Python environment)



--

Regards,

PhilK


'a bell is a cup...until it is struck'

Nico Zanferrari

unread,
Apr 2, 2019, 7:14:38 AM4/2/19
to web...@googlegroups.com
Hi,

I've also upgraded on PythonAnywhere from the web2py admin interface to 2.18.4, but without any problems. Does the error happen also with the standard welcome app?

Nico

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Philip Kilner

unread,
Apr 2, 2019, 11:20:33 AM4/2/19
to web2py-users
Since I asked the question, the ever-helpful Giles has popped up in the forum at PythonAnywhere, and he tells me that they work off images, and that mine was an old one - he's organising an update to the latest version, which takes Python to 2.7.12,

I suspect that if you are able to check your Python version, you will be at 2.78 or later - I think I am the exception, by virtue of being on an older image.

--

P

Jacinto Parga

unread,
Jun 5, 2020, 7:14:14 AM6/5/20
to web2py-users
Hi, 

I had the same error upgrading web2py to version 2.20.4

The python version in pythonanywhere was 2.7.6

Changing the python version to 3.5.2 solved it.
Reply all
Reply to author
Forward
0 new messages