2009-08-24 107 views
0

我剛剛得到了Panda3D。我刪除了包含的Python版本。在我的Python目錄,我把一個文件panda.pth看起來像這樣:在Python 2.6上運行Panda3D

C:\Panda3D-1.6.2 
C:\Panda3D-1.6.2\bin 

但是當我運行import direct.directbase.DirectStart,我得到:

Traceback (most recent call last): 
    File "<pyshell#0>", line 1, in <module> 
    import direct.directbase.DirectStart 
    File "C:\Panda3D-1.6.2\direct\directbase\DirectStart.py", line 3, in <module> 
    from direct.showbase import ShowBase 
    File "C:\Panda3D-1.6.2\direct\showbase\ShowBase.py", line 10, in <module> 
    from pandac.PandaModules import * 
    File "C:\Panda3D-1.6.2\pandac\PandaModules.py", line 1, in <module> 
    from libpandaexpressModules import * 
    File "C:\Panda3D-1.6.2\pandac\libpandaexpressModules.py", line 1, in <module> 
    from extension_native_helpers import * 
    File "C:\Panda3D-1.6.2\pandac\extension_native_helpers.py", line 75, in <module> 
    Dtool_PreloadDLL("libpandaexpress") 
    File "C:\Panda3D-1.6.2\pandac\extension_native_helpers.py", line 73, in Dtool_PreloadDLL 
    imp.load_dynamic(module, pathname) 
ImportError: Module use of python25.dll conflicts with this version of Python. 

我假設這有什麼用我怎麼辦Python 2.6。任何解決方案

回答

1

如果您可以等待即將發佈的1.7.0版本,它將針對Python 2.6進行編譯 - 請參閱this thread

+0

有趣。有沒有估計何時會出現? – 2009-08-25 07:33:31

2

Python擴展在主要版本中不是二進制兼容的。你的選擇是:

A.重新編譯python 2.6的panda3d。

B.使用python 2.5。

沒辦法繞過它。

+0

重新編譯C源代碼? – 2009-08-24 18:35:12

+0

是的,C和C++。 – 2009-08-24 18:39:12