Plutus icon indicating copy to clipboard operation
Plutus copied to clipboard

No module named Ellepticcurve

Open eduard1989 opened this issue 4 years ago • 11 comments

Have this error:

Traceback (most recent call last): File "plutus.py", line 10, in <module> from ellipticcurve.privateKey import PrivateKey ModuleNotFoundError: No module named 'ellipticcurve'

Tried this: pip install elipticcurve says Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement elipticcurve (from versions: none) ERROR: No matching distribution found for elipticcurve

Help pls!

eduard1989 avatar Apr 25 '20 01:04 eduard1989

#61 pip3 install -r requirements.txt

MisterTeo avatar Apr 25 '20 08:04 MisterTeo

#61 pip3 install -r requirements.txt

Hello, Mister Teo! Yes, i tried all this, the same problem. Using macOS

sudo pip3 install setuptools Password: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support WARNING: The directory '/Users/.........../Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Requirement already satisfied: setuptools in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (41.0.1) sudo pip3 install -r requirements.txt DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support WARNING: The directory '/Users/........./Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Requirement already satisfied: starkbank-ecdsa==0.1.4 in /Library/Python/2.7/site-packages (from -r requirements.txt (line 1)) (0.1.4) python3 plutus.py Traceback (most recent call last): File "plutus.py", line 10, in <module> from ellipticcurve.privateKey import PrivateKey ModuleNotFoundError: No module named 'ellipticcurve'

Could you help pls? Thank you!

eduard1989 avatar Apr 25 '20 12:04 eduard1989

Install python 3...not working with python 2 Python 3.6 or higher

MisterTeo avatar Apr 25 '20 12:04 MisterTeo

Install python 3...not working with python 2 Python 3.6 or higher

Python 3.7.3 installed already

eduard1989 avatar Apr 25 '20 13:04 eduard1989

/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python is says something else remove python 2 and 3 and reinstall only python 3 latest with "add to path" option checked during install process... Linux or windows ?

MisterTeo avatar Apr 25 '20 13:04 MisterTeo

/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python is says something else remove python 2 and 3 and reinstall only python 3 latest with "add to path" option checked during install process... Linux or windows ?

MacOS Will try to remove python

eduard1989 avatar Apr 25 '20 13:04 eduard1989

You should uninstall python and then reinstall Python3 with pip in your path

MisterTeo avatar Apr 25 '20 13:04 MisterTeo

Work good, thank you, Mister Teo

eduard1989 avatar Apr 27 '20 22:04 eduard1989

Hi @eduard1989,

you probably ran pip3 install -r requirements.txt in the context of Python 2. This happens, however, because everytime you update pip, you'll replace the standard pip command with the version you updated. So even pip2 install --upgrade pip will put a /usr/local/bin/pip in your system, messing up the Python 3 version.

But to get around this issue you don't necessarilly have to remove Python 2. Just replace pip3 [...] with python3 -m pip [...] and you're good to go (python3 -m pip install -r requirements.txt).

codeFareith avatar Sep 26 '20 01:09 codeFareith

macuser@M1 plutus % python3 plutus.py Traceback (most recent call last): File "/Users/macuser/Desktop/Projects/Sources/plutus/plutus.py", line 10, in from ellipticcurve.privateKey import PrivateKey ModuleNotFoundError: No module named 'ellipticcurve' macuser@M1 plutus % pip3 freeze > installed.txt macuser@M1 plutus % cat installed.txt bitcoin==1.1.42 ecdsa==0.17.0 elliptic-curve==0.1.2 pybitcointools==1.1.15 six==1.16.0 starkbank-ecdsa==0.1.4 macuser@M1 plutus % python3 --version Python 3.9.2 macuser@M1 plutus %

I don't get the point, why it can find it. No reason. Maybe I am overlooking something. Any advise will help.

hiddenvs avatar Oct 21 '21 09:10 hiddenvs

Try the followings, especially those using the python version (python 3.9) ;

  1. pip install starkbank-ecdsa
  2. pip install elliptic-curve Should work thanks

Whizzkid-FG avatar Mar 04 '22 10:03 Whizzkid-FG