[Kst] branches/work/kst/portto4/kst/cmake/modules
Peter Kümmel
syntheticpp at gmx.net
Wed Jul 11 19:31:52 UTC 2012
On 10.07.2012 22:19, Nicolas Brisset wrote:
> Hi,
>
> From what I see it looks like you're looking into python scripting also under Windows. Is that correct? That's pretty cool IMHO :-)
>
> Apart from that, I think we did not inform people that you had prepared a RC for 2.0.6 under http://sourceforge.net/projects/kst/files/Kst%202.0.6/Kst-2.0.6-rc1-win32-Installer.exe/download
> It would be nice if people tested it. I have covered some areas, but other people with different workflows may find some other bugs we could possibly still fix.
>
Gave it another try: Python installation is simpler now
because the Windows installer comes with numpy and scipy.
Installing sip ant qtpy was straight forward.
But there are problems on the kst side.
vector.py crashes immediately in kst.Client() and
there in self.ls=QtNetwork.QLocalSocket()
Only when I add to the script
import sys
app = QtCore.QCoreApplication(sys.argv)
it doesn't crash any more. I assume it crashed
because there was no event loop.
Then kst comes up but nothing happens,
because on Windows os.system("kst...") blocks
until kst has finished. So I have replaced it with
subprocess.Popen("kst2 --serverName="+str(serverName))
Still nothing happens, but it could connect to kst.
When kst is closed this error messages is printed
Traceback (most recent call last):
File "matrix.py", line 28, in <module>
client.plot(mandelbrot(100,100))
File "D:\Python2.7.3.1\App\lib\site-packages\pykst.py", line 204, in plot
x.setFromList(arg)
File "D:\Python2.7.3.1\App\lib\site-packages\pykst.py", line 638, in setFromList
set_matrix(arr,arr.shape[0],arr.shape[1],self.client.serverName,self.handle)
File "D:\Python2.7.3.1\App\lib\site-packages\pykstpp.py", line 264, in set_matrix
inline(code,
['arr','nX','nY','socket','handle'],support_code=support_code,include_dirs=pykstpp_h.INCLUDES,libraries=pykstpp_h.LIBS,runtime_library_dirs=pykstpp_h.LIBDIRS)
File "D:\Python2.7.3.1\App\lib\site-packages\scipy\weave\inline_tools.py", line 355, in inline
**kw)
File "D:\Python2.7.3.1\App\lib\site-packages\scipy\weave\inline_tools.py", line 482, in compile_function
verbose=verbose, **kw)
File "D:\Python2.7.3.1\App\lib\site-packages\scipy\weave\ext_tools.py", line 367, in compile
verbose = verbose, **kw)
File "D:\Python2.7.3.1\App\lib\site-packages\scipy\weave\build_tools.py", line 272, in build_extension
setup(name = module_name, ext_modules = [ext],verbose=verb)
File "D:\Python2.7.3.1\App\lib\site-packages\numpy\distutils\core.py", line 186, in setup
return old_setup(**new_attr)
File "D:\Python2.7.3.1\App\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "D:\Python2.7.3.1\App\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "D:\Python2.7.3.1\App\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "D:\Python2.7.3.1\App\lib\site-packages\numpy\distutils\command\build_ext.py", line 232, in run
self.build_extensions()
File "D:\Python2.7.3.1\App\lib\distutils\command\build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "D:\Python2.7.3.1\App\lib\site-packages\numpy\distutils\command\build_ext.py", line 422, in build_extension
build_temp=self.build_temp,**kws)
File "D:\Python2.7.3.1\App\lib\distutils\ccompiler.py", line 689, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "D:\Python2.7.3.1\App\lib\site-packages\numpy\distutils\mingw32ccompiler.py", line 194, in link
func(*args[:func.im_func.func_code.co_argcount])
File "D:\Python2.7.3.1\App\lib\distutils\unixccompiler.py", line 218, in link
libraries)
File "D:\Python2.7.3.1\App\lib\site-packages\numpy\distutils\ccompiler.py", line 567, in gen_lib_options
runtime_library_dirs, libraries)
File "D:\Python2.7.3.1\App\lib\distutils\ccompiler.py", line 1069, in gen_lib_optionsIs
opt = compiler.runtime_library_dir_option(dir)
File "D:\Python2.7.3.1\App\lib\distutils\unixccompiler.py", line 285, in runtime_library_dir_option
compiler = os.path.basename(sysconfig.get_config_var("CC"))
File "D:\Python2.7.3.1\App\lib\ntpath.py", line 198, in basename
return split(p)[1]
File "D:\Python2.7.3.1\App\lib\ntpath.py", line 170, in split
d, p = splitdrive(p)
File "D:\Python2.7.3.1\App\lib\ntpath.py", line 125, in splitdrive
if p[1:2] == ':':
TypeError: 'NoneType' object has no attribute '__getitem__'
Looks like in the depths of numpy something doesn't work.
Do I have to configure numpy after installing?
Peter
More information about the Kst
mailing list