Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion]: Workaround for error on 'time' modules #10

Open
Purp1eW0lf opened this issue Dec 13, 2021 · 7 comments
Open

[Discussion]: Workaround for error on 'time' modules #10

Purp1eW0lf opened this issue Dec 13, 2021 · 7 comments

Comments

@Purp1eW0lf
Copy link

Purp1eW0lf commented Dec 13, 2021

Script may fail with following error module 'time' has no attribute 'clock'

image

Lazy workaround is to open the script and add the following just underneath the imports
time.clock = time.time

image

Not sure if this was only my experience, but wanted to document the quick fix in case any one else struggles

image

@AnonymousWP
Copy link

Thanks for this workaround. I had the same issue and this worked for me.

@jonaslejon
Copy link

Worked here too. Thanks

@sherlocksecurity
Copy link

This will work

sudo pip3 uninstall PyCrypto
sudo pip3 install -U PyCryptodome

@Purp1eW0lf
Copy link
Author

Can confirm the ^above^ works too. Thanks @sherlocksecurity

image

@caveman-dick
Copy link

The other workaround for this is to use python 3.7!

@mazen160 mazen160 changed the title Workaround for error on 'time' modules [Discussion]: Workaround for error on 'time' modules Dec 14, 2021
@mazen160
Copy link
Contributor

mazen160 commented Dec 14, 2021

My preferred option is to use an update Python3 version along with pycryptodome module instead of pycrypto

pip3 uninstall pycrypto
pip3 install pycryptodome

@mazen160
Copy link
Contributor

Another thread for the discussion: #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants