Code Monkey home page Code Monkey logo

Comments (8)

bcambel avatar bcambel commented on May 22, 2024 3

@abitofco I think the missing step is after the pipenv install you have to run pipenv shell which will activate the virtualenvironment

from blockchain.

abitofco avatar abitofco commented on May 22, 2024 1

I have this running on 2 OrangePi's now. It turns out I needed to run sudo pip install requests and sudo pip install flask

from blockchain.

bcambel avatar bcambel commented on May 22, 2024

pip install requests normally but in the README they described the steps to follow in the Install section.

pip install pipenv   
pipenv --python=python3.6  
pipenv install 

to install requirements

from blockchain.

abitofco avatar abitofco commented on May 22, 2024

bcambel,

Thank you for the reply! Sadly I have followed the README already and just did a clean install and followed the steps again, still no luck and same error. I also did pip install requests and got "Requirement already satisfied" on the 5 items it lists. Retried pipenv run python blockchain.py and got the same error again.

n00b question, the pipenv install doesn't need anything after it?

from blockchain.

abitofco avatar abitofco commented on May 22, 2024

@bcambel I ran pipenv shell and still got the same error. I will try this on a full version of Ubuntu Server running on a laptop, not an OrangePi, it's too bad the OrangePi's are cheap lol

from blockchain.

Endogen avatar Endogen commented on May 22, 2024

This could be a problem with different Python versions: If you installed the module, then i guess for a different Python version then you run the script with. If you installed it via pip then please see the output from pip --version and compare the Python version that is mentioned there with the Python version you run the script with. If you run it with python blockchain.py then check the Python version with python --version. The versions have to be the same.

For me, if i install modules then with pip3.6 install <module_name> and i run scripts with python3.6 <script>. I would have the same error as you if i would install it with the mentioned pip version but then run the script with python <script> instead of python3.6 <script>

from blockchain.

abitofco avatar abitofco commented on May 22, 2024

@Endogen I'm not sure which module you are referring to.

pip --version returns Python2.7; python --version returns Python2.7.12

When I installed Python3.6 I found and followed these instructions:
sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt-get update sudo apt-get install python3.6

I then did sudo apt-get install python-pip and then installed setuptools and pipenv.

from blockchain.

irshad avatar irshad commented on May 22, 2024

I am running a python app in Ubuntu server and i am getting same error. But! same app is running fin in my local machine.

  File "app.py", line 10, in <module>
    from urllib.request import Request, urlopen
ImportError: No module named request

Don't understand what is problem. Any one can help me on this Here

from blockchain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.