You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@umitkaanusta I cloned the repository and use it as CWD. The README barely elaborates on how to run the script, which is why I opened the issue. Let me walk you through my process.
Clone the repository git clone https://github.com/umitkaanusta/TIA
Change directory into repository cd TIA
Install required packages from pip pip install -r requirements.txt
At this point I should be ready to run the script.
Change directory into tia/stalk cd tia/stalk
Open up scrape_user.py in text editor. micro scrape_user.py
Instructions in the bottom of the file are as follows:
\# Create a user instance with the username, like uka = User("umitkaanusta")
\# Then scrape_user(uka)
(This is where the confusion begins.) I Add the following to the top of the file below the import statements. user = User("some_username") scrape_user(user)
Save and close out editor.
Execute the scrape_user.py script. python3 scrape_user.py
I receive the following error:
Traceback (most recent call last):
File "scrape_user.py", line 1, in
from tia.stalk import URL_ROOT
ModuleNotFoundError: No module named 'tia.stalk'
Now I checked the error, yes TIA was written in Windows. Windows editors add some hidden characters at those init.py files, which makes them incompatible with Linux. Thank you for addressing this issue, I'll add a warning in README and work on this compatibility issue later on.
That makes sense now. I will try it out on a windows virtualized instance and see if I have better luck. It explains why the import statements had no effect. I don't have pycharm for Windows, but I will install VScode and try it there.
@umitkaanusta I cloned the repository and use it as CWD. The README barely elaborates on how to run the script, which is why I opened the issue. Let me walk you through my process.
Clone the repository
git clone https://github.com/umitkaanusta/TIA
Change directory into repository
cd TIA
Install required packages from pip
pip install -r requirements.txt
At this point I should be ready to run the script.
Change directory into tia/stalk
cd tia/stalk
Open up
scrape_user.py
in text editor.micro scrape_user.py
Instructions in the bottom of the file are as follows:
(This is where the confusion begins.) I Add the following to the top of the file below the import statements.
user = User("some_username")
scrape_user(user)
Save and close out editor.
Execute the
scrape_user.py
script.python3 scrape_user.py
I receive the following error:
Traceback (most recent call last): File "scrape_user.py", line 1, in from tia.stalk import URL_ROOT ModuleNotFoundError: No module named 'tia.stalk'
conclusion
What am I doing wrong? Why is this not working?
Was this written in Windows by any chance?
Originally posted by @anoduck in #3 (comment)
The text was updated successfully, but these errors were encountered: