Opened 5 years ago

Closed 5 years ago

#11886 closed defect (duplicate)

arm not working, raspbian jessie (testing)

Reported by: justaguy Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Nyx Version: Tor: 0.2.4.21
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I did "sudo apt-get update && sudo apt-get upgrade" at 8 may ago, and it then did:
Start-Date: 2014-05-08 19:22:41
Commandline: apt-get upgrade
Upgrade: python-torctl:armhf (20110618git-1, 20130920git-1)
End-Date: 2014-05-08 19:22:51

Start-Date: 2014-05-08 19:27:06
Commandline: apt-get autoremove
Remove: python-socksipy:armhf (1.0-2)
End-Date: 2014-05-08 19:27:11

Now this happends:

pi@raspberrypi ~ $ arm
Arm requires TorCtl to run, but it's unavailable. Would you like to install it? (y/n): y
Unable to install TorCtl, sorry
pi@raspberrypi ~ $ sudo apt-get install python-torctl
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-torctl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Child Tickets

Change History (7)

comment:1 Changed 5 years ago by justaguy

some people told me arm depends on python-socksipy, so i did
sudo apt-get install python-socksipy

but i still have the same problem as described above

comment:2 Changed 5 years ago by nickm

Component: Torarm
Owner: set to atagar

Does this belong on the arm component?

comment:3 Changed 5 years ago by atagar

Hi justaguy. Arm's check to see 'is TorCtl available?' is to simply run 'import TorCtl'...

https://gitweb.torproject.org/arm.git/blob/e249dc8f5c4c282326324161cf8421f947cf660e:/src/prereq.py#l26

If you run 'python' to get in interpretor and run 'import TorCtl' does it work? If you run 'python --version' what does it say? My guess is that you're using python 3, but arm and torctl both use python 2.

If that is that case then I have mixed feelings. On one hand yay, platforms are *finally* moving to python 3! But on the other boo, they're gonna be breaking a lotta stuff! ;)

some people told me arm depends on python-socksipy, so i did
sudo apt-get install python-socksipy

Nope, they're wrong. Arm doesn't use python-socksipy.

comment:4 Changed 5 years ago by justaguy

Python 2.7.6 (default, Mar 28 2014, 09:04:21)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import TorCtl

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

ImportError: No module named TorCtl

pi@raspberrypi ~ $ python --version
Python 2.7.6

comment:5 Changed 5 years ago by atagar

Ok, so not an issue with the python version but rather TorCtl simply isn't in a location where python is looking for libraries. I'm not familiar with the steps for troubleshooting that offhand, but some quick searches should help.

comment:6 Changed 5 years ago by ribe

This sounds similar to Debian bug 747527
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747527

To verify, you can try the workaround mentioned in that bug report:
ln -s /usr/share/pyshared/TorCtl /usr/local/lib/python2.7/dist-packages/TorCtl

comment:7 Changed 5 years ago by atagar

Resolution: duplicate
Status: newclosed

Interesting, thanks ribe! Resolving in favor of that.

Note: See TracTickets for help on using tickets.