Comments (14)
okay. I will check this. Despite the messages, the update should still have taken place.
from pi.alert.
I have edited the updatescript. Maybe you test it again.
from pi.alert.
this is what I have now !
looks good!
pi@Pi-hole:~ $ curl -sSL https://github.com/leiweibau/Pi.Alert/raw/main/install/pialert_update.sh | bash
############################################################
Pi.Alert Update
############################################################
Wed 21 Dec 09:33:58 CET 2022
Logfile: pialert_update_2022-12-21_09-33.log
- Checking Python...
- Creating new Pi.Alert backup...
.....................................................................................................
- Cleaning previous version...
- Checking package apt-utils...
- Checking package sqlite3...
- Checking packages dnsutils & net-tools...
- Downloading update file...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 95.5M 100 95.5M 0 0 10.0M 0 0:00:09 0:00:09 --:--:-- 18.4M
- Uncompressing tar file
.................................................................................................
- Deleting downloaded tar file...
- Config backup...
- Updating config file...
- Updating DB permissions...
- Installing sqlite3...
- Set Permissions...
- Create Logfile Symlinks...
- Testing Pi.Alert HW vendors database update process...
*** PLEASE WAIT A COUPLE OF MINUTES...
Traceback (most recent call last):
File "/home/pi/pialert/back/pialert.py", line 30, in <module>
import requests
ImportError: No module named requests
- Testing Pi.Alert Internet IP Lookup...
Traceback (most recent call last):
File "/home/pi/pialert/back/pialert.py", line 30, in <module>
import requests
ImportError: No module named requests
- Testing Pi.Alert Network scan...
*** PLEASE WAIT A COUPLE OF MINUTES...
Traceback (most recent call last):
File "/home/pi/pialert/back/pialert.py", line 30, in <module>
import requests
ImportError: No module named requests
------------------------------------------------------------
Update process finished
------------------------------------------------------------
from pi.alert.
ticket reopened? :)
from pi.alert.
Obviously I need to check the updatescript again.
Was my fork already used before the update? Actually the install script should have installed the module "requests".
Please execute the following command:
python -V
If you use Python 3 please execute the command pip3 install requests
.
If you use Python 2 please execute the command pip install requests
.
from pi.alert.
here it is:
pi@Pi-hole:~ $ python -V
Python 2.7.16
pi@Pi-hole:~ $ pip install requests
-bash: pip: command not found
pi@Pi-hole:~ $ pip3 install requests
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.21.0)
from pi.alert.
this is what I have now and since the last update.
Pi.Alert 3.7.11 (2022-12-17)
from pi.alert.
Apparently pip is not installed either, under version 2. Can you run sudo apt install python-pip
?
from pi.alert.
If you don't depend on Python 2, it might also be better to switch to Python 3. This should eliminate all problems as well.
However, if pialert works for you (devices are found), then you can leave it at that. "requests" is used for push notifications
from pi.alert.
once Python-PIp installed, I have now this:
pi@Pi-hole:~ $ pip install requests
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting requests
Downloading https://files.pythonhosted.org/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl (63kB)
100% |████████████████████████████████| 71kB 1.9MB/s
Collecting urllib3<1.27,>=1.21.1 (from requests)
Downloading https://files.pythonhosted.org/packages/65/0c/cc6644eaa594585e5875f46f3c83ee8762b647b51fc5b0fb253a242df2dc/urllib3-1.26.13-py2.py3-none-any.whl (140kB)
100% |████████████████████████████████| 143kB 1.6MB/s
Collecting certifi>=2017.4.17 (from requests)
Downloading https://files.pythonhosted.org/packages/37/45/946c02767aabb873146011e665728b680884cd8fe70dde973c640e45b775/certifi-2021.10.8-py2.py3-none-any.whl (149kB)
100% |████████████████████████████████| 153kB 1.5MB/s
Collecting idna<3,>=2.5; python_version < "3" (from requests)
Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 1.9MB/s
Collecting chardet<5,>=3.0.2; python_version < "3" (from requests)
Downloading https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178kB)
100% |████████████████████████████████| 184kB 1.3MB/s
Installing collected packages: urllib3, certifi, idna, chardet, requests
The script chardetect is installed in '/home/pi/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed certifi-2021.10.8 chardet-4.0.0 idna-2.10 requests-2.27.1 urllib3-1.26.13
from pi.alert.
This looks good.
If you click on "Scan" in the "Log Viewer" box on the Maintenance page, you should see the log file (unless a scan is currently running). You will see this in the "Status" area at the top). There should be no more errors here.
from pi.alert.
haa yeah.. it works too.. I had nothing there too before.
BTW Thanks for pi-Alert!
from pi.alert.
Now I am willing to close the issue ;)
I wish you a wonderful Christmas season
from pi.alert.
U2 !
it will be great to add this "upgrade" directly on the Maintenance menu.
from pi.alert.
Related Issues (20)
- [Documentation] Document changes to the way the "set_permissions" function works HOT 2
- Error updating pi.alert HOT 7
- Error when setting up Pi.Alert with special characters inside SMTP password HOT 2
- WARNING: Cannot open MAC/Vendor file /usr/share/arp-scan/ieee-iab.txt: No such file or directory HOT 5
- Questions about new features HOT 7
- speedtest ohne funktion HOT 1
- [Idea] Should there be a login notification? HOT 2
- [Feature Request] Update button and stop database HOT 12
- Question: DHCP requests? HOT 2
- Error posting.
- Ongoing Dietpi Install Issues HOT 9
- Time / Timezone
- [Feature Request] Device counters in sidebar clickable HOT 3
- Use API-Call for Home Assistant - Template variable error: 'value_json' is undefined when rendering '{{ value_json.Last_Scan }}' HOT 3
- Issue with gethomepage/homepage widget HOT 7
- Installation waits for enter presses without prompting HOT 3
- Arp-Scan not running after first install HOT 31
- Periodic error writing to the database when it is in read-only mode HOT 1
- Pushover not working HOT 3
- No messages are sent after the update HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi.alert.