Skip to content

Exercise 22 Issue #12

Open
Open

Description

@lcevallo

I have this issue I think is in utils.py with the method pbkdf2_sha256.hash(password)
Traceback (most recent call last):
File "C:\Users\Administrator\Documents\NetBeansProjects\Python\smilecook\app.py", line 8, in
from resources.user import UserListResource
File "C:\Users\Administrator\Documents\NetBeansProjects\Python\smilecook\resources\user.py", line 4, in
from utils import hash_password
File "C:\Users\Administrator\Documents\NetBeansProjects\Python\smilecook\utils.py", line 1, in
from passlib.hash import pbkdf2_sha256
File "C:\Users\Administrator\Documents\NetBeansProjects\Python\smilecook\venv\lib\site-packages\passlib\hash.py", line 25, in
from passlib.registry import proxy
File "C:\Users\Administrator\Documents\NetBeansProjects\Python\smilecook\venv\lib\site-packages\passlib\registry.py", line 12, in
from passlib.ifc import PasswordHash
File "C:\Users\Administrator\Documents\NetBeansProjects\Python\smilecook\venv\lib\site-packages\passlib\ifc.py", line 10, in
from passlib.utils.decor import deprecated_method
File "C:\Users\Administrator\Documents\NetBeansProjects\Python\smilecook\venv\lib\site-packages\passlib\utils_init
.py", line 845, in
from time import clock as timer
ImportError: cannot import name 'clock' from 'time' (unknown location)

Activity

  1. jhigh89 commented on Nov 15, 2021

    @jhigh89

    I was going through this course to start working on setting up my own API's for fun and ran into the same issue. If someone else runs into this, the fix for me was to update passlib to 1.7.2. Looks like some updates were made with python 3.8 and higher that causes this to not work as it sits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions