Twitter module not found and installation help
shadowpants18 opened this issue · 4 comments
I'm very new to coding, so maybe this is a dumb question, but I keep getting the error module not install - twitter, but I installed it through pip, and when I run pip list, twitter is on there.
Also, are there installation instructions I can follow anywhere?
In the base folder run pip install -r requirements.txt
that will install all the required dependencies globally.
I reinstalled everything by hand since -r requirements.txt kept failing. Also, on run_tacker.sh, what should I be putting for cs and source?
In the example:
cd /home/pi/AboveTustin
source py3/bin/activate
So cd
would be where you have the AboveTustin folder located, and the source is to activate the virtual env that should have been made.
So, basically,
- Clone the repository
- Create a python virtual environment inside that new cloned folder
python3 -m venv venv
- Then run
source venv/bin/activate
- Run
pip3 install -r requirements.txt
if that failspython3 -m pip install -r requirements.txt
- Once pip has installed the required deps type
deactivate
- In the
run_tracker.sh
file edit the linecd /home/pi/AboveTustin
to match where the folder is located - Edit the
source
line to match the location of the virtual environment is; eg/home/pi/AboveTustin/venv/bin/activate
chmod +x run_tracker.sh
(this makes the file executable, may requiresudo
)- Copy the
config.sample.ini
file withcp config.sample.ini config.ini
- Edit the new config.ini file with details for you accounts, latitude and longitude, which driver, etc
- then ./run_tracker.sh and it should be working.
Think that is everything.
great thank you so much!