zak100 Posted December 24, 2020 Posted December 24, 2020 (edited) Hi, I am trying to compile a python code on ubuntu 18.04: from __future__ import print_function from web3 import Web3, KeepAliveRPCProvider, IPCProvider import argparse,subprocess,sys At the end I am getting the error: Quote ModuleNotFoundError: No module named 'web3' I found one post which says: Quote You can try to add the web3 script from a CDN like this: cdnjs.com/libraries/web3 Can the above hint help me to solve the web3 module not found error? Please guide me how I can implement the above technique? Zulfi. Edited December 24, 2020 by zak100
fiveworlds Posted December 24, 2020 Posted December 24, 2020 Quote Can the above hint help me to solve the web3 module not found error? No it can't. 1
zak100 Posted December 24, 2020 Author Posted December 24, 2020 Hi, Thanks for your response. I can't install web3.js on my ubuntu machine. I am getting "1 severe vulnerability problem". Is there any way to solve this problem by directing the link of web3 to a python repository? What is the meaning of the post in my first message? Zulfi.
fiveworlds Posted December 24, 2020 Posted December 24, 2020 Quote I am getting "1 severe vulnerability problem". Strange I didn't get any error when installing with python3 and pip. Quote What is the meaning of the post in my first message? That is a CDN for downloading JavaScript to run web3 on a webpage. Similar to jQuery you just need to use the <script> tag. But it won't be available to Python or NodeJS. 1
zak100 Posted December 25, 2020 Author Posted December 25, 2020 Hi, Sorry I don't mean web3.py. <That is a CDN for downloading JavaScript to run web3 on a webpage. Similar to jQuery you just need to use the <script> tag. But it won't be available to Python or NodeJS.> This is what I am talking about. By web3 I mean web3.nodejs. Its a javascript stuff. Kindly look at my following are posts: reddit web_js installation reddit_Ubuntu ethereum_stack exchange Sorry nobody is able to solve my 1 severe vulnerability problem related web3.nodejs Zulfi.
Ghideon Posted December 25, 2020 Posted December 25, 2020 4 hours ago, zak100 said: Sorry nobody is able to solve my 1 severe vulnerability problem related web3.nodejs Here is a discussion that may apply: https://github.com/ethereum/web3.js/issues/2739 Fixing the issue seems to be a work in progress. 1
zak100 Posted December 26, 2020 Author Posted December 26, 2020 Hi, @Ghideon very good link. This can be useful for object oriented programming. @fiveworlds: Thanks, you have solved my problem. Actually it was related to python. When I installed web3.py using pip command the "no web3 module error" went away. Zulfi.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now