Comments (8)
@abitofco I think the missing step is after the pipenv install
you have to run pipenv shell
which will activate the virtualenvironment
from blockchain.
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.
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.
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.
@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.
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.
@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.
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)
- JS missing output on VSC
- CreateTransaction(sender: "0", recipient: NodeId, amount: 1); in C# Implementation
- My block HOT 1
- Blockchain
- nodes/resolve HOT 8
- /nodes/resolve throws error 500 after registering a node HOT 2
- Order of submission mining/transactions
- blockchain HOT 2
- Tt
- ImportError: cannot import name 'app_ctx' from 'flask.globals' HOT 1
- Blockchain HOT 2
- I am sharing 'همه نقل و انتقالات USDT را از .txt' with you from WPS Office HOT 3
- mehdi5599
- mehdi5599
- [email protected]
- Blockchain #1
- TDALKAZDFZ
- K
- is it decentralized
- 35c1089b1cf59c00a526ebd8b233494d500c71b75208bcd1bc469b665a36214e
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockchain.