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

(Not a noob issue) ModuleNotFoundError #58

Open
jtranquilli opened this issue Oct 21, 2023 · 3 comments
Open

(Not a noob issue) ModuleNotFoundError #58

jtranquilli opened this issue Oct 21, 2023 · 3 comments

Comments

@jtranquilli
Copy link
Contributor

jtranquilli commented Oct 21, 2023

#gh-33 pertains to 'ModuleNotFoundError' with this mexc_sdk
this StackOverflow post also pertains to the same error

  • I upgraded my Python interpreter and configured Thonny to use the upgraded version.
  • Thonny now uses
    /Library/Frameworks/Python.framework/Versions/3.11/bin/python3
    which is correct, as 3.11 is the new version published on October 24, 2022.
  • I used Thonny's package manager to install mexc-sdk
  • It is now shown to be installed to
    /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
    which is exactly where it should be for the upgraded interpreter
  • Still, when attempting to run the sample python code from the GitHub repo in thonny, I get
from mexc_sdk import Spot
ModuleNotFoundError: No module named 'mexc_sdk'
  • I've attempted to just do this from the command line to see if it was an issue with Thonny but the issue persists.
  • pip install mexc-sdk yields
    Requirement already satisfied: mexc-sdk in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (0.0.1)
    which is exactly the expected result, showing the package to be installed and installed in the right directory
  • Attempting to run the same file in command line using python3 yields the same ModuleNotFoundError.
  • I confirmed that python3 --version yields the correct updated version in the terminal
  • I also want to add that I followed the set up instructions and successfully unzipped the .tar.gz file in the dist/python directory.
@mybitstar
Copy link

Have you solved your problem?

@yakim4iik
Copy link

Has this problem been solved?

@leemidgley
Copy link

leemidgley commented Apr 30, 2024

Have you managed to fix this?, I have the same issue with python 3.12 and I have tried older versions and I have installed the gz download with pip. seems like a common issue.

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

4 participants