syntheticpp at gmx.net
Wed Jul 11 19:31:52 UTC 2012
On 10.07.2012 22:19, Nicolas Brisset wrote:
> 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
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
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>
File "D:\Python220.127.116.11\App\lib\site-packages\pykst.py", line 204, in plot
File "D:\Python18.104.22.168\App\lib\site-packages\pykst.py", line 638, in setFromList
File "D:\Python22.214.171.124\App\lib\site-packages\pykstpp.py", line 264, in set_matrix
File "D:\Python126.96.36.199\App\lib\site-packages\scipy\weave\inline_tools.py", line 355, in inline
File "D:\Python188.8.131.52\App\lib\site-packages\scipy\weave\inline_tools.py", line 482, in compile_function
File "D:\Python184.108.40.206\App\lib\site-packages\scipy\weave\ext_tools.py", line 367, in compile
verbose = verbose, **kw)
File "D:\Python220.127.116.11\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:\Python18.104.22.168\App\lib\site-packages\numpy\distutils\core.py", line 186, in setup
File "D:\Python22.214.171.124\App\lib\distutils\core.py", line 152, in setup
File "D:\Python126.96.36.199\App\lib\distutils\dist.py", line 953, in run_commands
File "D:\Python188.8.131.52\App\lib\distutils\dist.py", line 972, in run_command
File "D:\Python184.108.40.206\App\lib\site-packages\numpy\distutils\command\build_ext.py", line 232, in run
File "D:\Python220.127.116.11\App\lib\distutils\command\build_ext.py", line 448, in build_extensions
File "D:\Python18.104.22.168\App\lib\site-packages\numpy\distutils\command\build_ext.py", line 422, in build_extension
File "D:\Python22.214.171.124\App\lib\distutils\ccompiler.py", line 689, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "D:\Python126.96.36.199\App\lib\site-packages\numpy\distutils\mingw32ccompiler.py", line 194, in link
File "D:\Python188.8.131.52\App\lib\distutils\unixccompiler.py", line 218, in link
File "D:\Python184.108.40.206\App\lib\site-packages\numpy\distutils\ccompiler.py", line 567, in gen_lib_options
File "D:\Python220.127.116.11\App\lib\distutils\ccompiler.py", line 1069, in gen_lib_optionsIs
opt = compiler.runtime_library_dir_option(dir)
File "D:\Python18.104.22.168\App\lib\distutils\unixccompiler.py", line 285, in runtime_library_dir_option
compiler = os.path.basename(sysconfig.get_config_var("CC"))
File "D:\Python22.214.171.124\App\lib\ntpath.py", line 198, in basename
File "D:\Python126.96.36.199\App\lib\ntpath.py", line 170, in split
d, p = splitdrive(p)
File "D:\Python188.8.131.52\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?
More information about the Kst