[SàT users] [OSX] Install supported ?
Xavier Maillard
xavier at maillard.im
Mar 24 Nov 07:04:24 CET 2015
Goffi <goffi at goffi.org> writes:
[ second attempt, previous message was errorneously crypted. Sorry for that. ]
> Le lundi 23 novembre 2015 05:53:40, vous avez écrit :
>> I installed zope.interface as indicated; no change. Still the same error.
>>
>> P.S: version of my twisted installation: 15.4.0.
>
> OK, after looking for similar errors, the issue seems to be related to a
> twistd plugin installed in the wrong location.
> When twistd start, it look for twisted/plugins/*.py files (the twisted/plugins
> directory *must not* have a __init__.py)
>
> First, be sure to use python 2.7.x, we are not python 3 yet:
> python --version
kcals:ASynK xavier$ python --version
Python 2.7.10
> Then, check where is the twisted you are using:
> python -c 'import twisted; print(twisted.__file__)'
kcals:ASynK xavier$ python -c 'import twisted; print(twisted.__file__)'
/Library/Python/2.7/site-packages/twisted/__init__.pyc
> and check that you have a twisted/plugins/ dir available in your PYTHONPATH,
> i.e. in any of the path given by
> python -c "import sys; print(sys.path)"
['',
'/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/site-packages/gtk-2.0',
'/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg',
'/Library/Python/2.7/site-packages/mechanize-0.2.5-py2.7.egg',
'/Library/Python/2.7/site-packages/lxml-3.3.0beta3-py2.7-macosx-10.9-intel.egg',
'/Library/Python/2.7/site-packages/PyYAML-3.10-py2.7-macosx-10.9-intel.egg',
'/Library/Python/2.7/site-packages/feedparser-5.1.3-py2.7.egg',
'/Library/Python/2.7/site-packages/ofxparse-0.14-py2.7.egg',
'/Library/Python/2.7/site-packages/beautifulsoup4-4.4.0-py2.7.egg',
'/Library/Python/2.7/site-packages']
> You can also go to sat/src and enter "twistd" without argument, you should see
> a line under "commands" with:
>
> sat SàT (Salut à Toi) XMPP client backend
Unhandled Error
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/twisted/python/usage.py", line 447, in __str__
return self.getSynopsis() + '\n' + self.getUsage(width=None)
File "/Library/Python/2.7/site-packages/twisted/python/usage.py", line 483, in getUsage
for (cmd, short, parser, desc) in self.subCommands:
File "/Library/Python/2.7/site-packages/twisted/application/app.py", line 596, in subCommands
for plug in sorted(plugins, key=attrgetter('tapname')):
File "/Library/Python/2.7/site-packages/twisted/plugin.py", line 213, in getPlugins
allDropins = getCache(package)
--- <exception caught here> ---
File "/Library/Python/2.7/site-packages/twisted/plugin.py", line 171, in getCache
provider = pluginModule.load()
File "/Library/Python/2.7/site-packages/twisted/python/modules.py", line 392, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/Library/Python/2.7/site-packages/twisted/python/reflect.py", line 303, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/Library/Python/2.7/site-packages/twisted/python/reflect.py", line 250, in _importAndCheckStack
reraise(excValue, excTraceback)
File "/private/tmp/sat/src/twisted/plugins/sat_plugin.py", line 37, in <module>
from sat.core.constants import Const as C
exceptions.ImportError: No module named sat.core.constants
Usage: twistd [options]
Options:
--savestats save the Stats object rather than the text output of the
profiler.
-o, --no_save do not save state on shutdown
-e, --encrypted The specified tap/aos file is encrypted.
-n, --nodaemon don't daemonize, don't use default umask of 0077
--originalname Don't try to change the process name
--syslog Log to syslog, not to file
--euid Set only effective user-id rather than real user-id.
(This option has no effect unless the server is running
as root, in which case it means not to shed all
privileges after binding ports, retaining the option to
regain privileges in cases such as spawning processes.
Use with caution.)
-l, --logfile= log to a specified file, - for stdout
--logger= A fully-qualified name to a log observer factory to use
for the initial log observer. Takes precedence over
--logfile and --syslog (when available).
-p, --profile= Run in profile mode, dumping results to specified file.
--profiler= Name of the profiler to use (profile, cprofile).
[default: cprofile]
-f, --file= read the given .tap file [default: twistd.tap]
-y, --python= read an application from within a Python file (implies
-o)
-s, --source= Read an application from a .tas file (AOT format).
-d, --rundir= Change to a supplied directory before running [default:
.]
--prefix= use the given prefix when syslogging [default: twisted]
--pidfile= Name of the pidfile [default: twistd.pid]
--chroot= Chroot to a supplied directory before running
-u, --uid= The uid to run as.
-g, --gid= The gid to run as.
--umask= The (octal) file creation mask to apply.
--help-reactors Display a list of possibly available reactor names.
--version Print version information and exit.
--spew Print an insanely verbose log of everything that happens.
Useful when debugging freezes or locks in complex code.
-b, --debug Run the application in the Python Debugger (implies
nodaemon), sending SIGUSR2 will drop into
debugger
-r, --reactor= Which reactor to use (see --help-reactors for a list of
possibilities)
--help Display this help and exit.
twistd reads a twisted.application.service.Application out of a file and runs
it.
Commands:
conch A Conch SSH service.
dns A domain name server.
ftp An FTP server.
inetd An inetd(8) replacement.
mail An email service
manhole An interactive remote debugger service
accessible via telnet and ssh and providing
syntax coloring and basic line editing
functionality.
manhole-old An interactive remote debugger service.
news A news server.
portforward A simple port-forwarder.
procmon A process watchdog / supervisor
socks A SOCKSv4 proxy service.
telnet A simple, telnet-based remote debugging
service.
web A general-purpose web server which can serve
from a filesystem or application resource.
wokkel-component-server An XMPP Component Server
words A modern words server
xmpp-router An XMPP Router server
> Hope this help
Yes, thank you.
-- Xavier.
More information about the users
mailing list