emxsys / callattendant

A python-based automated call attendant, call blocker, and voice messaging system running on a Raspberry Pi. Screens callers and block robocalls and scams with a low-cost Raspberry Pi and modem.
https://emxsys.github.io/callattendant/
MIT License
115 stars 37 forks source link

Virtual Env issues. #162

Closed jumper-d-1981 closed 2 years ago

jumper-d-1981 commented 2 years ago

I installed the virtualenv as described in the install walkthrough. Once I did and set the other two commands, then attempted to download via pip, I get HTTP errors in orange text. I restarted and tried again, same result. Takes forever to complete the attempts and retries but never downloads. Also after that the pi is running pihole super slow. Any thoughts?

jumper-d-1981 commented 2 years ago

well after a second restart it took the command and installed...found the modem...as soon as I dialed a test call, pihole died and then call attendent stopped working. Since pihole died my network dns went down.

Is the two softwares running at the same time, one in virtual...too much for a pi 3b+, I checked systems resources when both were running and only 38% of RAM was used up...but there was plenty of CPU left.

I am confused.

jumper-d-1981 commented 2 years ago

I am so stupid. I am sorry to keep blowing you up. I know that the slowness comes from accidentally installing it outside the virtual. Now It gets almost done installing and not I get a bunch of red text siting an issue with GPIO

jumper-d-1981 commented 2 years ago

Okay. So I ran the cflags command mentioned in another user's issue. It installed the gpio thing. BUT now this is the output from running callattendent --createfolder

"Traceback (most recent call last): File "/home/pi/venv/bin/callattendant", line 8, in sys.exit(main()) File "/home/pi/venv/lib/python3.9/site-packages/callattendant/main.py", line 19, in main from app import main File "/home/pi/venv/lib/python3.9/site-packages/callattendant/app.py", line 35, in from config import Config File "/home/pi/venv/lib/python3.9/site-packages/callattendant/config.py", line 15, in from werkzeug.utils import import_string File "/home/pi/venv/lib/python3.9/site-packages/werkzeug/init.py", line 2, in from .test import Client as Client File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 786, in exec_module File "", line 918, in get_code File "", line 587, in _compile_bytecode ValueError: bad marshal data (invalid reference) "

jumper-d-1981 commented 2 years ago

GOT IT. I think I was panicking. I just uninstalled the virtualenv and call attendant then restarted and reinstalled from beginning after purge. It worked this time...but I made sure to run an update...so I think I was running an out of date or problematic version of python.

Got it. Thanks.