0

I'm trying to set up a wallet on Django, but I keep getting this error:

ImportError: No module named web3

this is how I call it:

from web3 import Web3

(also tried import web3)

TylerH
  • 20,799
  • 66
  • 75
  • 101
rabiaasif
  • 305
  • 3
  • 6
  • 21
  • 1
    Is it this https://github.com/atereshkin/django-web3-auth? If it is, to call the module is not `web3auth`? – schrodingerscatcuriosity Aug 29 '18 at 16:06
  • I'm assuming that import is happening somewhere in your django app's code, so: where is django installed? You'll need to install that `web3` module in the same python environment as django is. – wholevinski Aug 29 '18 at 16:12
  • i was using web3.py, but i found a solution! i needed to create virtual env to do their installs and signed in on my github through terminal to download their packages off the github website – rabiaasif Aug 31 '18 at 18:00

1 Answers1

0

If you install web3 and put it into the same directory as your python file that should work since it's a non-native library.

https://ethereum.stackexchange.com/questions/40350/how-to-solve-importerror-no-module-named-web3

RMass
  • 177
  • 1
  • 2
  • 14
  • i found the solution, web3 only supports certian versions of python ( >3.x ) I was using 2.7. Thanks though. – rabiaasif Aug 30 '18 at 18:32