Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#18573 closed defect (invalid)

error in python tor module

Reported by: singhal Owned by:
Priority: Very High Milestone:
Component: - Select a component Version:
Severity: Normal Keywords: python3, tor, pyhton3 tor module
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor: None

Description

Hello,

I'm facing some issue in python tor module version "torctl==0.2", error looks like:

Traceback (most recent call last):

File "ip-renew-1.py", line 1, in <module>

from TorCtl import TorCtl

File "/usr/local/lib/python3.4/dist-packages/TorCtl/TorCtl.py", line 129

except socket.error, exc:


SyntaxError: invalid syntax

can you please help me how to solve this issue.

Child Tickets

Attachments (1)

error.png (41.1 KB) - added by singhal 4 years ago.
error file

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by singhal

Attachment: error.png added

error file

comment:1 Changed 4 years ago by atagar

Resolution: invalid
Status: newclosed

Hi singhal, TorCtl was deprecated years ago and is only used for Torflow nowadays. Try using Stem instead...

https://stem.torproject.org/

comment:2 Changed 4 years ago by atagar

On a side note you're probably hitting that due to using python3 with TorCtl. TorCtl only supports python2 but Stem supports both.

Note: See TracTickets for help on using tickets.