• Important: We recently upgraded our forum software - please let us know if you run into any issues.

tor

yeskendir

New Member
torbrowser-launcher doesn't work after installation
Code:
[email protected]:~$ torbrowser-launcher
Traceback (most recent call last):
  File "/usr/bin/torbrowser-launcher", line 29, in <module>
    import torbrowser_launcher
  File "/usr/lib/python2.7/dist-packages/torbrowser_launcher/__init__.py", line 33, in <module>
    from .common import Common, SHARE
  File "/usr/lib/python2.7/dist-packages/torbrowser_launcher/common.py", line 55, in <module>
    from twisted.internet import gtk2reactor
  File "/usr/lib/python2.7/dist-packages/twisted/internet/gtk2reactor.py", line 23, in <module>
    from twisted.internet import _glibbase
  File "/usr/lib/python2.7/dist-packages/twisted/internet/_glibbase.py", line 20, in <module>
    from twisted.internet import base, posixbase, selectreactor
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 27, in <module>
    from twisted.internet._resolver import (
  File "/usr/lib/python2.7/dist-packages/twisted/internet/_resolver.py", line 25, in <module>
    from twisted.internet.address import IPv4Address, IPv6Address
  File "/usr/lib/python2.7/dist-packages/twisted/internet/address.py", line 23, in <module>
    class IPv4Address(object):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/address.py", line 37, in IPv4Address
    type = attr.ib(validator=attr.validators.in_(["TCP", "UDP"]))
AttributeError: 'module' object has no attribute 'in_'
 


arochester

Moderator
Staff member
Gold Supporter
1) Are you using Stretch?
2) Have you got stretch-backports and have you got contrib and non-free added?
Code:
deb http://deb.debian.org/debian stretch-backports main contrib non-free
3) Update and upgrade.
4) Install torbrowser-launcher from stretch-backports
Code:
sudo apt install torbrowser-launcher -t stretch-backports
5) If successful Tor Browser should appear in your menu
 

yeskendir

New Member
Yes, I'm using Debian Stretch and I did everything what is said in this instruction, but after installation torbrowser-launcher doesn't open.
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
@yeskendir welcome to linux.org :)

If colleague @arochester 's last Post has produced no fruit (if it has please let us know) - can you give us the output from

Code:
apt-cache policy python3-twisted python3-attr
Thanks

Chris Turner
wizardfromoz
 

yeskendir

New Member
Code:
[email protected]:~$ apt-cache policy python3-twisted python3-attr
python3-twisted:
  Installed: (none)
  Candidate: 16.6.0-2
  Version table:
     18.7.0-2~bpo9+1 100
        100 http://deb.debian.org/debian stretch-backports/main amd64 Packages
        100 http://deb.debian.org/debian stretch-backports/main i386 Packages
     16.6.0-2 500
        500 http://mirror.neolabs.kz/debian stretch/main amd64 Packages
        500 http://mirror.neolabs.kz/debian stretch/main i386 Packages
python3-attr:
  Installed: (none)
  Candidate: 16.3.0-1
  Version table:
     17.4.0-2~bpo9+1 100
        100 http://deb.debian.org/debian stretch-backports/main amd64 Packages
        100 http://deb.debian.org/debian stretch-backports/main i386 Packages
     16.3.0-1 500
        500 http://mirror.neolabs.kz/debian stretch/main amd64 Packages
        500 http://mirror.neolabs.kz/debian stretch/main i386 Packages
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
@wizardfromoz Have you got the commands right? I have installed Tor but I don't have either
python3-twisted or python3-attr ....
Commands are correct, and the said packages are on my Debian Stretch. That being said, I know next to nothing about Python, nor Tor, so am flying by the seat of my wizardly pants :)

Do you have 2.7, @arochester ?

I am working on the basis of a Google search performed using the keywords

"AttributeError: 'module' object has no attribute 'in_' python" both with and without "python" to re-focus the search.

From that

https://github.com/infobyte/faraday/issues/283

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910056

and slightly less-related is

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893308

This last one featured in part the following

Hi Georg,

with 2.9.3 this works for me without the error you describe (tested on
stretch though).

Interestingly you seem to be using a newer version of python-twisted
(17.9.0-1) than me (16.6.0-2). This error might be due to this. Can you
still reproduce this and if yes with which version of python-twisted?

Cheers!
That, then, led me to versions.

The one from Debian themselves features, in part, this

Reported by: Stuart Prescott <stu[email protected]>

Date: Tue, 2 Oct 2018 04:48:02 UTC

Severity: serious

Found in version twisted/18.7.0-2


Fixed in version twisted/18.7.0-3


Done: Mattia Rizzolo <[email protected]>
My highlighting.

The OP (that's you, @yeskendir ) has reported output that indicates he is running with

18.7.0-2~bpo9+1
So it may be the case that if he updates to 18.7.0-3 the problem may be resolved. I also saw something about downgrading to 18.4, but one step at a time.

That's all I have to offer for now.

Cheers

Wizard
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Sorry I was referring to Python3-twisted as opposed to Python 2.7-twisted

Wiz
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Yes, so that is the one that the article was referring to, and allegedly fixed with 18.7.0-3 ?

Now obviously, you have a working Tor, so perhaps the problem is not widespread, although they ranked it as Serious.

I am just throwing in leads here that I have identified, in the hope that they can help. But my contributions are probably at an end.

Good luck !

Wizard
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Nice find :)

@arochester may know, they will be files ending in .conf and likely having "tor" in their name/s.

Maybe it is quicker for you to join for free, Github, and ask their member

AqwelF

for his input? If you do, and it works for you, perhaps you could let us know?

Cheers

Wizard
 

Members online

No members online now.

Top