Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595434 - =net-proxy/http-replicator-3.0-r6: repcacheman SyntaxError: invalid syntax
Summary: =net-proxy/http-replicator-3.0-r6: repcacheman SyntaxError: invalid syntax
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 591116
  Show dependency tree
 
Reported: 2016-09-28 18:26 UTC by Dirk Olmes
Modified: 2016-10-08 10:13 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild patch: Install python scripts correctly (http-replicator-3.0-r6.ebuild.patch,568 bytes, patch)
2016-10-01 15:53 UTC, Matthew Ogilvie
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Olmes 2016-09-28 18:26:17 UTC
I have Python 3.4 set as the default. Running repcacheman fails with 

(s)xanthippe# /usr/bin/repcacheman
  File "/usr/lib/python-exec/python2.7/repcacheman.py", line 33
    print"Must be root"
                      ^
SyntaxError: invalid syntax

If I patch /usr/bin/repcacheman to execute /usr/bin/repcacheman.py with python2 it works nicely.
Comment 1 Dirk Olmes 2016-09-28 18:35:04 UTC
The http-replicator does not seem to like the Python 3 default either. It dies with:

28 Sep 2016 20:26:42 STAT: HttpClient 1 bound to 127.0.0.1
28 Sep 2016 20:26:47 ERROR: HttpClient 1 caught an exception in __getattr__: HttpClient instance has no attribute 'data'
Comment 2 Matthew Ogilvie 2016-10-01 15:53:31 UTC
Created attachment 448694 [details, diff]
Ebuild patch: Install python scripts correctly

This ebuild patch should probably fix it.  "python_*script" functions arrange to honor PYTHON_COMPAT, while "python_*exe" do not.

(Adapted from the changes in the final version attached to bug 442874; only the next-to-final version made into the tree.)
Comment 3 Pacho Ramos gentoo-dev 2016-10-08 10:13:29 UTC
[master 821f1a7] net-proxy/http-replicator: Fix python2 usage when python3 is default interpreter (#595434)
 1 file changed, 85 insertions(+)
 create mode 100644 net-proxy/http-replicator/http-replicator-3.0-r7.ebuild