thegooglecodearchive / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 1 forks source link

[PyStudio] "AttributeError: 'module' object has no attribute 'EdThreadPool'" on file save #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What Plugin does this relate to? What version of the Plugin?

PyStudio 0.4 for Python 2.7

What steps will reproduce the problem?

1. Activate PyStudio
2. Save python file

What is the expected output? What do you see instead?

File is saved OK but throwing exception.
First save throw exception (but file saved OK)
Second save throw exception (but file saved OK)
Third save throw exception (but file saved OK)
Fourth save OK

Every fourth time save OK, rest throw exception.

What version of Editra are you using? On what operating system?

Last Editra svn, Windows 7 32bit, ActivePython 2.7.1
I use .bat file for update:
cd D:/Portable/Editra/
svn update
python setup.py install

Please provide any additional information below.

#---- Notes ----#

#---- System Information ----#
Editra Version: 0.6.59
Operating System: Windows NT 6.1 (build 7600)
Python Version: 2.7.1 (r271:86832, Feb  7 2011, 11:30:38) [MSC v.1500 32 bit 
(Intel)]
wxPython Version: 2.8.12.1 (msw-unicode)
wxPython Info: (__WXMSW__, wxMSW, unicode, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=ascii  File=mbcs
wxPython Encoding: cp1250
System Architecture: 32bit x86
Byte order: little
Frozen: False
#---- End System Information ----#

#---- Traceback Info ----#
*** Fri Sep 23 12:40:28 2011 ***
Traceback (most recent call last):
  File "c:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 14669, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "C:\Python27\Lib\site-packages\Editra\src\ed_msg.py", line 321, in PostMessage
    _ThePublisher.sendMessage(msgtype, msgdata, context=context)
  File "C:\Python27\Lib\site-packages\Editra\src\extern\pubsub.py", line 798, in sendMessage
    self.__topicTree.sendMessage(aTopic, message, onTopicNeverCreated)
  File "C:\Python27\Lib\site-packages\Editra\src\extern\pubsub.py", line 483, in sendMessage
    deliveryCount += node.sendMessage(message)
  File "C:\Python27\Lib\site-packages\Editra\src\extern\pubsub.py", line 321, in sendMessage
    listener(message)
  File "c:\users\dobek\appdata\roaming\editra\plugins\pystudio-0.4-py2.7.egg\PyStudio\SyntaxChecker\CompileChecker.py", line 68, in OnFileSaved
    RunAsyncTask("CompileCheck", self.OnCheckComplete, self.DoCompileCheck, data[0])
  File "c:\users\dobek\appdata\roaming\editra\plugins\pystudio-0.4-py2.7.egg\PyStudio\Common\PyStudioUtils.py", line 206, in RunAsyncTask
    ed_thread.EdThreadPool().QueueJob(DoTask)
AttributeError: 'module' object has no attribute 'EdThreadPool'

#---- End Traceback Info ----#

Original issue reported on code.google.com by matri...@gmail.com on 23 Sep 2011 at 11:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I haven't come across this error before and can't see anything obviously wrong 
in the source code. Just wondered if this happens with Editra 0.6.58 available 
from here: http://editra.org/download ?

Original comment by rans1...@gmail.com on 26 Sep 2011 at 8:39

GoogleCodeExporter commented 9 years ago
Hi,

Yea my guess is that either something got messed up during install or some 
other conflicting module of the same name is earlier in your Python path, 
because the only thing in the ed_thread module is EdThreadPool.

Cody

Original comment by CodyPrec...@gmail.com on 28 Sep 2011 at 3:53

GoogleCodeExporter commented 9 years ago
With Editra 0.6.58 everything working fine. (I move back from svn version).

Cheers

Original comment by matri...@gmail.com on 29 Sep 2011 at 10:50

GoogleCodeExporter commented 9 years ago
Ok good. I will close this. If it happens again in future, let me know.

Original comment by rans1...@gmail.com on 29 Sep 2011 at 12:59

GoogleCodeExporter commented 9 years ago
I can't reproduce this with the svn version of Editra. If you still want to run 
svn I would suggest cleaning out the current install and then reinstalling 
again from a fresh svn checkout.

Original comment by CodyPrec...@gmail.com on 29 Sep 2011 at 4:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I updated svn version to 69240:

D:\Portable\Editra>svn update
U    plugins\Launch\CHANGELOG
U    plugins\Launch\launch\launch.py
U    plugins\Launch\launch\handlers.py
U    plugins\codebrowser\setup.py
U    plugins\codebrowser\info.txt
U    plugins\codebrowser\codebrowser\gentag\pytags.py
U    plugins\codebrowser\codebrowser\gentag\taglib.py
U    plugins\codebrowser\codebrowser\CHANGELOG
U    plugins\codebrowser\codebrowser\cbrowser.py
A    pixmaps\theme\Tango\menu\package.png
A    pixmaps\theme\Tango\menu\docs.png
A    pixmaps\theme\Tango\menu\theme.png
A    pixmaps\theme\Tango\menu\doc_props.png
UU   src\ed_book.py
U    src\extern\aui\auibook.py
U    src\extern\aui\__init__.py
U    src\eclib\platebtn.py
A    tests\unittests\testThreadpool.py
U    tests\unittests\testFileUtil.py
U    tests\unittests\testTheme.py
Uaktualniono do wersji 69240.

make python setup.py install without cleaning previous install and now it's 
working OK.

Thank you for your time.

Original comment by matri...@gmail.com on 30 Sep 2011 at 9:39