tokamak-network / python-snarks

GNU General Public License v3.0
15 stars 4 forks source link

ImportError: attempted relative import with no known parent package #1

Open ggs134 opened 4 years ago

ggs134 commented 4 years ago

Abstract

(.venv) % python -m python-snark.groth16.groth_setup
/Users/kevin/dev/python-snarks/.venv/bin/python: Error while finding module specification for 'python-snark.groth16.groth_setup' (ModuleNotFoundError: No module named 'python-snark')

Environment Setup(command history)

$ git clone https://github.com/Onther-Tech/python-snarks.git
$ cd python-snarks
$ virtualenv .venv
$ . .venv/bin/activate
(.venv) $ pip install cached_property
(.venv) $ pip install wasmer==1.0.0a3
(.venv) $ pip install wasmer_compiler_cranelift==1.0.0a3
modagi commented 4 years ago

python-snarks works as a package. so for now, you should run this package on the parent directory of python-snarks.

anyway I will add test code. then you will be able to test it comfortably.