[HOME] [DOWNLOAD] [DOCS] [BLOG] [SUPPORT] [TIPS] [ISSUES] [Priority Support]

timesync importerror


#1

When I run timesync I get the error:
File “/usr/lib/sdwdate/url_to_unixtime”, line 14, in
from dateutil.parser import parse
ImportError: No module named parser

but I have python-dateutil installed, if I just run /usr/lib/sdwdate/url_to_unixtime 127.0.0.1 9050 check.torproject.org 80 true
it runs fine…


#2
/usr/lib/sdwdate/url_to_unixtime 127.0.0.1 9050 check.torproject.org 80 true

Works for me in Whonix 12 in both Whonix-Gateway and Whonix-Workstation. (Tested using Qubes-Whonix.)

Using in Whonix? Or outside of Whonix?

Outside of Whonix you would require its dependencies being installed.


#3

I’m using Whonix-Workstation (KVM):
√ Up to date: whonix-workstation-packages-dependencies 2.9-1
√ Up to date: Whonix Build Version: 11.0.0.3.0
running:
/usr/lib/sdwdate/url_to_unixtime 127.0.0.1 9050 check.torproject.org 80 true
works fine for me to, it’s when running timesync that I get that error message.
It seems to be related to apparmor, after aa-complain sdwdate, timesync runs fine without the importerror, but I don’t see any apparmor audit messages for sdwdate…


#4

Using apparmor profiles from the testers repository?


#5

No, I think I’m using stable:
apparmor-profile-sdwdate:
Installed: 3:3.2-1
Candidate: 3:3.2-1
Version table:
*** 3:3.2-1 0
500 http://mirror.whonix.de/whonixdevelopermetafiles/internal/ jessie/main i386 Packages
100 /var/lib/dpkg/status

Now reading the wiki I see:
It is highly recommend to switch to Whonix's testers repository before installing them, because the profiles in the stable repository are much older and have some issues.
guess I should try testing