mirror of
https://github.com/alb-uss/SECMON.git
synced 2026-04-25 17:25:49 +03:00
[GH-ISSUE #21] Problème démarrage secmon.py #19
Labels
No labels
bug
corrected
corrected
feature-request
feature-request
pull-request
question
reliability-improvement
to be checked up
to be checked up
vuln
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SECMON#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @focheur91300 on GitHub (Aug 20, 2021).
Original GitHub issue: https://github.com/alb-uss/SECMON/issues/21
Originally assigned to: @focheur91300 on GitHub.
root@secmon:/# python3 /var/www/secmon/secmon.py
Traceback (most recent call last):
File "/var/www/secmon/secmon.py", line 12, in
import cve_poller
File "/var/www/secmon/cve_poller.py", line 12, in
import base64, os, smtplib, re, requests, time, sqlite3, feedparser, colorama, warnings
File "/usr/local/lib/python3.9/dist-packages/feedparser.py", line 93, in
_base64decode = getattr(base64, 'decodebytes', base64.decodestring)
AttributeError: module 'base64' has no attribute 'decodestring'
@jheeree commented on GitHub (Aug 25, 2021):
That error occurs because the "decodestring" function is deprecated. Now corresponds to "decodebyte" (ref: https://docs.python.org/3/library/base64.html).
The way I was able to fix it was changing directly in the library as follows:
sed -i 's/base64.decodestring/base64.decodebytes/g' /usr/lib/python3/dist-packages/feedparser.py@alb-uss commented on GitHub (Aug 30, 2021):
Hi ! @focheur91300, can you test the @jheeree workaround ? Thx :)
@focheur91300 commented on GitHub (Aug 31, 2021):
Hi ! @Guezone ,
The solution provided by @jheeree works.
The deferred path on my side.
sed -i 's/base64.decodestring/base64.decodebytes/g' /usr/local/lib/python3.9/dist-packages/feedparser.pyFor info I am on docker der my side with the Dockerfile provided on Github.