Hazen Babcock wrote:
> Werner Smekal wrote:
>> On Jul 15, 2009, at 7:14 PM, Hazen Babcock wrote:
>>> (2) When I try to run a python example I get "ImportError: No module
>>> named _plplotc". I have python2.6, numpy 1.3.0 and swig(swigwin?)
>>> 1.3.39. Is there anything special that I need to do to use Python/ 
>>> PLplot
>>> on windows?
>> I once tested Python 2.4 on Windows and it kinda worked. Wait - I  
>> wrote a message that days and you can read it here:
>>
>> http://www.mail-archive.com/plplot-devel@lists.sourceforge.net/msg00129.html
>>
>> maybe this thread is of any help for you, keep us posted.
> 
> Renaming _plplotcmodule.dll to _plplotc.dll (located in 
> c:\Python2.6\Lib\site-packages\) does not solve the problem for me. On 
> linux the equivalent library is named _plplotcmodule.so so I'm not sure 
> the name is the problem. Or maybe this name convention changed between 
> python2.5 and python 2.6? I'm going to see if I can generate the 
> bindings by hand and try to compare that to what the build system is doing.

I believe this is the problem for windows & Python versions > 2.4:
http://docs.python.org/whatsnew/2.5.html#ports

It says ".dll is no longer supported as a filename extension for 
extension modules. .pyd is now the only filename extension that will be 
searched for."

So I was able to get Plplot & Python to work by changing 
"_plplotcmodule.dll" to "_plplotc.pyd" (note "_plplotcmodule.pyd" does 
not work) and making sure the all the PLplot dll's are in my system path.

On windows we should probably check the version of Python and adjust the 
name accordingly. Also, we might consider installing the Python binding 
to "C:\PythonX\lib\site-packages\" instead of 
InstallPrefix\lib\site-packages.

-Hazen

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to