It sounds like you are trying to run it with Python 3.0 instead of the correct version of Python 2.6 (or 2.7) that is provided with Panda.
David
It sounds like you are trying to run it with Python 3.0 instead of the correct version of Python 2.6 (or 2.7) that is provided with Panda.
David
I’ve run it with ppython and was confronted with the error:
ImportError: No module named wx
That's funny since I have installed wxpython into the lib folder of my panda3d installation.
Check the wx.pth file in your lib/site-packages, it should lead to the wx installation.
So we just install the new files over the old ones?
Yep.
Thank you ynjh_jo. I have had this add on since you first posted it years ago. But I really never used it very much. I got distracted into other things. Will you please stand by for a LOT of what might seem ( to you ) obvious newbie question
You’re welcome.
I updated it just now.
[v0.5.3]
[X] works with P3D 1.8.0
Hi at all, this is my first reply in this forum, but i have a big problem to start this good Ide program.
My problem occurs when i try to start a new script by clicking the Open button.
I quote the code error below:
Traceback (most recent call last):
File "IDEmini.py", line 823, in IDE_safeRun
taskMgr._origRun()
File "C:\Panda3D-1.7.2\direct\task\Task.py", line 502, in run
self.step()
File "C:\Panda3D-1.7.2\direct\task\Task.py", line 460, in step
self.mgr.poll()
File "IDEmini.py", line 970, in IDE_doActivate
exec('import IDE\nfrom IDE import *') in GLOBALS
File "<string>", line 1, in <module>
File "C:\Panda3D-1.7.2\Panda3dIDE(unofficial)\IDE.py", line 2028, in <module>
IDE_SB_createPreferencesButton()
File "C:\Panda3D-1.7.2\Panda3dIDE(unofficial)\IDE.py", line 1433, in IDE_SB_cr
eatePreferencesButton
clickSound=0, rolloverSound=0, pressEffect=0)
File "C:\Panda3D-1.7.2\direct\gui\DirectButton.py", line 62, in __init__
self.initialiseoptions(DirectButton)
File "C:\Panda3D-1.7.2\direct\gui\DirectGuiBase.py", line 242, in initialiseop
tions
func()
File "C:\Panda3D-1.7.2\direct\gui\DirectFrame.py", line 180, in setImage
sort = DGG.IMAGE_SORT_INDEX)
File "C:\Panda3D-1.7.2\direct\gui\DirectGuiBase.py", line 562, in createcompon
ent
widget = apply(widgetClass, widgetArgs, kw)
File "C:\Panda3D-1.7.2\direct\gui\OnscreenImage.py", line 49, in __init__
self.setImage(image, parent = parent, sort = sort)
File "C:\Panda3D-1.7.2\direct\gui\OnscreenImage.py", line 106, in setImage
tex = loader.loadTexture(image)
File "C:\Panda3D-1.7.2\direct\showbase\Loader.py", line 533, in loadTexture
raise IOError, message
IOError: Could not load texture: IDE_pref.png
Traceback (most recent call last):
File "IDEmini.py", line 990, in <module>
IDE_safeRun()
File "IDEmini.py", line 834, in IDE_safeRun
IDE_doActivate()
File "IDEmini.py", line 968, in IDE_doActivate
sys.modules[__name__] = sys.modules.pop('IDE')
KeyError : 'IDE'
I use Panda3d 1.7.2
Windows Vista 64bit
and the last update of this IDE.
Sorry, if this is a newbie problem,but I’ve followed all the installation process as reported in the first post.
thanks in advance for your help.
OMG.
That’s because it can’t find IDE_pref.png in /images directory.
I assume you downloaded the images ZIP file from panda3dprojects.com, and I just checked it, looks like I forgot uploading it there. Try the one at p3dp.com, just replace the address.
EDIT:
I’ve updated it at panda3dprojects.com.
Thanks to your help, I was able to download it by copying part of the link from panda3dprojects.com p3dp.com, but I noticed that there isn’t a direct link to the file in the second site, right?
p.s.: Ah sorry, I haven’t seen your last post update. xD
Downloaded everything this morning, put it into the OIDE directory. I extracted testDynScene into OIDE_Examples. Ran IDE_STARTER.pyw, added dyn1.py as the file. A scene appears but then it seems to crash.
IDE started on Monday, Jun 25 2012, 13:22
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win
32
===================================
C++ TextDrawer extension loaded,
built with Panda3D v1.8.0.
===================================
############### YOUR FILES ###############
D:\personal\python\panda\OIDE_Examples\dyn1.py
##########################################
CWD : D:\personal\python\panda\OIDE_Examples
##########################################
args : []
##########################################
DirectStart: Starting the game.
Known pipe types:
wglGraphicsPipe
(all display modules loaded.)
INFO: run() is not here, use IDErun() instead.
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
Assertion failed: _state != S_inactive at line 161 of c:\buildslave\release_sdk_
win32\build\panda3d\panda\src\event\asyncTask.cxx
:gobj(error): Texture::read() - couldn't read: logTextOverScene-win.png
:gobj(error): Unable to find texture "logTextOverScene-win.png" on model-path /d
/personal/python/panda/OIDE_Examples;/d/Program Files/Panda3D-1.8.0/etc/..;/d/Pr
ogram Files/Panda3D-1.8.0/etc/../models;/d/personal/python/panda/OIDE;/d/persona
l/python/panda/OIDE/sounds;/d/personal/python/panda/OIDE/fonts;/d/personal/pytho
n/panda/OIDE/images;/d/personal/python/panda/OIDE/tab skins;/d/personal/python/p
anda/OIDE/slider skins;/d/personal/python/panda/OIDE_Examples
Traceback (most recent call last):
File "IDEmini.py", line 970, in IDE_doActivate
exec('import IDE\nfrom IDE import *') in GLOBALS
File "<string>", line 1, in <module>
File "D:\personal\python\panda\OIDE\IDE.py", line 3056, in <module>
createLogTextTexture(msgText)
File "D:\personal\python\panda\OIDE\IDE.py", line 3053, in createLogTextTextur
e
M.IDE_logOverSceneTex=loader.loadTexture(IDE_logOverSceneTexName)
File "D:\Program Files\Panda3D-1.8.0\direct\showbase\Loader.py", line 554, in
loadTexture
raise IOError, message
IOError : Could not load texture: logTextOverScene-win.png
:task(error): Exception occurred in PythonTask IDE_TASKS_activate
Traceback (most recent call last):
File "D:\personal\python\panda\OIDE\IDELog.py", line 42, in checkNotify
if self.stream.getDataSize():
File "IDEmini.py", line 970, in IDE_doActivate
exec('import IDE\nfrom IDE import *') in GLOBALS
File "<string>", line 1, in <module>
File "D:\personal\python\panda\OIDE\IDE.py", line 3056, in <module>
createLogTextTexture(msgText)
File "D:\personal\python\panda\OIDE\IDE.py", line 3053, in createLogTextTextur
e
M.IDE_logOverSceneTex=loader.loadTexture(IDE_logOverSceneTexName)
File "D:\Program Files\Panda3D-1.8.0\direct\showbase\Loader.py", line 554, in
loadTexture
raise IOError, message
IOError : Could not load texture: logTextOverScene-win.png
:task(error): Exception occurred in PythonTask IDE_TASKS_checkNotify
I guess _ ____________________________________________
I'm _ [C]lueless / \
O | | That's why you make mistakes all the time |
_=^==^ \ __________________________________________/
\_| /,"
.^. /
| | `O__)
.____|/._________./_<.___
\_________________________________
\_______
E_R_R_O_R \
Traceback (most recent call last):
File "IDEmini.py", line 823, in IDE_safeRun
taskMgr._origRun()
File "D:\Program Files\Panda3D-1.8.0\direct\task\Task.py", line 502, in run
self.step()
File "D:\Program Files\Panda3D-1.8.0\direct\task\Task.py", line 460, in step
self.mgr.poll()
File "D:\personal\python\panda\OIDE\IDELog.py", line 42, in checkNotify
if self.stream.getDataSize():
File "IDEmini.py", line 970, in IDE_doActivate
exec('import IDE\nfrom IDE import *') in GLOBALS
File "<string>", line 1, in <module>
File "D:\personal\python\panda\OIDE\IDE.py", line 3056, in <module>
createLogTextTexture(msgText)
File "D:\personal\python\panda\OIDE\IDE.py", line 3053, in createLogTextTextur
e
M.IDE_logOverSceneTex=loader.loadTexture(IDE_logOverSceneTexName)
File "D:\Program Files\Panda3D-1.8.0\direct\showbase\Loader.py", line 554, in
loadTexture
raise IOError, message
IOError: Could not load texture: logTextOverScene-win.png
Traceback (most recent call last):
File "IDEmini.py", line 990, in <module>
IDE_safeRun()
File "IDEmini.py", line 834, in IDE_safeRun
IDE_doActivate()
File "IDEmini.py", line 968, in IDE_doActivate
sys.modules[__name__] = sys.modules.pop('IDE')
KeyError : 'IDE'
>>>
It fails in writing that generated texture to disk, in IDE.py line 3048, which is :
textBGimage.write(Filename(IDE_logOverSceneTexPath))
Change it to :
textBGimage.write(Filename.fromOsSpecific(IDE_logOverSceneTexPath))
That seems to have fixed it, thanks! It’s a very impressive program!
edit- Not a big deal, but it crashes when you exit:
Next update : 143.913999444 hours later
IDE shutdown on Tuesday, Jun 26 2012, 13:20
GOOD BYE
SystemExit
:task(error): Exception occurred in PythonTask IDE_reallyExit
it crashes when you exit:
Next update : 143.913999444 hours later IDE shutdown on Tuesday, Jun 26 2012, 13:20 GOOD BYE SystemExit :task(error): Exception occurred in PythonTask IDE_reallyExit
It’s normal.
As you can read in IDEmini.py line 8, IDE_reallyExit is sys.exit.
SystemExit is an exception, of course it’s caught by P3D.
If you don’t like it, you’re free to replace it with taskMgr.stop.
getting this when i try to use the compileTD script.
/usr/include/panda3d/py_panda.h: In member function ‘PyObject& Dtool_PyTypedObject::As_PyObject()’:
/usr/include/panda3d/py_panda.h:172:55: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#### TextDrawer.cxx compiled ####
-rw-r--r-- 1 users 3.5M Jul 18 22:20 ./TextDrawer.o
Creating Python wrapper..........
*** Error in /usr/include/bits/sigcontext.h near line 34, column 2:
syntax error, unexpected IDENTIFIER, expecting '{' or ';' or ':' or '='
Error parsing file: '../TextDrawer.h'
:interrogatedb(error): Unable to find TextDrawer.in on .
Error reading interrogate data.
g++: error: TextDrawer_ig.cxx: No such file or directory
g++: error: TextDrawer_module.cxx: No such file or directory
g++: fatal error: no input files
compilation terminated.
g++: error: ./TextDrawer_ig.o: No such file or directory
g++: error: ./TextDrawer_module.o: No such file or directory
mv: cannot stat ‘./TD.so’: No such file or directory
ls: cannot access ../*.so: No such file or directory
@ indisposed :
I don’t know what went wrong there, it’s fine on ubuntu natty :
j@j-desktop:/media/PROJECTS/PANDA3D/- Panda3D forum/OIDE 054/TD/linux$ sh compileTD.sh
rm: cannot remove `TextDrawer*.*': No such file or directory
rm: cannot remove `../TD.so': No such file or directory
#### COMPILING TextDrawer.cxx ####
In file included from /usr/include/panda3d/pointerToArray.h:71:0,
from /usr/include/panda3d/pta_uchar.h:20,
from /usr/include/panda3d/datagram.h:24,
from /usr/include/panda3d/netDatagram.h:23,
from /usr/include/panda3d/connectionManager.h:20,
from /usr/include/panda3d/pStatClientImpl.h:24,
from /usr/include/panda3d/pStatClient.h:21,
from /usr/include/panda3d/pStatThread.h:20,
from /usr/include/panda3d/pStatCollector.h:20,
from /usr/include/panda3d/renderAttrib.h:25,
from /usr/include/panda3d/renderState.h:20,
from /usr/include/panda3d/pandaNode.h:27,
from /usr/include/panda3d/nodePath.h:23,
from ../TextDrawer.h:1,
from ../TextDrawer.cxx:1:
/usr/include/panda3d/py_panda.h: In member function ‘PyObject& Dtool_PyTypedObject::As_PyObject()’:
/usr/include/panda3d/py_panda.h:172:55: warning: dereferencing type-punned pointer will break strict-aliasing rules
#### TextDrawer.cxx compiled ####
-rw-r--r-- 1 j 2.4M 2012-07-20 22:45 ./TextDrawer.o
Creating Python wrapper..........
Referencing Library TD
In file included from TextDrawer_ig.cxx:12:0:
/usr/include/panda3d/py_panda.h: In member function ‘PyObject& Dtool_PyTypedObject::As_PyObject()’:
/usr/include/panda3d/py_panda.h:172:55: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from TextDrawer_module.cxx:6:0:
/usr/include/panda3d/py_panda.h: In member function ‘PyObject& Dtool_PyTypedObject::As_PyObject()’:
/usr/include/panda3d/py_panda.h:172:55: warning: dereferencing type-punned pointer will break strict-aliasing rules
-rw-r--r-- 1 j 2.7M 2012-07-20 22:45 ../TD.so
Are you using 64bit system ?
yea, and using arch linux x86-64
ill muck around with it again when i get home from work.