I am on the latest Whonix Virtualbox, sdwdate does not work.
It is always failing with error
from .exceptions import RequestsDependencyWarning
ModuleNotFoundError: No module named 'requests.exceptions'
I can confirm I have latest python requests installed.
1 Like
The full error is in
Apr 29 15:34:27 host sdwdate[29090]: File "/usr/bin/url_to_unixtime", line 28, in <module>
Apr 29 15:34:27 host sdwdate[29090]: import os, time, socks, requests
Apr 29 15:34:27 host sdwdate[29090]: File "/usr/local/lib/python3.7/dist-packages/requests/__init__.py", line 46, in <module>
Apr 29 15:34:27 host sdwdate[29090]: from .exceptions import RequestsDependencyWarning
Apr 29 15:34:27 host sdwdate[29090]: ModuleNotFoundError: No module named 'requests.exceptions'
Apr 29 15:34:27 host sdwdate[29090]: * remote_status: error
I solved my own problem, an incompatible version of requests was installed by something else. For anyone else with this issue, you need to uninstall the older version and install the system requests.
sudo pip3 uninstall requests
sudo apt-get install --reinstall python3-requests
1 Like
Hello and thank you for reporting this solution.
I have to uninstall and reinstall python3-requests but also python3-urllib3 and python3-chardet …
But now I’m facing another issue. For each remote I have a message :
ERROR: stderr excessive string length: 618
Log extract :
remote 0: xxxxxxxx
- took_time : 0.33 second(s)
- half_took_time: 0.17 second(s)
- ERROR: stderr excessive string length: 618
- exit_code: 1
- stdout: empty
- remote_status: error
remote 1: xxxxxxxxx
- took_time : 0.26 second(s)
- half_took_time: 0.13 second(s)
- ERROR: stderr excessive string length: 618
- exit_code: 1
- stdout: empty
- remote_status: error
remote_times.py: status_list:
[‘error’, ‘error’, ‘error’]
remote_times.py: took_time_list:
[0.33, 0.26, 0.22]
remote_times.py: half_took_time_list:
[0.17, 0.13, 0.11]
remote_times.py: remote_unixtime_list:
[0, 0, 0]
remote_times.py: time_diff_raw_int_list:
[0, 0, 0]
remote_times.py: time_diff_lag_cleaned_float_list:
[0.0, 0.0, 0.0]
2021-08-08 12:23:30 - sdwdate - INFO -
2021-08-08 12:23:30 - sdwdate - INFO - failed_urls: 9 allowed_failures: 7
2021-08-08 12:23:30 - sdwdate - ERROR - Maximum allowed number of failures. Giving up.
2021-08-08 12:23:30 - sdwdate - INFO - Sleeping for 106 minutes.
2021-08-08 12:23:30 - sdwdate - INFO - running command: sleep 6354.945102011
Thank you in advance for your help !
If you create FrankenDebian (DontBreakDebian - Debian Wiki) it is highly unlikely that anyone will/can help.
These aren’t issues with sdwdate but generally breaking dependencies. Such issues are unspecific to Whonix and sdwdate.
General software installation recommendations:
1 Like
OK, thank you for your response and your frankness!