Giter Site home page Giter Site logo

update impossible about pi.alert HOT 14 CLOSED

leiweibau avatar leiweibau commented on June 19, 2024
update impossible

from pi.alert.

Comments (14)

leiweibau avatar leiweibau commented on June 19, 2024

okay. I will check this. Despite the messages, the update should still have taken place.

from pi.alert.

leiweibau avatar leiweibau commented on June 19, 2024

I have edited the updatescript. Maybe you test it again.

from pi.alert.

francouai avatar francouai commented on June 19, 2024

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.

francouai avatar francouai commented on June 19, 2024

ticket reopened? :)

from pi.alert.

leiweibau avatar leiweibau commented on June 19, 2024

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.

francouai avatar francouai commented on June 19, 2024

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.

francouai avatar francouai commented on June 19, 2024

this is what I have now and since the last update.
Pi.Alert  3.7.11  (2022-12-17)

from pi.alert.

leiweibau avatar leiweibau commented on June 19, 2024

Apparently pip is not installed either, under version 2. Can you run sudo apt install python-pip?

from pi.alert.

leiweibau avatar leiweibau commented on June 19, 2024

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.

francouai avatar francouai commented on June 19, 2024

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.

leiweibau avatar leiweibau commented on June 19, 2024

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.

francouai avatar francouai commented on June 19, 2024

haa yeah.. it works too.. I had nothing there too before.
BTW Thanks for pi-Alert!

from pi.alert.

leiweibau avatar leiweibau commented on June 19, 2024

Now I am willing to close the issue ;)
I wish you a wonderful Christmas season

from pi.alert.

francouai avatar francouai commented on June 19, 2024

U2 !
it will be great to add this "upgrade" directly on the Maintenance menu.

from pi.alert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.