-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
ModuleNotFoundError: No module named 'Cryptodome' #583
Comments
It looks like
Edit: still not working, same message as before plus running the tests manually fails import, I'll keep digging:
Suspecting the script is running Very odd, if I run
|
I was actually in a python virtual env which is why python wasn't seeing the packages 🤦♂️ It might be best to install the tuya-convert python packages in a virtual env to make it cleaner, and that may avoid issues like this in the future. I'll close this as this was really my mistake. |
Might your issues be at all related to #575? Or rather that the issue presented in #575 is related to the python virtual env?
Feel free to submit a PR :) |
I'm having the same issue however I didn't use any virtual environment to install tuya-convert. |
I had this same issue, which was a result of installing the prerequisites as sudo - and then running start_flash.sh without sudo. So to reword this - manually installing the prerequisites from install_prereq.sh without sudo fixed my issue (or running start_flash.sh with sudo). |
I'm experiencing the same problem, however sudo ./start_flash.sh doesn't work for me, the error remains the same I ran the prereq's again, and re-installed tuya_convert, but to no avail. Any more tips? |
getting the same error, any idea how to fix this? |
Same error. Any news ? |
Oooh, this is odd. I've not had this error before, but I have it now. I haven't used tuya-convert in a few months and I can't imagine what I might've done in the meantime! |
I've just done a complete fresh install on a "virgin" Raspberry Pi and got the same error message. Are there any clues what might be going on? There are still a remarkable number of devices (and users) around which can really benefit from this method, if it's still supported. Thanks. |
same here, using Pi 3+ running Buster
|
why is this ticket closed with no solution? also this ticket is closed: fashberg/WThermostatBeca#39 |
@TungstenE2, the original ticket author @ndfred closed this after posting the solution
|
has anyone tried to resolve this issue? I cant seem to be using tuya convert anymore and its a shame. any help please? |
It's an issue of polluted path. It's not an issue with tuya-convert. Python is telling you it can't find this module, which means it is not installed for the python env you are using. Noting the general issue that |
I have the exact same behavior when I run
I originally ran
However, I am able to manually run My main roadblock is I get the following error after running
Per @ndfred 's suggestion above, I tried running
However, again following @ndfred 's comment, I get the following errors after running their respective commands:
I double-checked the version information, and it appears that I have both versions of python:
Also, I tried to run
Here are similar issues I have checked:
Other information:
EDIT: Here are my current log files: |
UPDATE: I'm getting a different error from Sorry for some minor cross-posting, but this other thread was the second most promising: #643 2nd UPDATE: I noticed I still had the following errors in
Both appear to have been solved by running NOTE: This may be an issue with trying to run |
So the install prerequisites isn't quite correct, as there is a flow through of sudo where to the pip commands - so yeah that's not right. But you can get around this by installing them manually. A big hint is that whenever you get a @smizles - you are installing pycryptodome as sudo, Also if I'm not being clear - try running tuya-convert as sudo, as that is what you have installed the modules as. Or try installing the prerequisite modules as non-sudo e.g. |
Hi @micooke,
Here's an interesting fact, I actually did not run either of the two scripts as
Sorry for any miscommunication between my original and update comments. Apparently the modified Raspberry Pi OS that ships with Octopi comes preloaded with Python 2.7.16 and Python 3.7.3, hence why I tried specifying |
I installed this particular module as part of pipeline and it worked. Let me know if this helps. |
this help sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED |
This worked for me |
i get this error |
already resolved |
had same issue
I have resolved my problem by 2 simple commands on pi:
after that you can check if module has been installed properly: Then started flashing again and works fine |
When flashing a new device with
This is with the latest checkout (release v2.4.3) on my Raspberry Pi 4. I'll try and fix the issue and report back.
The text was updated successfully, but these errors were encountered: