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

ModuleNotFoundError: No module named 'manticore.native'; 'manticore' is not a package #2549

Closed
jcrreis opened this issue May 15, 2022 · 3 comments

Comments

@jcrreis
Copy link

jcrreis commented May 15, 2022

Discussed in https://github.com/trailofbits/manticore/discussions/2548

Originally posted by jcrreis May 15, 2022
Hello,

I'm trying to access manticore ethereum API but i get the following error:

 from manticore.ethereum import ManticoreEVM
ModuleNotFoundError: No module named 'manticore.ethereum'; 'manticore' is not a package

Code:

from manticore.ethereum import ManticoreEVM

m = ManticoreEVM()

Setup:
OS: Linux
Python version: 3.10.4 and 3.8.10 (tried both)

Installation:

Installed via pip with :

pip install manticore

Can you help me ?

Thank you

@ekilmer
Copy link
Contributor

ekilmer commented May 16, 2022

That's odd. Could it be that the pip executable on your path is tied to a different version of Python?

Try the following:

$ python3 -m pip install manticore

$ python3
>>> from manticore.ethereum import ManticoreEVM

@jcrreis
Copy link
Author

jcrreis commented May 16, 2022

If I import via terminal like you suggested it works, the problem seems when I try to import from a .py file and then execute that file with

python3 file.py

It doesn't recognizes manticore package, it's even oddier...

@jcrreis
Copy link
Author

jcrreis commented May 16, 2022

If I import via terminal like you suggested it works, the problem seems when I try to import from a .py file and then execute that file with

python3 file.py

It doesn't recognizes manticore package, it's even oddier...

nvm, i used python, which is tied to global python instalation, instead of python3, fixed, thank you for your help

@ekilmer ekilmer closed this as completed May 16, 2022
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

2 participants