Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named parse #8

Open
Cappuccinuo opened this issue Jun 10, 2018 · 3 comments
Open

No module named parse #8

Cappuccinuo opened this issue Jun 10, 2018 · 3 comments

Comments

@Cappuccinuo
Copy link

Cappuccinuo commented Jun 10, 2018

Situation: I want to start a blockchain node

Action: sudo python blockchain.py -p 5000

Result:

Traceback (most recent call last):
  File "blockchain.py", line 33, in <module>
    from urllib.parse import urlparse
ImportError: No module named parse

Attemption:
pip install parse(install success, does not solve problem)
pip install urllib(No matching distribution found for urllib)
pip install urlparse(No matching distribution found for urlparse)

Solution:
In blockchain.py, change
from urllib.parse import urlparse
to
from urlparse import urlparse

Could you please tell me the reason why we cannot import urlparse from urllib.parse?

And I wonder if we can only execute all the command like create node, start the blockchain client under root? As it notify me "cannot import Crypto" when I type python blockchain_client.py without sudo.

Thanks.

@Mauricem250
Copy link

from six.moves.urllib.parse import quote as urllib_quote
ImportError: No module named parse

Does anyone know how to fix this?

@CryptoRootz
Copy link

yea im getting the same issue, this tutorial is bullshit bro.... waste of time

@AyazSaiyed
Copy link

from urlparse import urlparse

Have Fun ! #Solved

Repository owner deleted a comment from roneyfraga Mar 18, 2024
Repository owner deleted a comment from roneyfraga Mar 18, 2024
Repository owner deleted a comment from roneyfraga Mar 18, 2024
@github-staff github-staff deleted a comment from wenxingxing Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@Cappuccinuo @CryptoRootz @Mauricem250 @AyazSaiyed and others