Package Details: python-txtorcon 0.20.0-1

Git Clone URL: https://aur.archlinux.org/python-txtorcon.git (read-only)
Package Base: python-txtorcon
Description: A Twisted-based Python asynchronous controller library for Tor
Upstream URL: https://txtorcon.readthedocs.org/
Licenses: MIT
Submitter: stormdragon2976
Maintainer: stormdragon2976
Last Packager: stormdragon2976
Votes: 4
Popularity: 1.137836
First Submitted: 2017-06-28 15:21
Last Updated: 2018-05-07 10:39

Latest Comments

stormdragon2976 commented on 2018-05-07 10:42

@petr.nehez: You are awesome! Thanks for this. :)

petr.nehez commented on 2018-05-07 05:48

Change 91 to 92 in the following line:

sed -i '77,91 {s/^/#/}' $srcdir/${_pkgname}-${pkgver}-py2/setup.py

stormdragon2976 commented on 2018-05-06 14:01

@Polichronucci, @NickGeek :I am not all that good with python. So long as the package builds without problems, I can manage it, but if it breaks down I'm not sure how to fix it.

If you know how to fix, and would like to help maintain it, let me know and I can add you.

The only other solution I can offer for a temporary fix is to downgrade the version number to the previous version again, so it will at least build.

Polichronucci commented on 2018-05-06 10:41

@NickGeek same here. Adding output with better formatting.

==> Making package: python-txtorcon 0.20.0-1 (Sun May  6 13:42:24 EEST 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found txtorcon-0.20.0.tar.gz
==> Validating source files with md5sums...
    txtorcon-0.20.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting txtorcon-0.20.0.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
running build
running build_py
package init file 'twisted/plugins/__init__.py' not found (or not a regular file)
  File "setup.py", line 92
    ],
    ^
SyntaxError: invalid syntax
==> ERROR: A failure occurred in build().
    Aborting...

NickGeek commented on 2018-05-06 05:43

I'm getting this on an update:

:: Checking python-txtorcon integrity... ==> Making package: python-txtorcon 0.20.0-1 (Sun May 6 17:43:17 NZST 2018) ==> Retrieving sources... -> Found txtorcon-0.20.0.tar.gz ==> Validating source files with md5sums... txtorcon-0.20.0.tar.gz ... Passed :: Building python-txtorcon package(s)... ==> Making package: python-txtorcon 0.20.0-1 (Sun May 6 17:43:17 NZST 2018) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Removing existing $pkgdir/ directory... ==> Starting build()... running build running build_py creating build creating build/lib creating build/lib/test copying test/test_torconfig.py -> build/lib/test copying test/test_router.py -> build/lib/test copying test/py3_torstate.py -> build/lib/test copying test/test_controller.py -> build/lib/test copying test/test_attacher.py -> build/lib/test copying test/init.py -> build/lib/test copying test/test_torinfo.py -> build/lib/test copying test/test_web.py -> build/lib/test copying test/test_log.py -> build/lib/test copying test/test_stream.py -> build/lib/test copying test/test_circuit.py -> build/lib/test copying test/test_torstate.py -> build/lib/test copying test/test_fsm.py -> build/lib/test copying test/test_microdesc.py -> build/lib/test copying test/test_util.py -> build/lib/test copying test/test_torcontrolprotocol.py -> build/lib/test copying test/util.py -> build/lib/test copying test/test_endpoints.py -> build/lib/test copying test/test_addrmap.py -> build/lib/test copying test/test_socks.py -> build/lib/test copying test/test_util_imports.py -> build/lib/test creating build/lib/txtorcon copying txtorcon/endpoints.py -> build/lib/txtorcon copying txtorcon/_metadata.py -> build/lib/txtorcon copying txtorcon/init.py -> build/lib/txtorcon copying txtorcon/socks.py -> build/lib/txtorcon copying txtorcon/_microdesc_parser.py -> build/lib/txtorcon copying txtorcon/attacher.py -> build/lib/txtorcon copying txtorcon/circuit.py -> build/lib/txtorcon copying txtorcon/controller.py -> build/lib/txtorcon copying txtorcon/torcontrolprotocol.py -> build/lib/txtorcon copying txtorcon/spaghetti.py -> build/lib/txtorcon copying txtorcon/interface.py -> build/lib/txtorcon copying txtorcon/stream.py -> build/lib/txtorcon copying txtorcon/log.py -> build/lib/txtorcon copying txtorcon/util.py -> build/lib/txtorcon copying txtorcon/addrmap.py -> build/lib/txtorcon copying txtorcon/torconfig.py -> build/lib/txtorcon copying txtorcon/torinfo.py -> build/lib/txtorcon copying txtorcon/torstate.py -> build/lib/txtorcon copying txtorcon/web.py -> build/lib/txtorcon copying txtorcon/router.py -> build/lib/txtorcon package init file 'twisted/plugins/init.py' not found (or not a regular file) creating build/lib/twisted creating build/lib/twisted/plugins copying twisted/plugins/txtorcon_endpoint_parser.py -> build/lib/twisted/plugins File "setup.py", line 92 ], ^ SyntaxError: invalid syntax ==> ERROR: A failure occurred in build(). Aborting... :: failed to build python-txtorcon package(s)

FirefighterBlu3 commented on 2017-10-18 20:11

installs python-ipaddress which conflicts with native python ipaddress

pigmonkey commented on 2017-07-04 01:41

Works great! I wiped all traces of python-txtorcon and was able to install the new package build without error.

stormdragon2976 commented on 2017-07-04 01:18

@pigmonkey I added your sed statement to the PKGBUILD. It seems to work, but I never did experience the problems with it you did, even using makepkg. So, if you don't mind, make sure all is well, and hopefully we can call this one solved :) Thanks for the help.

pigmonkey commented on 2017-07-03 22:31

Yes, I first experienced the problem using Aura. After seeing that I tried makepkg to make sure it wasn't a problem with my AUR helper. I've tried it on 2 different machines. I'm doing this:

$ wget https://aur.archlinux.org/cgit/aur.git/snapshot/python-txtorcon.tar.gz
$ tar xvzf python-txtorcon.tar.gz
$ cd python-txtorcon
$ makepkg -sri # fails with conflicts

Adding this prior to the py2 setup call in the PKBUILD allows me to install it via makepkg -sri: sed -i '77,91 {s/^/#/}' setup.py

Alternatively, I can do this:

$ wget https://aur.archlinux.org/cgit/aur.git/snapshot/python-txtorcon.tar.gz
$ tar xvzf python-txtorcon.tar.gz
$ cd python-txtorcon
$ makepkg -s
$ sudo pacman -U python2-txtorcon-0.19.3-2-any.pkg.tar.xz # this works fine
$ sudo pacman -U python-txtorcon-0.19.3-2-any.pkg.tar.xz # this fails with conflicts in /usr/share/txtorcon
$ sudo pacman -U --force python-txtorcon-0.19.3-2-any.pkg.tar.xz # this works fine since we are overwriting conflicts

I just installed pacaur. I am able to install the package with that. It must be telling pacman to overwrite the conflicts.

stormdragon2976 commented on 2017-07-03 22:05

@pigmonkey I made the suggest changes from the AUR General list. I'm not sure what else to do currently. Have you tried using a package manager to install just the python-txtorcon package? I ran it with both pacaur and makepkg and had no problems, so I'm not sure what's going on. We'll get it solved eventually though.

All comments