Siyuanw / kinesis

Location Spoofing for iOS 17
GNU General Public License v3.0
255 stars 52 forks source link

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

Open itsblings opened 12 months ago

itsblings commented 12 months ago

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
Duddde commented 11 months ago

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

Tonikby commented 9 months ago

+1

chrishoste commented 7 months ago

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 commented 4 months ago

@Siyuanw please include info above in the readme file