python - Working with Twisted -


i'm working on twisted program inherited. have code that's in tap.py file, doesn't belong there. i'm moved out it's own file in same directory, tap file can't find classes. how go fixing that? i'm pretty green when comes python / twisted don't assume because trivial didn't on it.

traceback (most recent call last):   file "/usr/local/bin/twistd", line 5, in <module>     pkg_resources.run_script('twisted==10.2.0', 'twistd')   file "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, in run_script     self.require(requires)[0].run_script(script_name, ns)   file "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1194, in run_script     execfile(script_filename, namespace, namespace)   file "/usr/local/lib/python2.6/dist-packages/twisted-10.2.0-py2.6-linux-i686.egg/egg-info/scripts/twistd", line 19, in <module>     run()   file "/usr/local/lib/python2.6/dist-packages/twisted-10.2.0-py2.6-linux-i686.egg/twisted/scripts/twistd.py", line 27, in run     app.run(runapp, serveroptions)   file "/usr/local/lib/python2.6/dist-packages/twisted-10.2.0-py2.6-linux-i686.egg/twisted/application/app.py", line 631, in run     runapp(config)   file "/usr/local/lib/python2.6/dist-packages/twisted-10.2.0-py2.6-linux-i686.egg/twisted/scripts/twistd.py", line 23, in runapp     _someapplicationrunner(config).run()   file "/usr/local/lib/python2.6/dist-packages/twisted-10.2.0-py2.6-linux-i686.egg/twisted/application/app.py", line 374, in run     self.application = self.createorgetapplication()   file "/usr/local/lib/python2.6/dist-packages/twisted-10.2.0-py2.6-linux-i686.egg/twisted/application/app.py", line 434, in createorgetapplication     ser = plg.makeservice(self.config.suboptions)   file "/usr/local/lib/python2.6/dist-packages/lister-0.0dev_r207-py2.6.egg/lister/mailer/tap.py", line 84, in makeservice     smtpfactory = smtpdaemonfactory() nameerror: global name 'smtpdaemonfactory' not defined 

okay feel silly. fixed using correct import.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -