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

Error when running sudo python3. py (ModuleNotFoundError) #23

Open
itsblings opened this issue Nov 24, 2023 · 4 comments
Open

Error when running sudo python3. py (ModuleNotFoundError) #23

itsblings opened this issue Nov 24, 2023 · 4 comments

Comments

@itsblings
Copy link

itsblings commented Nov 24, 2023

Hi, i've managed to run pip3 install -r requirements.txt, waited around 7 mins and got notified that program was installed. I did see ERROR: Could not build wheels for pytun-pmd3, which is required to install pyproject.toml-based projects. However, upon running sudo python3. py I get :

Traceback (most recent call last):
File "/Users/dinoshawn/Desktop/kinesis-main/main.py", line 1, in
from cryptography.hazmat.primitives.asymmetric import rsa
ModuleNotFoundError: No module named 'cryptography'

Anyone can help with this? TIA

steps took:

  1. cd (dragged and insert unzipped file)
  2. pip3 install -r requirements.txt
  3. program installed
  4. sudo python3 main.py
  5. error shown above
@itsblings itsblings changed the title Error when running sudo python3. py Error when running sudo python3. py (ModuleNotFoundError) Nov 24, 2023
@Duddde
Copy link

Duddde commented Dec 8, 2023

Hi, i'm facing the same issue. did you found a solutions ?

@Tonikby
Copy link

Tonikby commented Feb 24, 2024

+1

@chrishoste
Copy link

Hi, I also ran into this issue. Just make sure you use the required Python version 3.11.x. That's really important.

ℹ️: Not sure if this is Mac-only, but at least I am using a Mac and the following will be Mac-specific, but the information might still help others.

So like I said, I also ran into this issue, the Python version that I had installed was something around 3.9.x. You can check this by typing the following into the terminal:

python3 --version

In my case, it is now Python 3.11.5. Just check it if you have something else than 3.11.x it will not work. I tried it with 3.9 and 3.12 and both showed me different errors. You can also check if you have a version specific installed; you can have multiple Python versions installed on your device. So just type:

python3.11 --version

If you get an answer to that, then you are also good to go. If not, just go to https://www.python.org/downloads/macos/ and download any Python 3.11.x. For me, it worked with Python 3.11.5, but it is up to you. And obviously install it.

Once you did that you can check again with:

python3 --version

or

python3.11 --version

Because python3 might still use a different Python version. If python3 shows you the correct version, then you should be good to go to reuse the commands from the readme. If not, just use the following.

python3.11 -m venv ./.venv
source ./.venv/bin/activate
pip3.11 install -r requirements.txt
sudo python3.11 main.py

This will make sure the commands are using the correct versions. Also important to have your device in developer mode and plugged in when running the last command.

Enjoy ☺️

@Carl-Kabat
Copy link

@Siyuanw please include info above in the readme file

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

5 participants