Opened 5 years ago

Closed 4 years ago

#7497 enhancement closed fixed (fixed)

twistd produces confusing behavior under Python3

Reported by: Alex Gaynor Owned by:
Priority: normal Milestone: Python-3.x
Component: core Keywords:
Cc: Branch:


Specifically, if you pip install twisted, it does *not* install twistd (because it isnt' ported). However on many systems, Twisted is installed globally, meaning that when you go to run twistd, it tries to run the system twistd, which isn't in your virtualenv, and you get confusing error messages about not being able to import modules.

The right solution is probably (until twistd is ported) to install twistd, but have it immediately print an error message and quit under Python3.

Change History (2)

comment:1 Changed 5 years ago by Jean-Paul Calderone

This sounds more like a general problem with virtualenv (or Python 3, or both) than with twistd. But as long as you're talking about it, this doesn't just affect twistd. Twisted ships a bunch of other command-line entry points.

comment:2 Changed 4 years ago by hawkowl

Resolution: fixed
Status: newclosed

This should be fixed. It's ported now.

Note: See TracTickets for help on using tickets.