Package Details: tzupdate 2.1.0-1

Git Clone URL: https://aur.archlinux.org/tzupdate.git (read-only, click to copy)
Package Base: tzupdate
Description: Set the system timezone based on IP geolocation
Upstream URL: http://github.com/cdown/tzupdate
Licenses: Public Domain
Submitter: cdown
Maintainer: cdown
Last Packager: cdown
Votes: 19
Popularity: 0.005227
First Submitted: 2015-09-06 22:18 (UTC)
Last Updated: 2022-01-05 13:42 (UTC)

Latest Comments

dncrash commented on 2022-01-11 00:56 (UTC)

Thanks @cdown, can confirm it works after rebuild.

cdown commented on 2022-01-05 13:38 (UTC) (edited on 2022-01-05 13:39 (UTC) by cdown)

tzupdate works just fine.

[root@roujiamo ~]# pacman -Q tzupdate
tzupdate 2.0.0-1
[root@roujiamo ~]# tzupdate
Set system timezone to Europe/Amsterdam.
[root@roujiamo ~]# type -p python
/usr/bin/python

As with every Python package from AUR, when the system python is upgraded you must rebuild Python packages to pick up new site-packages dir. Nothing different here.

dncrash commented on 2022-01-05 08:52 (UTC) (edited on 2022-01-11 00:55 (UTC) by dncrash)

Completely broken. Same error as in kflak's comment. Edit: My bad, package needed a rebuild due to a Python major version update; works now.

kflak commented on 2021-11-10 06:49 (UTC)

❯ sudo tzupdate Traceback (most recent call last): File "/usr/bin/tzupdate", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module> def _initialize_master_working_set(): File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master ws.require(__requires__) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'tzupdate==2.0.0' distribution was not found and is required by the application

Khal and others have been getting similar errors lately.

cdown commented on 2018-12-16 14:56 (UTC) (edited on 2018-12-16 14:56 (UTC) by cdown)

@flamusdiu it says this in the message :-)

PermissionError: [Errno 13] Could not link "/etc/localtime" ([Errno 13] Permission denied: '/etc/localtime'). Are you root?

flamusdiu commented on 2018-12-16 14:36 (UTC)

A bit old: make sure you run "tzupdate" as root or run "tzupdate -p" as a normal user. If you attempt to run just "tzupdate" as a normal user it will error out (no checking if root before running the code).

paco3346 commented on 2018-08-16 20:24 (UTC)

@sumner The package may have been removed with a pip update. Try to install the aur package again. Otherwise you can manually run sudo pip install -U tzupdate

sumner commented on 2018-08-07 15:24 (UTC)

Does not work after upgrade to Python 3.7:

$ tzupdate
Traceback (most recent call last):
  File "/usr/bin/tzupdate", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3095, in <module>
    @_call_aside
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3079, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 888, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 774, in resolve
    raise DistributionNotFound(req, requirers)

cdown commented on 2016-02-02 10:34 (UTC)

@justin8: Very true, thanks! I'll go fix that.

justin8 commented on 2016-02-02 03:42 (UTC)

python-setuptools should be a dependency, not just a make dep, otherwise it errors out trying to find pkg_resources