Crystal Space
Welcome, Guest. Please login or register.
December 19, 2014, 07:32:42 am

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9288 Members
Latest Member: Lorrainewhite
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  (solved) Failed to initialize Python plugin Windows 8
« previous next »
Pages: [1] Print
Author Topic: (solved) Failed to initialize Python plugin Windows 8  (Read 7091 times)
Cimni
Newbie
*
Posts: 3


View Profile Email
« on: October 26, 2013, 03:22:35 am »

Hi all.

OS: Windows 8
Compiler: msvc10
CS Version: 2.0
Winlibs Version: 2.0_002

So, I'm a little confused about the CS compilation with python. Since the files listed in this tutorial are missing, I figured the msvc solution that includes python is "wkspytypical" (no errors while compiling).
I have python 2.7 installed, and I can run every demo app except "pysimp".

In the CRYSTAL variable I have the CS source dir "...\crystalspace-src-2.0\", and in PATH I have the CS dir created by Winlibs.

This is what I get when running pysimp:

Quote
NOTIFY: loading plugin instance for crystalspace.script.python
SCF_NOTIFY: loading plugin [...]\crystalspace-src-2.0\out\debug10\bin\cspython.dll to satisfy request for csPython
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named cspace

crystalspace.pluginmgr.loadplugin:
  failed to initialize plugin ‘crystalspace.script.python’

I have compiled plgcspython successfully (it's in my build dir and the dll was created). So, I don't know what's wrong.

Any ideas?.
« Last Edit: October 27, 2013, 07:34:29 pm by Cimni » Logged
Cimni
Newbie
*
Posts: 3


View Profile Email
« Reply #1 on: October 27, 2013, 07:34:06 pm »

Solved. I just had to add \scripts\python\frozen to PYTHONPATH.
« Last Edit: October 28, 2013, 02:14:32 am by Cimni » Logged
Donald9
Newbie
*
Posts: 1


View Profile Email
« Reply #2 on: December 22, 2013, 10:34:05 pm »

Hi all.

OS: Windows 8
Compiler: msvc10
CS Version: 2.0
Winlibs Version: 2.0_002

So, I'm a little confused about the CS compilation with python. Since the files listed in this tutorial are missing, I figured the msvc solution that includes python is "wkspytypical" based on this, no errors while compiling.
I have python 2.7 installed, and I can run every demo app except "pysimp".

In the CRYSTAL variable I have the CS source dir "...\crystalspace-src-2.0\", and in PATH I have the CS dir created by Winlibs.

This is what I get when running pysimp:

Quote
NOTIFY: loading plugin instance for crystalspace.script.python
SCF_NOTIFY: loading plugin [...]\crystalspace-src-2.0\out\debug10\bin\cspython.dll to satisfy request for csPython
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named cspace

crystalspace.pluginmgr.loadplugin:
  failed to initialize plugin ‘crystalspace.script.python’

I have compiled plgcspython successfully (it's in my build dir and the dll was created). So, I don't know what's wrong.

Any ideas?.
I tried doing all of the above but still isn't working.  Any other suggestions? 
« Last Edit: December 31, 2013, 11:14:12 pm by Donald9 » Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.201 seconds with 16 queries.