You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ./configure
KDB+ 3.5 2017.06.19 Copyright (C) 1993-2017 Kx Systems
m32/ 20()core 65536MB a a-imacpro.ny0.nln 10.166.1.30 NONEXPIRE
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: sequence item 0: expected str instance, int found
'os
[3] /Users/a/Work/KxSystems/embedPy/configure.q:4: py:{system string[$[count w;pp first w;e`python]]," -c \"",x,"\""}
^
q))
I am using Python 3.6:
$ python -V
Python 3.6.4
Here is so more information. The failing python command is
q))-1 string[$[count w;pp first w;e`python]]," -c \"",x,"\""
python3 -c "import sysconfig as c,os,sys;v=c.get_config_var;first=lambda x:len(x) and x[0];d=v('LDLIBRARY');P,p=sys.exec_prefix,sys.prefix;w=lambda x:first([a[0] for a in os.walk(x) if d in a[2]]);L=w(P+'/lib')or w(v('LIBDIR'));I=c.get_path('include');print('\n'.join([L,d,P,p,I]))"
Running it with inspect mode in python gives
$ python3 -i -c "import sysconfig as c,os,sys;v=c.get_config_var;first=lambda x:len(x) and x[0];d=v('LDLIBRARY');P,p=sys.exec_prefix,sys.prefix;w=lambda x:first([a[0] for a in os.walk(x) if d in a[2]]);L=w(P+'/lib')or w(v('LIBDIR'));I=c.get_path('include');print('\n'.join([L,d,P,p,I]))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: sequence item 0: expected str instance, int found
>>> import pdb; pdb.pm()
[0] > <string>(1)<module>()
(Pdb++) L
0
I am using Python 3.6:
Here is so more information. The failing python command is
Running it with inspect mode in python gives
So the culprit is the "walk" function:
Python dynamic library can be found in the following directory on my system:
This directory is correctly reported by
python-config
:The text was updated successfully, but these errors were encountered: