ITADN

Notifypy library issue

#2Closedzagrosbingol 创建于 2023-12-21
Z
zagrosbingolcommented
Hello, Thanks for the great tool! Looking greatly forward to further test it. I am recieving an error when installing notifypy. Proof-Of-Concept: 1.` pip3 install -r requirements.txt` 2. Wait until it is finished and completed 3. Execute: `python3 hexhttp.py` 4. Error recieved: ``` Traceback (most recent call last): File "/home/zaggeb/Desktop/tools/HExHTTP/hexhttp.py", line 16, in <module> from modules.cdn import analyze_cdn File "/home/zaggeb/Desktop/tools/HExHTTP/modules/cdn.py", line 4, in <module> from static.vuln_notify import vuln_found_notify File "/home/zaggeb/Desktop/tools/HExHTTP/static/vuln_notify.py", line 1, in <module> from notifypy import Notify ImportError: cannot import name 'Notify' from 'notifypy' (/home/zaggeb/.local/lib/python3.11/site-packages/notifypy/__init__.py) ``` 5. Execute: ``` pip3 install notifypy ``` 6. Results: ``` Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: notifypy in /home/zaggeb/.local/lib/python3.11/site-packages (1.0.3.0) Requirement already satisfied: gmail>=0.6.3 in /home/zaggeb/.local/lib/python3.11/site-packages (from notifypy) (0.6.3) Requirement already satisfied: twilio in /home/zaggeb/.local/lib/python3.11/site-packages (from notifypy) (8.11.0) Requirement already satisfied: requests>=2.0.0 in /home/zaggeb/.local/lib/python3.11/site-packages (from twilio->notifypy) (2.25.1) Requirement already satisfied: PyJWT<3.0.0,>=2.0.0 in /usr/lib/python3/dist-packages (from twilio->notifypy) (2.6.0) Requirement already satisfied: aiohttp>=3.8.4 in /usr/lib/python3/dist-packages (from twilio->notifypy) (3.8.4) Requirement already satisfied: aiohttp-retry>=2.8.3 in /home/zaggeb/.local/lib/python3.11/site-packages (from twilio->notifypy) (2.8.3) Requirement already satisfied: chardet<5,>=3.0.2 in /home/zaggeb/.local/lib/python3.11/site-packages (from requests>=2.0.0->twilio->notifypy) (4.0.0) Requirement already satisfied: idna<3,>=2.5 in /home/zaggeb/.local/lib/python3.11/site-packages (from requests>=2.0.0->twilio->notifypy) (2.10) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/zaggeb/.local/lib/python3.11/site-packages (from requests>=2.0.0->twilio->notifypy) (1.26.5) Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.0.0->twilio->notifypy) (2022.9.24) ``` 7. Execute main application: ``` python3 hexhttp.py ``` 8. Error recieved: ``` Traceback (most recent call last): File "/home/zaggeb/Desktop/tools/HExHTTP/hexhttp.py", line 16, in <module> from modules.cdn import analyze_cdn File "/home/zaggeb/Desktop/tools/HExHTTP/modules/cdn.py", line 4, in <module> from static.vuln_notify import vuln_found_notify File "/home/zaggeb/Desktop/tools/HExHTTP/static/vuln_notify.py", line 1, in <module> from notifypy import Notify ImportError: cannot import name 'Notify' from 'notifypy' (/home/zaggeb/.local/lib/python3.11/site-packages/notifypy/__init__.py) 9. Execute: ``` pip3 install notify ``` 10. Error recieved: ``` Collecting notify Using cached notify-0.3.1.tar.gz (10 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [4 lines of output] /usr/lib/python3/dist-packages/setuptools/dist.py:775: UserWarning: Usage of dash-separated 'upload-dir' will not be supported in future versions. Please use the underscore name 'upload_dir' instead warnings.warn( Warning: 'classifiers' should be a list, got type 'tuple' error in notify setup command: use_2to3 is invalid. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. ``` Not sure what the issue is, do you mind looking into this further? Environment info: Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
关闭于 2024-01-08 3 条评论