Revertron / wyrd

Automatic, NodeInfo based DNS implementation for Yggdrasil
39 stars 3 forks source link

crawler.py not working #10

Open ghost opened 3 years ago

ghost commented 3 years ago

You say:

Run: python3 src/crawler.py

However MySQLdb is not compatible with Python 3.

So you get the error:

python3 src/crawler.py
Traceback (most recent call last):
  File "src/crawler.py", line 8, in <module>
    import MySQLdb
ImportError: No module named 'MySQLdb'

I changed mysqldb to "mysqlclient", etc, and still doesn't work.

Then went back to the original script and tried:

python2 src/crawler.py

Used python2 instead of 3 to see if it'd work with mysqldb, and that fails too:

python2 src/crawler.py
Traceback (most recent call last):
  File "src/crawler.py", line 19, in <module>
    from queue import Queue
ImportError: No module named queue

Though that time it made it further in the script before giving errors.

I'll try again on a different machine later but I have all required dependencies and installed many more in an effort to solve this myself.

Revertron commented 3 years ago

I believe, that MySQLdb is installed by command pip install mysqlclient. Can you try and bring back the results?

ghost commented 3 years ago

Requirement` already satisfied: mysqlclient in /usr/lib/python2.7/dist-packages (1.3.7)

The error persists:

$ python3 src/crawler.py  
Traceback (most recent call last):
  File "src/crawler.py", line 8, in <module>
    import MySQLdb
ImportError: No module named 'MySQLdb'

I have confirmed that the MySQL service is running. I may attempt a clean install and go from there, this isn't the first time this box has had strange dependency issues. May just backup important things and start with a clean slate.