Closed zorg613 closed 6 years ago
Please reinstall pyq in verbose mode:
$ pip install -v -U pyq
and find out where the pyq package gets installed.
Are you able to run simple Python commands at the q prompt:
q)p)print(42)
If the above works (prints 42), please check the sys.path:
q)p)import sys
q)p)print(sys.path)
$ export QHOME=$HOME/pyq/q
$ export PATH=$QHOME/l32:$PATH
$ cd $HOME/pyq
$ source bin/activate
(pyq) $ pip3 install -v -U pyq
Created temporary directory: /tmp/pip-ephem-wheel-cache-hwt3mxux
Created temporary directory: /tmp/pip-install-jxfssc6u
1 location(s) to search for versions of pyq:
* https://pypi.org/simple/pyq/
Getting page https://pypi.org/simple/pyq/
Looking up "https://pypi.org/simple/pyq/" in the cache
Current age based on date: 479
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 479
Analyzing links from page https://pypi.org/simple/pyq/
Found link https://files.pythonhosted.org/packages/66/2c/d1e1891e293edd7905ac4d1d6e4f9f30ff7e40cebf8e2a2629bf4f9f4152/pyq-4.1.0.post1.tar.gz#sha256=e7552e092ef68196a431aec6a7c2d235b78a4d2ae54e8d3246f485fd963e1637 (from https://pypi.org/simple/pyq/), version: 4.1.0.post1
Found link https://files.pythonhosted.org/packages/c0/a6/6dad579c65ded93d9da0fdf9e0da268870c9cea5abd6e2d0606b67f0905d/pyq-4.1.1.tar.gz#sha256=72b337007f1f43743bd0f02f05f16331ddbad46a7fd00bfced158f41d2bfee18 (from https://pypi.org/simple/pyq/), version: 4.1.1
Skipping link https://files.pythonhosted.org/packages/4f/bd/e7026ae10439d36eca775d2075ef2a121d9c252e8408d5eaa09189c47fd3/pyq-4.1.2b1-cp27-cp27m-macosx_10_12_intel.whl#sha256=6138d0fc73d1a91f7bb53c2c5d2eff2f7c0951b66262fec9847ee20aa614009a (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/13/a3/a98edf0c3f021ebf404c00287a93cc9a31a9eb32e0273727ffae94788379/pyq-4.1.2b1-cp27-cp27m-win32.whl#sha256=c1e9849a3b0b803f59229f65690bab69050abe2a81cd7ca096a73ea82a3b3fe4 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/94/3b/3ffc69412108b64846e176bbee5196d6161436ce40daf4e6bb58d589b20e/pyq-4.1.2b1-cp27-cp27m-win_amd64.whl#sha256=233f8ee5648eab7d69772e63cd70801749deb0498b5a847df8437155347aaa33 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/24/55/08decbc9fa08e6d4a051aba7812b4a5d3182d0fdbf10e1b87af11d1c4de8/pyq-4.1.2b1-cp36-cp36m-macosx_10_12_intel.whl#sha256=b007611b5c30b9cff0036e85d1d018286cfcbed1fcc08f72114f7631942609bf (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/02/ab/96a7d742d5279a23654201a16d34cda0019fbaaef4fa64984da13ce06f04/pyq-4.1.2b1-cp36-cp36m-win32.whl#sha256=59f27fa5d4a034ecb0fd2a4c97558aa411cd2012d8143c4cfcd2dd1395e5f33a (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/53/fb/9cadc05b6cb919ee345c266e76c19257b33c1e9546bd9d22792f4c1e2b49/pyq-4.1.2b1-cp36-cp36m-win_amd64.whl#sha256=0fb33044482ae7b71750949a9a46562e5d262099eb68caef1bc474e7688abd23 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/29/ba/9c7184f72fd9328f949e770402dc98f8c34d46fe24c5075ce8d57a1acb93/pyq-4.1.2-cp27-cp27m-win32.whl#sha256=50fc98f48795b6ac7e05fc35bcfc415e5170d3218c8f4d4e02362a601f8fa9c0 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/48/90/76ea75b94cd15b31db1c304fe0d83a07b82a788295f57e5981cbcdcd377f/pyq-4.1.2-cp27-cp27m-win_amd64.whl#sha256=45b89c77ac6ef96fd3c18964fbf3c1aad9a6fa8c65cfb1dc52dd33552ac900a7 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/fb/4f/bbbe1d029875e3492afce4b4b44717c88228420be53a9ce14a8920280f66/pyq-4.1.2-cp36-cp36m-win32.whl#sha256=05c51e3d538e89b36583d2c13bc53443dc97e2fc60ea52dca82e67aa9c54d570 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/dd/19/e7e4e4540061ec2946fc6941b78dd16576d5c1802ed155cfede3bf004278/pyq-4.1.2-cp36-cp36m-win_amd64.whl#sha256=8cb1cd6378dd32bf852cbd47fda4f73624d89aa683f5b880e1179320f2a1fae1 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Found link https://files.pythonhosted.org/packages/99/04/a8c7f814ae137e3fdb21f43666221557f76ca7f59fa3c992800c2d159502/pyq-4.1.2.tar.gz#sha256=09ce6ae8a4b2a2c36008782108504b357c52c4d3cc1db602b965790b4ece865b (from https://pypi.org/simple/pyq/), version: 4.1.2
Found link https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz#sha256=e4e95970a930408d64b7351ad80c4c601f1ba414379de4d03717138d13a2a02f (from https://pypi.org/simple/pyq/), version: 4.1.3
Installed version (4.1.3) is most up-to-date (past versions: 4.1.0.post1, 4.1.1, 4.1.2, 4.1.3)
Requirement already up-to-date: pyq in ./lib/python3.6/site-packages (4.1.3)
Cleaning up...
(pyq) $ q
KDB+ 3.6 2018.05.17 Copyright (C) 1993-2018 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/wiki/Tutorials
To exit, type \\
To remove this startup msg, edit q.q
q)p)print(42)
Traceback (most recent call last):
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 22, in <module>
from ._k import K as _K, error as kerr, Q_VERSION, Q_DATE, Q_OS
ModuleNotFoundError: No module named 'pyq._k'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
raise ImportError(message)
ImportError: Importing pyq from stock python is not supported. Use pyq executable.
'python
[0] (<load>)
)
)\
q)p)print(42)
42
q)p)import sys
q)p)print(sys.path)
['/home/fred/pyq/lib/python36.zip', '/home/fred/pyq/lib/python3.6', '/home/fred/pyq/lib/python3.6/lib-dynload', '/home/fred/python32/lib/python3.6', '/home/fred/pyq/lib/python3.6/site-packages']
q)
same result after uninstalling, cleaned de wheel and redone the install with pip:
(pyq) $ pip3 install -v pyq
Created temporary directory: /tmp/pip-ephem-wheel-cache-gfswc9ps
Created temporary directory: /tmp/pip-install-mcu93nuo
Collecting pyq
1 location(s) to search for versions of pyq:
* https://pypi.org/simple/pyq/
Getting page https://pypi.org/simple/pyq/
Looking up "https://pypi.org/simple/pyq/" in the cache
Current age based on date: 128
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 128
Analyzing links from page https://pypi.org/simple/pyq/
Found link https://files.pythonhosted.org/packages/66/2c/d1e1891e293edd7905ac4d1d6e4f9f30ff7e40cebf8e2a2629bf4f9f4152/pyq-4.1.0.post1.tar.gz#sha256=e7552e092ef68196a431aec6a7c2d235b78a4d2ae54e8d3246f485fd963e1637 (from https://pypi.org/simple/pyq/), version: 4.1.0.post1
Found link https://files.pythonhosted.org/packages/c0/a6/6dad579c65ded93d9da0fdf9e0da268870c9cea5abd6e2d0606b67f0905d/pyq-4.1.1.tar.gz#sha256=72b337007f1f43743bd0f02f05f16331ddbad46a7fd00bfced158f41d2bfee18 (from https://pypi.org/simple/pyq/), version: 4.1.1
Skipping link https://files.pythonhosted.org/packages/4f/bd/e7026ae10439d36eca775d2075ef2a121d9c252e8408d5eaa09189c47fd3/pyq-4.1.2b1-cp27-cp27m-macosx_10_12_intel.whl#sha256=6138d0fc73d1a91f7bb53c2c5d2eff2f7c0951b66262fec9847ee20aa614009a (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/13/a3/a98edf0c3f021ebf404c00287a93cc9a31a9eb32e0273727ffae94788379/pyq-4.1.2b1-cp27-cp27m-win32.whl#sha256=c1e9849a3b0b803f59229f65690bab69050abe2a81cd7ca096a73ea82a3b3fe4 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/94/3b/3ffc69412108b64846e176bbee5196d6161436ce40daf4e6bb58d589b20e/pyq-4.1.2b1-cp27-cp27m-win_amd64.whl#sha256=233f8ee5648eab7d69772e63cd70801749deb0498b5a847df8437155347aaa33 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/24/55/08decbc9fa08e6d4a051aba7812b4a5d3182d0fdbf10e1b87af11d1c4de8/pyq-4.1.2b1-cp36-cp36m-macosx_10_12_intel.whl#sha256=b007611b5c30b9cff0036e85d1d018286cfcbed1fcc08f72114f7631942609bf (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/02/ab/96a7d742d5279a23654201a16d34cda0019fbaaef4fa64984da13ce06f04/pyq-4.1.2b1-cp36-cp36m-win32.whl#sha256=59f27fa5d4a034ecb0fd2a4c97558aa411cd2012d8143c4cfcd2dd1395e5f33a (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/53/fb/9cadc05b6cb919ee345c266e76c19257b33c1e9546bd9d22792f4c1e2b49/pyq-4.1.2b1-cp36-cp36m-win_amd64.whl#sha256=0fb33044482ae7b71750949a9a46562e5d262099eb68caef1bc474e7688abd23 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/29/ba/9c7184f72fd9328f949e770402dc98f8c34d46fe24c5075ce8d57a1acb93/pyq-4.1.2-cp27-cp27m-win32.whl#sha256=50fc98f48795b6ac7e05fc35bcfc415e5170d3218c8f4d4e02362a601f8fa9c0 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/48/90/76ea75b94cd15b31db1c304fe0d83a07b82a788295f57e5981cbcdcd377f/pyq-4.1.2-cp27-cp27m-win_amd64.whl#sha256=45b89c77ac6ef96fd3c18964fbf3c1aad9a6fa8c65cfb1dc52dd33552ac900a7 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/fb/4f/bbbe1d029875e3492afce4b4b44717c88228420be53a9ce14a8920280f66/pyq-4.1.2-cp36-cp36m-win32.whl#sha256=05c51e3d538e89b36583d2c13bc53443dc97e2fc60ea52dca82e67aa9c54d570 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/dd/19/e7e4e4540061ec2946fc6941b78dd16576d5c1802ed155cfede3bf004278/pyq-4.1.2-cp36-cp36m-win_amd64.whl#sha256=8cb1cd6378dd32bf852cbd47fda4f73624d89aa683f5b880e1179320f2a1fae1 (from https://pypi.org/simple/pyq/); it is not compatible with this Python
Found link https://files.pythonhosted.org/packages/99/04/a8c7f814ae137e3fdb21f43666221557f76ca7f59fa3c992800c2d159502/pyq-4.1.2.tar.gz#sha256=09ce6ae8a4b2a2c36008782108504b357c52c4d3cc1db602b965790b4ece865b (from https://pypi.org/simple/pyq/), version: 4.1.2
Found link https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz#sha256=e4e95970a930408d64b7351ad80c4c601f1ba414379de4d03717138d13a2a02f (from https://pypi.org/simple/pyq/), version: 4.1.3
Using version 4.1.3 (newest of versions: 4.1.0.post1, 4.1.1, 4.1.2, 4.1.3)
Created temporary directory: /tmp/pip-unpack-doc8phqy
Looking up "https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz" in the cache
Ignoring unknown cache-control directive:
Current age based on date: 90832
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 90832
Using cached https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz
Downloading from URL https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz#sha256=e4e95970a930408d64b7351ad80c4c601f1ba414379de4d03717138d13a2a02f (from https://pypi.org/simple/pyq/)
Running setup.py (path:/tmp/pip-install-mcu93nuo/pyq/setup.py) egg_info for package pyq
Running command python setup.py egg_info
running egg_info
creating pip-egg-info/pyq.egg-info
writing pip-egg-info/pyq.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/pyq.egg-info/dependency_links.txt
writing requirements to pip-egg-info/pyq.egg-info/requires.txt
writing top-level names to pip-egg-info/pyq.egg-info/top_level.txt
writing manifest file 'pip-egg-info/pyq.egg-info/SOURCES.txt'
reading manifest file 'pip-egg-info/pyq.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/pyq.egg-info/SOURCES.txt'
Source in /tmp/pip-install-mcu93nuo/pyq has version 4.1.3, which satisfies requirement pyq from https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz#sha256=e4e95970a930408d64b7351ad80c4c601f1ba414379de4d03717138d13a2a02f
Building wheels for collected packages: pyq
Created temporary directory: /tmp/pip-wheel-rv4vmgbi
Running setup.py bdist_wheel for pyq ... Destination directory: /tmp/pip-wheel-rv4vmgbi
Running command /home/fred/pyq/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-mcu93nuo/pyq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-rv4vmgbi --python-tag cp36
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pyq
copying src/pyq/ptk.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/__init__.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/_pt_run.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/_n.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/version.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/cmd.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/conftest.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/magic.py -> build/lib.linux-x86_64-3.6/pyq
creating build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_sd.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_pathlib.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_numpy.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_com.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_pyq_executable.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_memoryview.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_threads.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_n.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_python_q.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_pypath.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_magic.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_k.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_p.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/__init__.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_ci.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_no_numpy.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_q.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_version.py -> build/lib.linux-x86_64-3.6/pyq/tests
running build_ext
building 'pyq._k' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
creating build/temp.linux-x86_64-3.6/src/pyq
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -m32 -m32 -fPIC -DKXVER=3 -DKXVER2=6 -I/home/fred/python32/include/python3.6m -c src/pyq/_k.c -o build/temp.linux-x86_64-3.6/src/pyq/_k.o -Wpointer-arith -Werror -fno-strict-aliasing -m32
gcc -pthread -shared -m32 -m32 build/temp.linux-x86_64-3.6/src/pyq/_k.o -L/home/fred/python32/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/pyq/_k.cpython-36m-i386-linux-gnu.so -m32
running build_scripts
creating build/scripts-3.6
copying src/scripts/pyq-runtests -> build/scripts-3.6
copying and adjusting src/scripts/pyq-coverage -> build/scripts-3.6
copying src/scripts/ipyq -> build/scripts-3.6
copying src/scripts/pq -> build/scripts-3.6
copying src/scripts/qp -> build/scripts-3.6
changing mode of build/scripts-3.6/pyq-coverage from 644 to 755
changing mode of build/scripts-3.6/ipyq from 644 to 755
changing mode of build/scripts-3.6/pq from 644 to 755
changing mode of build/scripts-3.6/qp from 644 to 755
running build_qlib
creating build/qlib
copying src/pyq/python.q -> build/qlib
copying src/pyq/p.k -> build/qlib
copying src/pyq/pyq-operators.q -> build/qlib
running build_qext
creating build/temp.linux-x86_64
creating build/temp.linux-x86_64/src
creating build/temp.linux-x86_64/src/pyq
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -m32 -m32 -fPIC -DKXVER=3 -DKXVER2=6 -DPY3K=36 -Isrc/pyq -c src/pyq/p.c -o build/temp.linux-x86_64/src/pyq/p.o -Wpointer-arith -Werror -fno-strict-aliasing -m32
creating build/qext.linux-x86_64
gcc -pthread -shared -m32 -m32 build/temp.linux-x86_64/src/pyq/p.o -o build/qext.linux-x86_64/p.so -m32
running build_exe
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -m32 -m32 -fPIC -DKXVER=3 -DQARCH=l32 -c src/pyq.c -o src/pyq.o -Wpointer-arith -Werror -fno-strict-aliasing -m32
creating build/exe.linux-x86_64-3.6
gcc -pthread -m32 src/pyq.o -o build/exe.linux-x86_64-3.6/pyq
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/pyq
copying build/lib.linux-x86_64-3.6/pyq/_k.cpython-36m-i386-linux-gnu.so -> build/bdist.linux-x86_64/wheel/pyq
creating build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_version.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_q.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_no_numpy.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_ci.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/__init__.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_p.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_k.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_magic.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_pypath.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_python_q.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_n.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_threads.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_memoryview.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_pyq_executable.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_com.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_numpy.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_pathlib.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_sd.py -> build/bdist.linux-x86_64/wheel/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/magic.py -> build/bdist.linux-x86_64/wheel/pyq
copying build/lib.linux-x86_64-3.6/pyq/conftest.py -> build/bdist.linux-x86_64/wheel/pyq
copying build/lib.linux-x86_64-3.6/pyq/cmd.py -> build/bdist.linux-x86_64/wheel/pyq
copying build/lib.linux-x86_64-3.6/pyq/version.py -> build/bdist.linux-x86_64/wheel/pyq
copying build/lib.linux-x86_64-3.6/pyq/_n.py -> build/bdist.linux-x86_64/wheel/pyq
copying build/lib.linux-x86_64-3.6/pyq/_pt_run.py -> build/bdist.linux-x86_64/wheel/pyq
copying build/lib.linux-x86_64-3.6/pyq/__init__.py -> build/bdist.linux-x86_64/wheel/pyq
copying build/lib.linux-x86_64-3.6/pyq/ptk.py -> build/bdist.linux-x86_64/wheel/pyq
running install_data
creating build/bdist.linux-x86_64/wheel/pyq-4.1.3.data
creating build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/data
creating build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/data/q
copying src/pyq/p.k -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/data/q
copying src/pyq/pyq-operators.q -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/data/q
copying src/pyq/python.q -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/data/q
copying build/qlib/pyq-config.q -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/data/q
creating build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/data/q/l32
copying build/qext.linux-x86_64/p.so -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/data/q/l32
running install_qlib
copying build/qlib/pyq-operators.q -> /home/fred/pyq/q
copying build/qlib/p.k -> /home/fred/pyq/q
copying build/qlib/python.q -> /home/fred/pyq/q
copying build/qlib/pyq-config.q -> /home/fred/pyq/q
running install_qext
copying build/qext.linux-x86_64/p.so -> /home/fred/pyq/q/l32
running install_exe
creating build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts
copying build/exe.linux-x86_64-3.6/pyq -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts
changing mode of build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts/pyq to 755
running install_egg_info
running egg_info
creating src/pyq.egg-info
writing src/pyq.egg-info/PKG-INFO
writing dependency_links to src/pyq.egg-info/dependency_links.txt
writing requirements to src/pyq.egg-info/requires.txt
writing top-level names to src/pyq.egg-info/top_level.txt
writing manifest file 'src/pyq.egg-info/SOURCES.txt'
reading manifest file 'src/pyq.egg-info/SOURCES.txt'
writing manifest file 'src/pyq.egg-info/SOURCES.txt'
Copying src/pyq.egg-info to build/bdist.linux-x86_64/wheel/pyq-4.1.3-py3.6.egg-info
running install_scripts
copying build/scripts-3.6/qp -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts
copying build/scripts-3.6/pq -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts
copying build/scripts-3.6/ipyq -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts
copying build/scripts-3.6/pyq-coverage -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts
copying build/scripts-3.6/pyq-runtests -> build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts
changing mode of build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts/qp to 755
changing mode of build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts/pq to 755
changing mode of build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts/ipyq to 755
changing mode of build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts/pyq-coverage to 755
changing mode of build/bdist.linux-x86_64/wheel/pyq-4.1.3.data/scripts/pyq-runtests to 755
creating build/bdist.linux-x86_64/wheel/pyq-4.1.3.dist-info/WHEEL
creating '/tmp/pip-wheel-rv4vmgbi/pyq-4.1.3-cp36-cp36m-linux_i686.whl' and adding '.' to it
adding 'pyq/__init__.py'
adding 'pyq/_k.cpython-36m-i386-linux-gnu.so'
adding 'pyq/_n.py'
adding 'pyq/_pt_run.py'
adding 'pyq/cmd.py'
adding 'pyq/conftest.py'
adding 'pyq/magic.py'
adding 'pyq/ptk.py'
adding 'pyq/version.py'
adding 'pyq/tests/__init__.py'
adding 'pyq/tests/test_ci.py'
adding 'pyq/tests/test_com.py'
adding 'pyq/tests/test_k.py'
adding 'pyq/tests/test_magic.py'
adding 'pyq/tests/test_memoryview.py'
adding 'pyq/tests/test_n.py'
adding 'pyq/tests/test_no_numpy.py'
adding 'pyq/tests/test_numpy.py'
adding 'pyq/tests/test_p.py'
adding 'pyq/tests/test_pathlib.py'
adding 'pyq/tests/test_pypath.py'
adding 'pyq/tests/test_pyq_executable.py'
adding 'pyq/tests/test_python_q.py'
adding 'pyq/tests/test_q.py'
adding 'pyq/tests/test_sd.py'
adding 'pyq/tests/test_threads.py'
adding 'pyq/tests/test_version.py'
adding 'pyq-4.1.3.data/data/q/p.k'
adding 'pyq-4.1.3.data/data/q/pyq-config.q'
adding 'pyq-4.1.3.data/data/q/pyq-operators.q'
adding 'pyq-4.1.3.data/data/q/python.q'
adding 'pyq-4.1.3.data/data/q/l32/p.so'
adding 'pyq-4.1.3.data/scripts/ipyq'
adding 'pyq-4.1.3.data/scripts/pq'
adding 'pyq-4.1.3.data/scripts/pyq'
adding 'pyq-4.1.3.data/scripts/pyq-coverage'
adding 'pyq-4.1.3.data/scripts/pyq-runtests'
adding 'pyq-4.1.3.data/scripts/qp'
adding 'pyq-4.1.3.dist-info/top_level.txt'
adding 'pyq-4.1.3.dist-info/WHEEL'
adding 'pyq-4.1.3.dist-info/METADATA'
adding 'pyq-4.1.3.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
done
Stored in directory: /home/fred/.cache/pip/wheels/81/72/5d/e1dc2882bcf5959062733c877f5edfda9422faebaf32d3ab65
Removing source in /tmp/pip-install-mcu93nuo/pyq
Successfully built pyq
Installing collected packages: pyq
Successfully installed pyq-4.1.3
Cleaning up...
(pyq) $ q
KDB+ 3.6 2018.05.17 Copyright (C) 1993-2018 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/wiki/Tutorials
To exit, type \\
To remove this startup msg, edit q.q
q)p)print(42)
Traceback (most recent call last):
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 22, in <module>
from ._k import K as _K, error as kerr, Q_VERSION, Q_DATE, Q_OS
ModuleNotFoundError: No module named 'pyq._k'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
raise ImportError(message)
ImportError: Importing pyq from stock python is not supported. Use pyq executable.
'python
[0] (<load>)
)\
q)p)import sys; print(sys.path);
['/home/fred/pyq/lib/python36.zip', '/home/fred/pyq/lib/python3.6', '/home/fred/pyq/lib/python3.6/lib-dynload', '/home/fred/python32/lib/python3.6', '/home/fred/pyq/lib/python3.6/site-packages']
It looks like regular install does not show the target for the pya package. Please uninstall and look for the line with site-packages/pyq/_k.cpython-36m-*.so
in it. The expected full path is
/home/fred/pyq/lib/python3.6/site-packages/pyq/_k.cpython-36m-*.so
Now reinstall with
(pyq) $ pip3 install -v --no-binary pyq pyq
From what I can see so far, you are getting a correct sys.path, so we need to to figure out why you don't have a working _k.cpython-36m-*.so
in /site-packages/pyq
.
I have not used Artix Linux before, but I can try it in Docker if you can point me to the appropriate Docker file.
(pyq) $ file /home/fred/pyq/lib/python3.6/site-packages/pyq/_k.cpython-36m-i386-linux-gnu.so
/home/fred/pyq/lib/python3.6/site-packages/pyq/_k.cpython-36m-i386-linux-gnu.so: ELF 32-bit LSB pie executable Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=4e05656ceac9e576d501713ac62ce8830389c4f5, with debug_info, not stripped
(pyq) $ ldd /home/fred/pyq/lib/python3.6/site-packages/pyq/_k.cpython-36m-i386-linux-gnu.so
linux-gate.so.1 (0xf7f4f000)
libpython3.6m.so.1.0 => not found
libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf7ed5000)
libc.so.6 => /usr/lib32/libc.so.6 (0xf7cfc000)
/usr/lib/ld-linux.so.2 (0xf7f51000)
(pyq) $ export LD_LIBRARY_PATH=/home/fred/python32/lib/
(pyq) $ ldd /home/fred/pyq/lib/python3.6/site-packages/pyq/_k.cpython-36m-i386-linux-gnu.so
linux-gate.so.1 (0xf7f0e000)
libpython3.6m.so.1.0 => /home/fred/python32/lib/libpython3.6m.so.1.0 (0xf7bd0000)
libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf7b76000)
libc.so.6 => /usr/lib32/libc.so.6 (0xf799d000)
libdl.so.2 => /usr/lib32/libdl.so.2 (0xf7998000)
libutil.so.1 => /usr/lib32/libutil.so.1 (0xf7994000)
libm.so.6 => /usr/lib32/libm.so.6 (0xf78c9000)
/usr/lib/ld-linux.so.2 (0xf7f10000)
So, I tought we found it so, adapted the bin/activate with this and resourced it
$ tail -5 pyq/bin/activate
export QHOME=$VIRTUAL_ENV/q
export PATH=$QHOME/l32:$PATH
export LD_LIBRARY_PATH=/home/fred/python32/lib
alias q 2>/dev/null >/dev/null && unalias q
cd $VIRTUAL_ENV
but even with a reinstall with pip3 -v install --no-binary pyq pyq, I've got the same result.
(pyq) $ bin/pip3 install -v --no-binary pyq pyq
Created temporary directory: /tmp/pip-ephem-wheel-cache-cbvpquyc
Created temporary directory: /tmp/pip-install-8m8woa89
Collecting pyq
1 location(s) to search for versions of pyq:
* https://pypi.org/simple/pyq/
Getting page https://pypi.org/simple/pyq/
Looking up "https://pypi.org/simple/pyq/" in the cache
Current age based on date: 67
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 67
Analyzing links from page https://pypi.org/simple/pyq/
Found link https://files.pythonhosted.org/packages/66/2c/d1e1891e293edd7905ac4d1d6e4f9f30ff7e40cebf8e2a2629bf4f9f4152/pyq-4.1.0.post1.tar.gz#sha256=e7552e092ef68196a431aec6a7c2d235b78a4d2ae54e8d3246f485fd963e1637 (from https://pypi.org/simple/pyq/), version: 4.1.0.post1
Found link https://files.pythonhosted.org/packages/c0/a6/6dad579c65ded93d9da0fdf9e0da268870c9cea5abd6e2d0606b67f0905d/pyq-4.1.1.tar.gz#sha256=72b337007f1f43743bd0f02f05f16331ddbad46a7fd00bfced158f41d2bfee18 (from https://pypi.org/simple/pyq/), version: 4.1.1
Skipping link https://files.pythonhosted.org/packages/4f/bd/e7026ae10439d36eca775d2075ef2a121d9c252e8408d5eaa09189c47fd3/pyq-4.1.2b1-cp27-cp27m-macosx_10_12_intel.whl#sha256=6138d0fc73d1a91f7bb53c2c5d2eff2f7c0951b66262fec9847ee20aa614009a (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/13/a3/a98edf0c3f021ebf404c00287a93cc9a31a9eb32e0273727ffae94788379/pyq-4.1.2b1-cp27-cp27m-win32.whl#sha256=c1e9849a3b0b803f59229f65690bab69050abe2a81cd7ca096a73ea82a3b3fe4 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/94/3b/3ffc69412108b64846e176bbee5196d6161436ce40daf4e6bb58d589b20e/pyq-4.1.2b1-cp27-cp27m-win_amd64.whl#sha256=233f8ee5648eab7d69772e63cd70801749deb0498b5a847df8437155347aaa33 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/24/55/08decbc9fa08e6d4a051aba7812b4a5d3182d0fdbf10e1b87af11d1c4de8/pyq-4.1.2b1-cp36-cp36m-macosx_10_12_intel.whl#sha256=b007611b5c30b9cff0036e85d1d018286cfcbed1fcc08f72114f7631942609bf (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/02/ab/96a7d742d5279a23654201a16d34cda0019fbaaef4fa64984da13ce06f04/pyq-4.1.2b1-cp36-cp36m-win32.whl#sha256=59f27fa5d4a034ecb0fd2a4c97558aa411cd2012d8143c4cfcd2dd1395e5f33a (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/53/fb/9cadc05b6cb919ee345c266e76c19257b33c1e9546bd9d22792f4c1e2b49/pyq-4.1.2b1-cp36-cp36m-win_amd64.whl#sha256=0fb33044482ae7b71750949a9a46562e5d262099eb68caef1bc474e7688abd23 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/29/ba/9c7184f72fd9328f949e770402dc98f8c34d46fe24c5075ce8d57a1acb93/pyq-4.1.2-cp27-cp27m-win32.whl#sha256=50fc98f48795b6ac7e05fc35bcfc415e5170d3218c8f4d4e02362a601f8fa9c0 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/48/90/76ea75b94cd15b31db1c304fe0d83a07b82a788295f57e5981cbcdcd377f/pyq-4.1.2-cp27-cp27m-win_amd64.whl#sha256=45b89c77ac6ef96fd3c18964fbf3c1aad9a6fa8c65cfb1dc52dd33552ac900a7 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/fb/4f/bbbe1d029875e3492afce4b4b44717c88228420be53a9ce14a8920280f66/pyq-4.1.2-cp36-cp36m-win32.whl#sha256=05c51e3d538e89b36583d2c13bc53443dc97e2fc60ea52dca82e67aa9c54d570 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/dd/19/e7e4e4540061ec2946fc6941b78dd16576d5c1802ed155cfede3bf004278/pyq-4.1.2-cp36-cp36m-win_amd64.whl#sha256=8cb1cd6378dd32bf852cbd47fda4f73624d89aa683f5b880e1179320f2a1fae1 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Found link https://files.pythonhosted.org/packages/99/04/a8c7f814ae137e3fdb21f43666221557f76ca7f59fa3c992800c2d159502/pyq-4.1.2.tar.gz#sha256=09ce6ae8a4b2a2c36008782108504b357c52c4d3cc1db602b965790b4ece865b (from https://pypi.org/simple/pyq/), version: 4.1.2
Found link https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz#sha256=e4e95970a930408d64b7351ad80c4c601f1ba414379de4d03717138d13a2a02f (from https://pypi.org/simple/pyq/), version: 4.1.3
Using version 4.1.3 (newest of versions: 4.1.0.post1, 4.1.1, 4.1.2, 4.1.3)
Created temporary directory: /tmp/pip-unpack-jk1zoyqg
Looking up "https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz" in the cache
Ignoring unknown cache-control directive:
Current age based on date: 152526
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 152526
Using cached https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz
Downloading from URL https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz#sha256=e4e95970a930408d64b7351ad80c4c601f1ba414379de4d03717138d13a2a02f (from https://pypi.org/simple/pyq/)
Running setup.py (path:/tmp/pip-install-8m8woa89/pyq/setup.py) egg_info for package pyq
Running command python setup.py egg_info
running egg_info
creating pip-egg-info/pyq.egg-info
writing pip-egg-info/pyq.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/pyq.egg-info/dependency_links.txt
writing requirements to pip-egg-info/pyq.egg-info/requires.txt
writing top-level names to pip-egg-info/pyq.egg-info/top_level.txt
writing manifest file 'pip-egg-info/pyq.egg-info/SOURCES.txt'
reading manifest file 'pip-egg-info/pyq.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/pyq.egg-info/SOURCES.txt'
Source in /tmp/pip-install-8m8woa89/pyq has version 4.1.3, which satisfies requirement pyq from https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz#sha256=e4e95970a930408d64b7351ad80c4c601f1ba414379de4d03717138d13a2a02f
Skipping bdist_wheel for pyq, due to binaries being disabled for it.
Installing collected packages: pyq
Created temporary directory: /tmp/pip-record-k1lj7_0j
Running setup.py install for pyq ... Running command /home/fred/pyq/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-8m8woa89/pyq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-k1lj7_0j/install-record.txt --single-version-externally-managed --compile --install-headers /home/fred/pyq/include/site/python3.6/pyq
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pyq
copying src/pyq/ptk.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/__init__.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/_pt_run.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/_n.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/version.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/cmd.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/conftest.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/magic.py -> build/lib.linux-x86_64-3.6/pyq
creating build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_sd.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_pathlib.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_numpy.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_com.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_pyq_executable.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_memoryview.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_threads.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_n.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_python_q.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_pypath.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_magic.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_k.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_p.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/__init__.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_ci.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_no_numpy.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_q.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_version.py -> build/lib.linux-x86_64-3.6/pyq/tests
running build_ext
building 'pyq._k' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
creating build/temp.linux-x86_64-3.6/src/pyq
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -m32 -m32 -fPIC -DKXVER=3 -DKXVER2=5 -I/home/fred/python32/include/python3.6m -c src/pyq/_k.c -o build/temp.linux-x86_64-3.6/src/pyq/_k.o -Wpointer-arith -Werror -fno-strict-aliasing -m32
gcc -pthread -shared -m32 -m32 build/temp.linux-x86_64-3.6/src/pyq/_k.o -L/home/fred/python32/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/pyq/_k.cpython-36m-i386-linux-gnu.so -m32
running build_scripts
creating build/scripts-3.6
copying src/scripts/pyq-runtests -> build/scripts-3.6
copying and adjusting src/scripts/pyq-coverage -> build/scripts-3.6
copying src/scripts/ipyq -> build/scripts-3.6
copying src/scripts/pq -> build/scripts-3.6
copying src/scripts/qp -> build/scripts-3.6
changing mode of build/scripts-3.6/pyq-coverage from 644 to 755
changing mode of build/scripts-3.6/ipyq from 644 to 755
changing mode of build/scripts-3.6/pq from 644 to 755
changing mode of build/scripts-3.6/qp from 644 to 755
running build_qlib
creating build/qlib
copying src/pyq/python.q -> build/qlib
copying src/pyq/p.k -> build/qlib
copying src/pyq/pyq-operators.q -> build/qlib
running build_qext
creating build/temp.linux-x86_64
creating build/temp.linux-x86_64/src
creating build/temp.linux-x86_64/src/pyq
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -m32 -m32 -fPIC -DKXVER=3 -DKXVER2=5 -DPY3K=36 -Isrc/pyq -c src/pyq/p.c -o build/temp.linux-x86_64/src/pyq/p.o -Wpointer-arith -Werror -fno-strict-aliasing -m32
creating build/qext.linux-x86_64
gcc -pthread -shared -m32 -m32 build/temp.linux-x86_64/src/pyq/p.o -o build/qext.linux-x86_64/p.so -m32
running build_exe
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -m32 -m32 -fPIC -DKXVER=3 -DQARCH=l32 -c src/pyq.c -o src/pyq.o -Wpointer-arith -Werror -fno-strict-aliasing -m32
creating build/exe.linux-x86_64-3.6
gcc -pthread -m32 src/pyq.o -o build/exe.linux-x86_64-3.6/pyq
running install_lib
creating /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/_k.cpython-36m-i386-linux-gnu.so -> /home/fred/pyq/lib/python3.6/site-packages/pyq
creating /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_version.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_q.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_no_numpy.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_ci.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/__init__.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_p.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_k.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_magic.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_pypath.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_python_q.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_n.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_threads.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_memoryview.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_pyq_executable.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_com.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_numpy.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_pathlib.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_sd.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/magic.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/conftest.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/cmd.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/version.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/_n.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/_pt_run.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/__init__.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/ptk.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_version.py to test_version.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_q.py to test_q.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_no_numpy.py to test_no_numpy.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_ci.py to test_ci.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/__init__.py to __init__.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_p.py to test_p.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_k.py to test_k.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_magic.py to test_magic.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_pypath.py to test_pypath.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_python_q.py to test_python_q.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_n.py to test_n.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_threads.py to test_threads.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_memoryview.py to test_memoryview.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_pyq_executable.py to test_pyq_executable.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_com.py to test_com.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_numpy.py to test_numpy.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_pathlib.py to test_pathlib.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_sd.py to test_sd.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/magic.py to magic.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/conftest.py to conftest.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/cmd.py to cmd.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/version.py to version.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/_n.py to _n.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/_pt_run.py to _pt_run.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py to __init__.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/ptk.py to ptk.cpython-36.pyc
running install_data
copying src/pyq/p.k -> /home/fred/pyq/q
copying src/pyq/pyq-operators.q -> /home/fred/pyq/q
copying src/pyq/python.q -> /home/fred/pyq/q
copying build/qlib/pyq-config.q -> /home/fred/pyq/q
copying build/qext.linux-x86_64/p.so -> /home/fred/pyq/q/l32
running install_qlib
running install_qext
running install_exe
copying build/exe.linux-x86_64-3.6/pyq -> /home/fred/pyq/bin
changing mode of /home/fred/pyq/bin/pyq to 755
running install_egg_info
running egg_info
creating src/pyq.egg-info
writing src/pyq.egg-info/PKG-INFO
writing dependency_links to src/pyq.egg-info/dependency_links.txt
writing requirements to src/pyq.egg-info/requires.txt
writing top-level names to src/pyq.egg-info/top_level.txt
writing manifest file 'src/pyq.egg-info/SOURCES.txt'
reading manifest file 'src/pyq.egg-info/SOURCES.txt'
writing manifest file 'src/pyq.egg-info/SOURCES.txt'
Copying src/pyq.egg-info to /home/fred/pyq/lib/python3.6/site-packages/pyq-4.1.3-py3.6.egg-info
running install_scripts
copying build/scripts-3.6/qp -> /home/fred/pyq/bin
copying build/scripts-3.6/pq -> /home/fred/pyq/bin
copying build/scripts-3.6/ipyq -> /home/fred/pyq/bin
copying build/scripts-3.6/pyq-coverage -> /home/fred/pyq/bin
copying build/scripts-3.6/pyq-runtests -> /home/fred/pyq/bin
changing mode of /home/fred/pyq/bin/qp to 755
changing mode of /home/fred/pyq/bin/pq to 755
changing mode of /home/fred/pyq/bin/ipyq to 755
changing mode of /home/fred/pyq/bin/pyq-coverage to 755
changing mode of /home/fred/pyq/bin/pyq-runtests to 755
writing list of installed files to '/tmp/pip-record-k1lj7_0j/install-record.txt'
done
Removing source in /tmp/pip-install-8m8woa89/pyq
Successfully installed pyq-4.1.3
Cleaning up...
(pyq) $ pyq
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
Traceback (most recent call last):
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 22, in <module>
from ._k import K as _K, error as kerr, Q_VERSION, Q_DATE, Q_OS
ModuleNotFoundError: No module named 'pyq._k'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
raise ImportError(message)
ImportError: Importing pyq from stock python is not supported. Use pyq executable.
'2018.05.29T23:19:00.323 python
(pyq) $ q
KDB+ 3.5 2017.11.30 Copyright (C) 1993-2017 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
q)p)print(12)
Traceback (most recent call last):
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 22, in <module>
from ._k import K as _K, error as kerr, Q_VERSION, Q_DATE, Q_OS
ModuleNotFoundError: No module named 'pyq._k'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
raise ImportError(message)
ImportError: Importing pyq from stock python is not supported. Use pyq executable.
'python
[0] (<load>)
)
)\
q)p)import sys;print(sys.path)
['/home/fred/pyq/lib/python36.zip', '/home/fred/pyq/lib/python3.6', '/home/fred/pyq/lib/python3.6/lib-dynload', '/home/fred/python32/lib/python3.6', '/home/fred/pyq/lib/python3.6/site-packages']
you could see that I even tried with q version 3.5 but no change. general info about found *.so:
(pyq) $ find . -name \*.so -exec ldd {} ';' -print
linux-gate.so.1 (0xf7efc000)
libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf7e99000)
libc.so.6 => /usr/lib32/libc.so.6 (0xf7cc0000)
/usr/lib/ld-linux.so.2 (0xf7efe000)
./q/l32/p.so
linux-gate.so.1 (0xf7f99000)
libpython3.6m.so.1.0 => /home/fred/python32/lib/libpython3.6m.so.1.0 (0xf7c5b000)
libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf7c01000)
libc.so.6 => /usr/lib32/libc.so.6 (0xf7a28000)
libdl.so.2 => /usr/lib32/libdl.so.2 (0xf7a23000)
libutil.so.1 => /usr/lib32/libutil.so.1 (0xf7a1f000)
libm.so.6 => /usr/lib32/libm.so.6 (0xf7954000)
/usr/lib/ld-linux.so.2 (0xf7f9b000)
./lib/python3.6/site-packages/pyq/_k.cpython-36m-i386-linux-gnu.so
(pyq) $ file ./q/l32/p.so
./q/l32/p.so: ELF 32-bit LSB pie executable Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=d2fea46124d386348f8579bc9f0fdac57ef63c99, with debug_info, not stripped
(pyq) $ file ./lib/python3.6/site-packages/pyq/_k.cpython-36m-i386-linux-gnu.so
./lib/python3.6/site-packages/pyq/_k.cpython-36m-i386-linux-gnu.so: ELF 32-bit LSB pie executable Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=e582499af36121b9881fbeb33fa56fd9971417e5, with debug_info, not stripped
pyq) $ ldd bin/pyq
linux-gate.so.1 (0xf7f1e000)
libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf7eba000)
libc.so.6 => /usr/lib32/libc.so.6 (0xf7ce1000)
/lib/ld-linux.so.2 => /usr/lib/ld-linux.so.2 (0xf7f20000)
and sorry but not aware of any docker file for artix.
This is odd. Do you have the strace utility on your system? If you do, please run
$ strace -f -e open pyq --versions 2>&1 | grep pyq
One more question: what is your sys.executable?
q)p)import sys;print(sys.executable)
pyq) $ strace -f -e open pyq --version 2>&1|grep pyq
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 22, in <module>
ModuleNotFoundError: No module named 'pyq._k'
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
ImportError: Importing pyq from stock python is not supported. Use pyq executable.
(pyq) $ q
KDB+ 3.5 2017.11.30 Copyright (C) 1993-2017 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
q)p)import sys;print(sys.executable)
Traceback (most recent call last):
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 22, in <module>
from ._k import K as _K, error as kerr, Q_VERSION, Q_DATE, Q_OS
ModuleNotFoundError: No module named 'pyq._k'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
raise ImportError(message)
ImportError: Importing pyq from stock python is not supported. Use pyq executable.
'python
[0] (<load>)
)\ ^
q)p)import sys;print(sys.executable)
/home/fred/pyq/bin/python3
I'm pretty sure it should be linked with this mix of both 64bits/32bits env...but don't really know how to fix it for the moment. I'll try to get a full 32bits environment to try again.
@zorg613 This isn't strace output we expected to see — I don't see any strace output in your comment, actually.
Please uninstall pyq (pip uninstall pyq
) and try again using following command.
pip install --global-option=build_ext --global-option="-I/home/fred/python32/include" --global-option="-L/home/fred/python32/lib" pyq
or you can try adding following into your activate script and re-activate your environment:
export LDFLAGS=-L/home/fred/python32/lib
export CPPFLAGS=-I/home/fred/python32/include
sorry, my strace binary was for the native one, so normal that the trace gave nothing. I recompiled the strace package for 32bits and it gives this (after bin/pip3 uninstall pyq, after having added the 2 lines LDFLAGS= and CFLAGS= to my virtual env in bin/activate and after having resourced it and reinstall pyq with the global-option build_ext):
(pyq) $ env|grep FLAG
CPPFLAGS=-I/home/fred/python32/include
LDFLAGS=-L/home/fred/python32/lib
(pyq) $ bin/pip uninstall pyq
Uninstalling pyq-4.1.3:
Would remove:
/home/fred/pyq/bin/ipyq
/home/fred/pyq/bin/pq
/home/fred/pyq/bin/pyq
/home/fred/pyq/bin/pyq-coverage
/home/fred/pyq/bin/pyq-runtests
/home/fred/pyq/bin/qp
/home/fred/pyq/lib/python3.6/site-packages/pyq-4.1.3-py3.6.egg-info
/home/fred/pyq/lib/python3.6/site-packages/pyq/*
/home/fred/pyq/q/l32/p.so
/home/fred/pyq/q/p.k
/home/fred/pyq/q/pyq-config.q
/home/fred/pyq/q/pyq-operators.q
/home/fred/pyq/q/python.q
Proceed (y/n)? y
Successfully uninstalled pyq-4.1.3
(pyq) $ pip install -v --global-option=build_ext pyq
/home/fred/pyq/lib/python3.6/site-packages/pip/_internal/commands/install.py:199: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options)
Created temporary directory: /tmp/pip-ephem-wheel-cache-upmaxxqo
Created temporary directory: /tmp/pip-install-53515xe1
Collecting pyq
1 location(s) to search for versions of pyq:
* https://pypi.org/simple/pyq/
Getting page https://pypi.org/simple/pyq/
Looking up "https://pypi.org/simple/pyq/" in the cache
Current age based on date: 12
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 12
Analyzing links from page https://pypi.org/simple/pyq/
Found link https://files.pythonhosted.org/packages/66/2c/d1e1891e293edd7905ac4d1d6e4f9f30ff7e40cebf8e2a2629bf4f9f4152/pyq-4.1.0.post1.tar.gz#sha256=e7552e092ef68196a431aec6a7c2d235b78a4d2ae54e8d3246f485fd963e1637 (from https://pypi.org/simple/pyq/), version: 4.1.0.post1
Found link https://files.pythonhosted.org/packages/c0/a6/6dad579c65ded93d9da0fdf9e0da268870c9cea5abd6e2d0606b67f0905d/pyq-4.1.1.tar.gz#sha256=72b337007f1f43743bd0f02f05f16331ddbad46a7fd00bfced158f41d2bfee18 (from https://pypi.org/simple/pyq/), version: 4.1.1
Skipping link https://files.pythonhosted.org/packages/4f/bd/e7026ae10439d36eca775d2075ef2a121d9c252e8408d5eaa09189c47fd3/pyq-4.1.2b1-cp27-cp27m-macosx_10_12_intel.whl#sha256=6138d0fc73d1a91f7bb53c2c5d2eff2f7c0951b66262fec9847ee20aa614009a (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/13/a3/a98edf0c3f021ebf404c00287a93cc9a31a9eb32e0273727ffae94788379/pyq-4.1.2b1-cp27-cp27m-win32.whl#sha256=c1e9849a3b0b803f59229f65690bab69050abe2a81cd7ca096a73ea82a3b3fe4 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/94/3b/3ffc69412108b64846e176bbee5196d6161436ce40daf4e6bb58d589b20e/pyq-4.1.2b1-cp27-cp27m-win_amd64.whl#sha256=233f8ee5648eab7d69772e63cd70801749deb0498b5a847df8437155347aaa33 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/24/55/08decbc9fa08e6d4a051aba7812b4a5d3182d0fdbf10e1b87af11d1c4de8/pyq-4.1.2b1-cp36-cp36m-macosx_10_12_intel.whl#sha256=b007611b5c30b9cff0036e85d1d018286cfcbed1fcc08f72114f7631942609bf (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/02/ab/96a7d742d5279a23654201a16d34cda0019fbaaef4fa64984da13ce06f04/pyq-4.1.2b1-cp36-cp36m-win32.whl#sha256=59f27fa5d4a034ecb0fd2a4c97558aa411cd2012d8143c4cfcd2dd1395e5f33a (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/53/fb/9cadc05b6cb919ee345c266e76c19257b33c1e9546bd9d22792f4c1e2b49/pyq-4.1.2b1-cp36-cp36m-win_amd64.whl#sha256=0fb33044482ae7b71750949a9a46562e5d262099eb68caef1bc474e7688abd23 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/29/ba/9c7184f72fd9328f949e770402dc98f8c34d46fe24c5075ce8d57a1acb93/pyq-4.1.2-cp27-cp27m-win32.whl#sha256=50fc98f48795b6ac7e05fc35bcfc415e5170d3218c8f4d4e02362a601f8fa9c0 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/48/90/76ea75b94cd15b31db1c304fe0d83a07b82a788295f57e5981cbcdcd377f/pyq-4.1.2-cp27-cp27m-win_amd64.whl#sha256=45b89c77ac6ef96fd3c18964fbf3c1aad9a6fa8c65cfb1dc52dd33552ac900a7 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/fb/4f/bbbe1d029875e3492afce4b4b44717c88228420be53a9ce14a8920280f66/pyq-4.1.2-cp36-cp36m-win32.whl#sha256=05c51e3d538e89b36583d2c13bc53443dc97e2fc60ea52dca82e67aa9c54d570 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Skipping link https://files.pythonhosted.org/packages/dd/19/e7e4e4540061ec2946fc6941b78dd16576d5c1802ed155cfede3bf004278/pyq-4.1.2-cp36-cp36m-win_amd64.whl#sha256=8cb1cd6378dd32bf852cbd47fda4f73624d89aa683f5b880e1179320f2a1fae1 (from https://pypi.org/simple/pyq/); No binaries permitted for pyq
Found link https://files.pythonhosted.org/packages/99/04/a8c7f814ae137e3fdb21f43666221557f76ca7f59fa3c992800c2d159502/pyq-4.1.2.tar.gz#sha256=09ce6ae8a4b2a2c36008782108504b357c52c4d3cc1db602b965790b4ece865b (from https://pypi.org/simple/pyq/), version: 4.1.2
Found link https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz#sha256=e4e95970a930408d64b7351ad80c4c601f1ba414379de4d03717138d13a2a02f (from https://pypi.org/simple/pyq/), version: 4.1.3
Using version 4.1.3 (newest of versions: 4.1.0.post1, 4.1.1, 4.1.2, 4.1.3)
Created temporary directory: /tmp/pip-unpack-2_f_c54p
Looking up "https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz" in the cache
Ignoring unknown cache-control directive:
Current age based on date: 226432
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 226432
Using cached https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz
Downloading from URL https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz#sha256=e4e95970a930408d64b7351ad80c4c601f1ba414379de4d03717138d13a2a02f (from https://pypi.org/simple/pyq/)
Running setup.py (path:/tmp/pip-install-53515xe1/pyq/setup.py) egg_info for package pyq
Running command python setup.py egg_info
running egg_info
creating pip-egg-info/pyq.egg-info
writing pip-egg-info/pyq.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/pyq.egg-info/dependency_links.txt
writing requirements to pip-egg-info/pyq.egg-info/requires.txt
writing top-level names to pip-egg-info/pyq.egg-info/top_level.txt
writing manifest file 'pip-egg-info/pyq.egg-info/SOURCES.txt'
reading manifest file 'pip-egg-info/pyq.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/pyq.egg-info/SOURCES.txt'
Source in /tmp/pip-install-53515xe1/pyq has version 4.1.3, which satisfies requirement pyq from https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz#sha256=e4e95970a930408d64b7351ad80c4c601f1ba414379de4d03717138d13a2a02f
Skipping bdist_wheel for pyq, due to binaries being disabled for it.
Installing collected packages: pyq
Created temporary directory: /tmp/pip-record-c9zifxx_
Running setup.py install for pyq ... Running command /home/fred/pyq/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-53515xe1/pyq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" build_ext install --record /tmp/pip-record-c9zifxx_/install-record.txt --single-version-externally-managed --compile --install-headers /home/fred/pyq/include/site/python3.6/pyq
running build_ext
building 'pyq._k' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
creating build/temp.linux-x86_64-3.6/src/pyq
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -m32 -m32 -I/home/fred/python32/include -fPIC -DKXVER=3 -DKXVER2=5 -I/home/fred/python32/include/python3.6m -c src/pyq/_k.c -o build/temp.linux-x86_64-3.6/src/pyq/_k.o -Wpointer-arith -Werror -fno-strict-aliasing -m32
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pyq
gcc -pthread -shared -m32 -m32 -L/home/fred/python32/lib -I/home/fred/python32/include build/temp.linux-x86_64-3.6/src/pyq/_k.o -L/home/fred/python32/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/pyq/_k.cpython-36m-i386-linux-gnu.so -m32
running install
running build
running build_py
copying src/pyq/ptk.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/__init__.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/_pt_run.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/_n.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/version.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/cmd.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/conftest.py -> build/lib.linux-x86_64-3.6/pyq
copying src/pyq/magic.py -> build/lib.linux-x86_64-3.6/pyq
creating build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_sd.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_pathlib.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_numpy.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_com.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_pyq_executable.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_memoryview.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_threads.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_n.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_python_q.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_pypath.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_magic.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_k.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_p.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/__init__.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_ci.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_no_numpy.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_q.py -> build/lib.linux-x86_64-3.6/pyq/tests
copying src/pyq/tests/test_version.py -> build/lib.linux-x86_64-3.6/pyq/tests
running build_scripts
creating build/scripts-3.6
copying src/scripts/pyq-runtests -> build/scripts-3.6
copying and adjusting src/scripts/pyq-coverage -> build/scripts-3.6
copying src/scripts/ipyq -> build/scripts-3.6
copying src/scripts/pq -> build/scripts-3.6
copying src/scripts/qp -> build/scripts-3.6
changing mode of build/scripts-3.6/pyq-coverage from 644 to 755
changing mode of build/scripts-3.6/ipyq from 644 to 755
changing mode of build/scripts-3.6/pq from 644 to 755
changing mode of build/scripts-3.6/qp from 644 to 755
running build_qlib
creating build/qlib
copying src/pyq/python.q -> build/qlib
copying src/pyq/p.k -> build/qlib
copying src/pyq/pyq-operators.q -> build/qlib
running build_qext
creating build/temp.linux-x86_64
creating build/temp.linux-x86_64/src
creating build/temp.linux-x86_64/src/pyq
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -m32 -m32 -I/home/fred/python32/include -fPIC -DKXVER=3 -DKXVER2=5 -DPY3K=36 -Isrc/pyq -c src/pyq/p.c -o build/temp.linux-x86_64/src/pyq/p.o -Wpointer-arith -Werror -fno-strict-aliasing -m32
creating build/qext.linux-x86_64
gcc -pthread -shared -m32 -m32 -L/home/fred/python32/lib -I/home/fred/python32/include build/temp.linux-x86_64/src/pyq/p.o -o build/qext.linux-x86_64/p.so -m32
running build_exe
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -m32 -m32 -I/home/fred/python32/include -fPIC -DKXVER=3 -DQARCH=l32 -c src/pyq.c -o src/pyq.o -Wpointer-arith -Werror -fno-strict-aliasing -m32
creating build/exe.linux-x86_64-3.6
gcc -pthread -m32 src/pyq.o -o build/exe.linux-x86_64-3.6/pyq
running install_lib
creating /home/fred/pyq/lib/python3.6/site-packages/pyq
creating /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_version.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_q.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_no_numpy.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_ci.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/__init__.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_p.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_k.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_magic.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_pypath.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_python_q.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_n.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_threads.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_memoryview.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_pyq_executable.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_com.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_numpy.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_pathlib.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/tests/test_sd.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq/tests
copying build/lib.linux-x86_64-3.6/pyq/magic.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/conftest.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/cmd.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/version.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/_n.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/_pt_run.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/__init__.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/ptk.py -> /home/fred/pyq/lib/python3.6/site-packages/pyq
copying build/lib.linux-x86_64-3.6/pyq/_k.cpython-36m-i386-linux-gnu.so -> /home/fred/pyq/lib/python3.6/site-packages/pyq
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_version.py to test_version.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_q.py to test_q.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_no_numpy.py to test_no_numpy.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_ci.py to test_ci.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/__init__.py to __init__.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_p.py to test_p.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_k.py to test_k.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_magic.py to test_magic.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_pypath.py to test_pypath.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_python_q.py to test_python_q.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_n.py to test_n.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_threads.py to test_threads.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_memoryview.py to test_memoryview.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_pyq_executable.py to test_pyq_executable.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_com.py to test_com.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_numpy.py to test_numpy.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_pathlib.py to test_pathlib.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/tests/test_sd.py to test_sd.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/magic.py to magic.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/conftest.py to conftest.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/cmd.py to cmd.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/version.py to version.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/_n.py to _n.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/_pt_run.py to _pt_run.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py to __init__.cpython-36.pyc
byte-compiling /home/fred/pyq/lib/python3.6/site-packages/pyq/ptk.py to ptk.cpython-36.pyc
running install_data
copying src/pyq/p.k -> /home/fred/pyq/q
copying src/pyq/pyq-operators.q -> /home/fred/pyq/q
copying src/pyq/python.q -> /home/fred/pyq/q
copying build/qlib/pyq-config.q -> /home/fred/pyq/q
copying build/qext.linux-x86_64/p.so -> /home/fred/pyq/q/l32
running install_qlib
running install_qext
running install_exe
copying build/exe.linux-x86_64-3.6/pyq -> /home/fred/pyq/bin
changing mode of /home/fred/pyq/bin/pyq to 755
running install_egg_info
running egg_info
creating src/pyq.egg-info
writing src/pyq.egg-info/PKG-INFO
writing dependency_links to src/pyq.egg-info/dependency_links.txt
writing requirements to src/pyq.egg-info/requires.txt
writing top-level names to src/pyq.egg-info/top_level.txt
writing manifest file 'src/pyq.egg-info/SOURCES.txt'
reading manifest file 'src/pyq.egg-info/SOURCES.txt'
writing manifest file 'src/pyq.egg-info/SOURCES.txt'
Copying src/pyq.egg-info to /home/fred/pyq/lib/python3.6/site-packages/pyq-4.1.3-py3.6.egg-info
running install_scripts
copying build/scripts-3.6/qp -> /home/fred/pyq/bin
copying build/scripts-3.6/pq -> /home/fred/pyq/bin
copying build/scripts-3.6/ipyq -> /home/fred/pyq/bin
copying build/scripts-3.6/pyq-coverage -> /home/fred/pyq/bin
copying build/scripts-3.6/pyq-runtests -> /home/fred/pyq/bin
changing mode of /home/fred/pyq/bin/qp to 755
changing mode of /home/fred/pyq/bin/pq to 755
changing mode of /home/fred/pyq/bin/ipyq to 755
changing mode of /home/fred/pyq/bin/pyq-coverage to 755
changing mode of /home/fred/pyq/bin/pyq-runtests to 755
writing list of installed files to '/tmp/pip-record-c9zifxx_/install-record.txt'
done
Removing source in /tmp/pip-install-53515xe1/pyq
Successfully installed pyq-4.1.3
Cleaning up...
(pyq) $
(pyq) $ strace pyq -f -e open --versions 2>&1|grep pyq
execve("/home/fred/pyq/bin/pyq", ["pyq", "-f", "-e", "open", "--versions"], 0x7fff9da39290 /* 52 vars */) = 0
stat64("/home/fred/pyq/q/l32/pyq", 0xfffa318c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/bin/pyq", {st_mode=S_IFREG|0755, st_size=24096, ...}) = 0
execve("/home/fred/pyq/q/l32/q", ["/home/fred/pyq/bin/pyq", "python.q", "-f@", "-e@", "open", "--versions", "-q"], 0x578cd210 /* 53 vars */) = 0
openat(AT_FDCWD, "/home/fred/pyq/q/k4.lic", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
lstat64("/home/fred/pyq", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/fred/pyq/q", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/fred/pyq/q/q.k", {st_mode=S_IFREG|0644, st_size=22780, ...}) = 0
stat64("/home/fred/pyq/q/q.k", {st_mode=S_IFREG|0644, st_size=22780, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/q/q.k", O_RDONLY|O_LARGEFILE) = 3
getcwd("/home/fred/pyq", 4096) = 15
lstat64("/home/fred/pyq/q.q", 0xffc5105c) = -1 ENOENT (No such file or directory)
lstat64("/home/fred/pyq", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/fred/pyq/q", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/fred/pyq/q/q.q", {st_mode=S_IFREG|0644, st_size=215, ...}) = 0
stat64("/home/fred/pyq/q/q.q", {st_mode=S_IFREG|0644, st_size=215, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/q/q.q", O_RDONLY|O_LARGEFILE) = 3
getcwd("/home/fred/pyq", 4096) = 15
lstat64("/home/fred/pyq/python.q", 0xffc51e6c) = -1 ENOENT (No such file or directory)
lstat64("/home/fred/pyq", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/fred/pyq/q", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/fred/pyq/q/python.q", {st_mode=S_IFREG|0755, st_size=309, ...}) = 0
stat64("/home/fred/pyq/q/python.q", {st_mode=S_IFREG|0755, st_size=309, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/q/python.q", O_RDONLY|O_LARGEFILE) = 3
getcwd("/home/fred/pyq", 4096) = 15
lstat64("/home/fred/pyq/p.k", 0xffc5161c) = -1 ENOENT (No such file or directory)
lstat64("/home/fred/pyq", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/fred/pyq/q", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/fred/pyq/q/p.k", {st_mode=S_IFREG|0644, st_size=507, ...}) = 0
stat64("/home/fred/pyq/q/p.k", {st_mode=S_IFREG|0644, st_size=507, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/q/p.k", O_RDONLY|O_LARGEFILE) = 3
read(3, "\\l pyq-c", 8) = 8
read(3, "\\l pyq-config.q\n\\d .p\nq)(`p 2:(`"..., 507) = 507
getcwd("/home/fred/pyq", 4096) = 15
lstat64("/home/fred/pyq/pyq-config.q", 0xffc50dcc) = -1 ENOENT (No such file or directory)
lstat64("/home/fred/pyq", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/fred/pyq/q", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/fred/pyq/q/pyq-config.q", {st_mode=S_IFREG|0644, st_size=108, ...}) = 0
stat64("/home/fred/pyq/q/pyq-config.q", {st_mode=S_IFREG|0644, st_size=108, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/q/pyq-config.q", O_RDONLY|O_LARGEFILE) = 3
openat(AT_FDCWD, "/home/fred/pyq/q/l32/p.so", O_RDONLY|O_CLOEXEC) = 3
stat64("/home/fred/pyq/q/l32/python3", 0xffc3ecfc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/bin/python3", {st_mode=S_IFREG|0755, st_size=27260, ...}) = 0
readlink("/home/fred/pyq/bin/python3", "python3.6", 4096) = 9
readlink("/home/fred/pyq/bin/python3.6", 0xffc3dc7c, 4096) = -1 EINVAL (Invalid argument)
openat(AT_FDCWD, "/home/fred/pyq/bin/pyvenv.cfg", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/fred/pyq/pyvenv.cfg", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/bin/Modules/Setup", 0xffc3ecfc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/bin/lib/python3.6/os.py", 0xffc3ec2c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/bin/lib/python3.6/os.pyc", 0xffc3ec2c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/os.py", {st_mode=S_IFREG|0644, st_size=37526, ...}) = 0
stat64("/home/fred/pyq/bin/pybuilddir.txt", 0xffc3ecfc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/bin/lib/python3.6/lib-dynload", 0xffc3ecfc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python36.zip", 0xffc4f53c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python36.zip", 0xffc4e9cc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 3
stat64("/home/fred/pyq/lib/python3.6/encodings/__init__.cpython-36m-x86_64-linux-gnu.so", 0xffc4ef4c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/encodings/__init__.abi3.so", 0xffc4ef4c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/encodings/__init__.so", 0xffc4ef4c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/encodings/__init__.py", {st_mode=S_IFREG|0644, st_size=5642, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/encodings/__init__.py", {st_mode=S_IFREG|0644, st_size=5642, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/encodings/__pycache__/__init__.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/codecs.py", {st_mode=S_IFREG|0644, st_size=36276, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/codecs.py", {st_mode=S_IFREG|0644, st_size=36276, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/codecs.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6/encodings", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/encodings", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/encodings", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/encodings", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 3
stat64("/home/fred/pyq/lib/python3.6/encodings/aliases.py", {st_mode=S_IFREG|0644, st_size=15577, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/encodings/aliases.py", {st_mode=S_IFREG|0644, st_size=15577, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/encodings/__pycache__/aliases.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6/encodings", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/encodings/utf_8.py", {st_mode=S_IFREG|0644, st_size=1005, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/encodings/utf_8.py", {st_mode=S_IFREG|0644, st_size=1005, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/encodings/__pycache__/utf_8.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6/encodings", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/encodings/latin_1.py", {st_mode=S_IFREG|0644, st_size=1264, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/encodings/latin_1.py", {st_mode=S_IFREG|0644, st_size=1264, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/encodings/__pycache__/latin_1.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/io.py", {st_mode=S_IFREG|0644, st_size=3517, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/io.py", {st_mode=S_IFREG|0644, st_size=3517, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/io.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/abc.py", {st_mode=S_IFREG|0644, st_size=8727, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/abc.py", {st_mode=S_IFREG|0644, st_size=8727, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/abc.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/_weakrefset.py", {st_mode=S_IFREG|0644, st_size=5705, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/_weakrefset.py", {st_mode=S_IFREG|0644, st_size=5705, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/_weakrefset.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/_bootlocale.py", {st_mode=S_IFREG|0644, st_size=1301, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/_bootlocale.py", {st_mode=S_IFREG|0644, st_size=1301, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/_bootlocale.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site.py", {st_mode=S_IFREG|0644, st_size=27543, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site.py", {st_mode=S_IFREG|0644, st_size=27543, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/site.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/os.py", {st_mode=S_IFREG|0644, st_size=37526, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/os.py", {st_mode=S_IFREG|0644, st_size=37526, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/os.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/stat.py", {st_mode=S_IFREG|0644, st_size=5038, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/stat.py", {st_mode=S_IFREG|0644, st_size=5038, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/stat.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/posixpath.py", {st_mode=S_IFREG|0644, st_size=15414, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/posixpath.py", {st_mode=S_IFREG|0644, st_size=15414, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/posixpath.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/genericpath.py", {st_mode=S_IFREG|0644, st_size=4756, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/genericpath.py", {st_mode=S_IFREG|0644, st_size=4756, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/genericpath.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/_collections_abc.py", {st_mode=S_IFREG|0644, st_size=26392, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/_collections_abc.py", {st_mode=S_IFREG|0644, st_size=26392, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/_collections_abc.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/lib-dynload", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/orig-prefix.txt", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6/no-global-site-packages.txt", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
stat64("/home/fred/pyq/local/lib64/python3.6/site-packages", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/local/lib/python3.6/site-packages", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/local/lib/site-python", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/local/python3.6/lib-dynload", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/local/local/lib/python3.6/dist-packages", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/local/lib/python3/dist-packages", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/local/lib/dist-python", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib64/python3.6/site-packages", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/site-packages", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 3
stat64("/home/fred/pyq/lib/site-python", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/python3.6/lib-dynload", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/local/lib/python3.6/dist-packages", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3/dist-packages", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/dist-python", 0xffc4efbc) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.cpython-36m-x86_64-linux-gnu.so", 0xffc4ee6c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.abi3.so", 0xffc4ee6c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.so", 0xffc4ee6c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", {st_mode=S_IFREG|0644, st_size=28310, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", {st_mode=S_IFREG|0644, st_size=28310, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages/pyq/__pycache__/__init__.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/__future__.py", {st_mode=S_IFREG|0644, st_size=4841, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/__future__.py", {st_mode=S_IFREG|0644, st_size=4841, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/__future__.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload/math.cpython-36m-x86_64-linux-gnu.so", {st_mode=S_IFREG|0755, st_size=168872, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/lib-dynload/math.cpython-36m-x86_64-linux-gnu.so", O_RDONLY|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload/_datetime.cpython-36m-x86_64-linux-gnu.so", {st_mode=S_IFREG|0755, st_size=367276, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/lib-dynload/_datetime.cpython-36m-x86_64-linux-gnu.so", O_RDONLY|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/collections/__init__.cpython-36m-x86_64-linux-gnu.so", 0xffc4db7c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/collections/__init__.abi3.so", 0xffc4db7c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/collections/__init__.so", 0xffc4db7c) = -1 ENOENT (No such file or directory)
stat64("/home/fred/pyq/lib/python3.6/collections/__init__.py", {st_mode=S_IFREG|0644, st_size=45812, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/collections/__init__.py", {st_mode=S_IFREG|0644, st_size=45812, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/collections/__pycache__/__init__.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/operator.py", {st_mode=S_IFREG|0644, st_size=10863, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/operator.py", {st_mode=S_IFREG|0644, st_size=10863, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/operator.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/keyword.py", {st_mode=S_IFREG|0755, st_size=2211, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/keyword.py", {st_mode=S_IFREG|0755, st_size=2211, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/keyword.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/heapq.py", {st_mode=S_IFREG|0644, st_size=22929, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/heapq.py", {st_mode=S_IFREG|0644, st_size=22929, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/heapq.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload/_heapq.cpython-36m-x86_64-linux-gnu.so", {st_mode=S_IFREG|0755, st_size=51720, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/lib-dynload/_heapq.cpython-36m-x86_64-linux-gnu.so", O_RDONLY|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/reprlib.py", {st_mode=S_IFREG|0644, st_size=5336, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/reprlib.py", {st_mode=S_IFREG|0644, st_size=5336, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/reprlib.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages/pyq", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages/pyq", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/site-packages/pyq", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages/pyq", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/re.py", {st_mode=S_IFREG|0644, st_size=15552, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/re.py", {st_mode=S_IFREG|0644, st_size=15552, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/re.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/enum.py", {st_mode=S_IFREG|0644, st_size=33472, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/enum.py", {st_mode=S_IFREG|0644, st_size=33472, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/enum.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/types.py", {st_mode=S_IFREG|0644, st_size=8870, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/types.py", {st_mode=S_IFREG|0644, st_size=8870, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/types.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/functools.py", {st_mode=S_IFREG|0644, st_size=31142, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/functools.py", {st_mode=S_IFREG|0644, st_size=31142, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/functools.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/weakref.py", {st_mode=S_IFREG|0644, st_size=20466, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/weakref.py", {st_mode=S_IFREG|0644, st_size=20466, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/weakref.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6/collections", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/collections", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/collections", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/collections", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 3
stat64("/home/fred/pyq/lib/python3.6/collections/abc.py", {st_mode=S_IFREG|0644, st_size=68, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/collections/abc.py", {st_mode=S_IFREG|0644, st_size=68, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/collections/__pycache__/abc.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/sre_compile.py", {st_mode=S_IFREG|0644, st_size=19338, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/sre_compile.py", {st_mode=S_IFREG|0644, st_size=19338, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/sre_compile.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/sre_parse.py", {st_mode=S_IFREG|0644, st_size=36536, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/sre_parse.py", {st_mode=S_IFREG|0644, st_size=36536, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/sre_parse.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/sre_constants.py", {st_mode=S_IFREG|0644, st_size=6821, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/sre_constants.py", {st_mode=S_IFREG|0644, st_size=6821, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/sre_constants.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/copyreg.py", {st_mode=S_IFREG|0644, st_size=7007, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/copyreg.py", {st_mode=S_IFREG|0644, st_size=7007, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/copyreg.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/warnings.py", {st_mode=S_IFREG|0644, st_size=18488, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/warnings.py", {st_mode=S_IFREG|0644, st_size=18488, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/warnings.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so", {st_mode=S_IFREG|0755, st_size=60336, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so", O_RDONLY|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload/select.cpython-36m-x86_64-linux-gnu.so", {st_mode=S_IFREG|0755, st_size=78072, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/lib-dynload/select.cpython-36m-x86_64-linux-gnu.so", O_RDONLY|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/lib-dynload", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/linecache.py", {st_mode=S_IFREG|0644, st_size=5312, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/linecache.py", {st_mode=S_IFREG|0644, st_size=5312, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/linecache.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/tokenize.py", {st_mode=S_IFREG|0644, st_size=28959, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/tokenize.py", {st_mode=S_IFREG|0644, st_size=28959, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/tokenize.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
stat64("/home/fred/pyq/lib/python3.6", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/token.py", {st_mode=S_IFREG|0644, st_size=3075, ...}) = 0
stat64("/home/fred/pyq/lib/python3.6/token.py", {st_mode=S_IFREG|0644, st_size=3075, ...}) = 0
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/__pycache__/token.cpython-36.pyc", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
openat(AT_FDCWD, "/home/fred/pyq/lib/python36.zip/<string>", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/<string>", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/lib-dynload/<string>", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages/<string>", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 22, in <module>
ModuleNotFoundError: No module named 'pyq._k'
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
ImportError: Importing pyq from stock python is not supported. Use pyq executable.
(pyq) $
(pyq) $ ls /home/fred/pyq/lib/python3.6/site-packages/pyq/
cmd.py conftest.py __init__.py _k.cpython-36m-i386-linux-gnu.so magic.py _n.py ptk.py _pt_run.py __pycache__ tests version.py
(pyq) $ file /home/fred/pyq/lib/python3.6/site-packages/pyq/_k.cpython-36m-i386-linux-gnu.so
/home/fred/pyq/lib/python3.6/site-packages/pyq/_k.cpython-36m-i386-linux-gnu.so: ELF 32-bit LSB pie executable Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=d9332075ac57fa4c3b7216cf795c9525dda68a11, with debug_info, not stripped
(pyq) $ ldd bin/pyq
linux-gate.so.1 (0xf7f82000)
libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf7f1e000)
libc.so.6 => /usr/lib32/libc.so.6 (0xf7d45000)
/lib/ld-linux.so.2 => /usr/lib/ld-linux.so.2 (0xf7f84000)
(pyq) $ file bin/pyq
bin/pyq: ELF 32-bit LSB pie executable Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=d6c4d79696abf4f6d3c3bae379856e3efc0e4921, with debug_info, not stripped
(pyq) $ file /usr/lib/ld-linux.so.2
/usr/lib/ld-linux.so.2: symbolic link to ../lib32/ld-linux.so.2
This is really odd. From your latest strace, it looks like pyq does not even attempt to open the _k module. Can you repost the tail of the strace pyq output without grep starting from the line
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=28310, ...}) = 0
ioctl(3, TCGETS, 0xffd46c18) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(3, 0, [0], SEEK_CUR) = 0
fcntl64(3, F_DUPFD_CLOEXEC, 0) = 4
fcntl64(4, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(4, {st_mode=S_IFREG|0644, st_size=28310, ...}) = 0
read(4, "from __future__ import absolute_"..., 4096) = 4096
close(4) = 0
_llseek(3, 0, [0], SEEK_SET) = 0
_llseek(3, 0, [0], SEEK_CUR) = 0
read(3, "from __future__ import absolute_"..., 8192) = 8192
close(3) = 0
write(2, " from ._k import K as _K, err"..., 68 from ._k import K as _K, error as kerr, Q_VERSION, Q_DATE, Q_OS
) = 68
write(2, "ModuleNotFoundError: No module n"..., 46ModuleNotFoundError: No module named 'pyq._k'
) = 46
write(2, "\nDuring handling of the above ex"..., 70
During handling of the above exception, another exception occurred:
) = 70
write(2, "Traceback (most recent call last"..., 35Traceback (most recent call last):
) = 35
write(2, " File \"<string>\", line 1, in <m"..., 39 File "<string>", line 1, in <module>
) = 39
openat(AT_FDCWD, "<string>", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/fred/pyq/lib/python36.zip/<string>", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/<string>", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/lib-dynload/<string>", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/fred/python32/lib/python3.6/<string>", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages/<string>", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(2, " File \"/home/fred/pyq/lib/pytho"..., 90 File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
) = 90
openat(AT_FDCWD, "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=28310, ...}) = 0
ioctl(3, TCGETS, 0xffd46c58) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(3, 0, [0], SEEK_CUR) = 0
fcntl64(3, F_DUPFD_CLOEXEC, 0) = 4
fcntl64(4, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(4, {st_mode=S_IFREG|0644, st_size=28310, ...}) = 0
read(4, "from __future__ import absolute_"..., 4096) = 4096
close(4) = 0
_llseek(3, 0, [0], SEEK_SET) = 0
_llseek(3, 0, [0], SEEK_CUR) = 0
read(3, "from __future__ import absolute_"..., 8192) = 8192
close(3) = 0
write(2, " raise ImportError(message)\n", 31 raise ImportError(message)
) = 31
write(2, "ImportError: Importing pyq from "..., 83ImportError: Importing pyq from stock python is not supported. Use pyq executable.
) = 83
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2970, ...}) = 0
write(2, "'2018.05.30T21:07:42.558 python\n", 32'2018.05.30T21:07:42.558 python
) = 32
rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, {sa_handler=0x804b290, sa_mask=[], sa_flags=0}, 8) = 0
sigaltstack(NULL, {ss_sp=0x94f9db0, ss_flags=0, ss_size=8192}) = 0
sigaltstack({ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=0}, NULL) = 0
exit_group(1) = ?
+++ exited with 1 +++
(pyq) $
We are still in the dark here. Let's try the folowing:
q)p)import code
q)p)code.interact()
Python 3.6.5 (default, Apr 4 2018, 08:59:58)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>>
This should give you a working Python prompt. At this prompt, enter
>>> import importlib.util
>>> importlib.util.find_spec('pyq._k')
What do you get?
(pyq) $ vi q/p.k
(pyq) $ q
KDB+ 3.5 2017.11.30 Copyright (C) 1993-2017 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
q)p)import code
Segmentation fault
reinstalled pyq without touching p.k and then:
(pyq) $ q
KDB+ 3.5 2017.11.30 Copyright (C) 1993-2017 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
q)p)import code
Traceback (most recent call last):
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 22, in <module>
from ._k import K as _K, error as kerr, Q_VERSION, Q_DATE, Q_OS
ModuleNotFoundError: No module named 'pyq._k'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
raise ImportError(message)
ImportError: Importing pyq from stock python is not supported. Use pyq executable.
'python
[0] (<load>)
)\
q)p)import code
q)p)code.interact()
Python 3.6.5 (default, May 27 2018, 22:58:12)
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import importlib.util
>>> importlib.util.find_spec('pyq._k')
Traceback (most recent call last):
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 22, in <module>
from ._k import K as _K, error as kerr, Q_VERSION, Q_DATE, Q_OS
ModuleNotFoundError: No module named 'pyq._k'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/fred/pyq/lib/python3.6/importlib/util.py", line 88, in find_spec
parent = __import__(parent_name, fromlist=['__path__'])
File "/home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
raise ImportError(message)
ImportError: Importing pyq from stock python is not supported. Use pyq executable.
Ok, we are getting somewhere. Let's take __init__.py
about of the picture - please replace it with an empty file and repeat the importlib.util.find_spec('pyq._k') call.
(pyq) $ pwd
/home/fred/pyq/lib/python3.6/site-packages/pyq
(pyq) $ >__init__.py
(pyq) $ cat __init__.py
(pyq) $ q
KDB+ 3.5 2017.11.30 Copyright (C) 1993-2017 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
q)p)print(12)
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name 'q'
'python
[0] (<load>)
)\
q)p)import code
q)p)code.interact()
Python 3.6.5 (default, May 27 2018, 22:58:12)
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import importlib.util
>>> importlib.util.find_spec('pyq._k')
>>>
So find_spec('pyq._k')
returns None for you. Let's figure out why.
$ q64
KDB+ 3.6 2018.05.17 Copyright (C) 1993-2018 Kx Systems
m32/ 20()core 65536MB a a-imacpro.ny0.nln 10.166.1.30 NONEXPIRE
q)p)import code
q)p)code.interact()
Python 3.6.4 (default, Jan 8 2018, 14:03:33)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import importlib.util
>>> import pdb
>>> pdb.runcall(importlib.util.find_spec, 'pyq._k')
[1] > /Users/a/.virtualenvs/3/lib/python3.6/importlib/util.py(83)find_spec()
-> fullname = resolve_name(name, package) if name.startswith('.') else name
(Pdb++) l
78
79 The name and package arguments work the same as importlib.import_module().
80 In other words, relative module names (with leading dots) work.
81
82 """
83 -> fullname = resolve_name(name, package) if name.startswith('.') else name
84 if fullname not in sys.modules:
85 parent_name = fullname.rpartition('.')[0]
86 if parent_name:
87 # Use builtins.__import__() in case someone replaced it.
88 parent = __import__(parent_name, fromlist=['__path__'])
Please step through this function (using 'n') and try to figure out why it fails to find the _k module.
(pyq) $ q
KDB+ 3.5 2017.11.30 Copyright (C) 1993-2017 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
q)p)import code
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name 'q'
'python
[0] (<load>)
)\
q)p)import code
q)p)code.interact()
Python 3.6.5 (default, May 27 2018, 22:58:12)
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import importlib.util
>>> import pdb
>>> pdb.runcall(importlib.util.find_spec, 'pyq._k')
> /home/fred/pyq/lib/python3.6/importlib/util.py(83)find_spec()
-> fullname = resolve_name(name, package) if name.startswith('.') else name
(Pdb) 1
1
(Pdb) n
> /home/fred/pyq/lib/python3.6/importlib/util.py(84)find_spec()
-> if fullname not in sys.modules:
(Pdb) n
> /home/fred/pyq/lib/python3.6/importlib/util.py(85)find_spec()
-> parent_name = fullname.rpartition('.')[0]
(Pdb) n
> /home/fred/pyq/lib/python3.6/importlib/util.py(86)find_spec()
-> if parent_name:
(Pdb) n
> /home/fred/pyq/lib/python3.6/importlib/util.py(88)find_spec()
-> parent = __import__(parent_name, fromlist=['__path__'])
(Pdb) n
> /home/fred/pyq/lib/python3.6/importlib/util.py(89)find_spec()
-> return _find_spec(fullname, parent.__path__)
(Pdb) n
--Return--
> /home/fred/pyq/lib/python3.6/importlib/util.py(89)find_spec()->None
-> return _find_spec(fullname, parent.__path__)
(Pdb) n
OK, stepping trough the frozen modules is not an easy task, but here is what I suspect is happening. For some reason your system does not know about the proper .cpython-36m-i386-linux-gnu.so
suffix to append to the module name.
On my (64-bit) system, I get
>>> import pyq
>>> import sys
>>> sys.meta_path[-1]._path_importer_cache(pyq.__path__[0])._loaders
[('.cpython-36m-x86_64-linux-gnu.so', <class '_frozen_importlib_external.ExtensionFileLoader'>), ('.abi3.so', <class '_frozen_importlib_external.ExtensionFileLoader'>), ('.so', <class '_frozen_importlib_external.ExtensionFileLoader'>), ('.py', <class '_frozen_importlib_external.SourceFileLoader'>), ('.pyc', <class '_frozen_importlib_external.SourcelessFileLoader'>)]
You should see .cpython-36m-i386-linux-gnu.so
in the first entry. What do you see?
If this does not give a clue, you will have to step into _find_spec
and navigate by referring to the line numbers that pdb will print. Unfortunately it does not display the source for the frozen modules, so you will have to open it separately.
My session looks like this
>>> pdb.runcall(sys.meta_path[-1].find_spec, 'pyq._k', ['/Users/a/.virtualenvs/3/lib/python3.6/site-packages/pyq'])
[1] > <frozen importlib._bootstrap_external>(1155)find_spec()
(Pdb++) n
[1] > <frozen importlib._bootstrap_external>(1157)find_spec()
(Pdb++) s
--Call--
[2] > <frozen importlib._bootstrap_external>(1117)_get_spec()
(Pdb++) n
[2] > <frozen importlib._bootstrap_external>(1122)_get_spec()
(Pdb++)
[2] > <frozen importlib._bootstrap_external>(1123)_get_spec()
(Pdb++)
[2] > <frozen importlib._bootstrap_external>(1124)_get_spec()
(Pdb++)
[2] > <frozen importlib._bootstrap_external>(1126)_get_spec()
(Pdb++)
[2] > <frozen importlib._bootstrap_external>(1127)_get_spec()
(Pdb++) p finder
FileFinder('/Users/a/.virtualenvs/3/lib/python3.6/site-packages/pyq')
..
Eventually, you should be able to get to the FileFinder.find_spec function and see why it fails to find the .so.
One more thing. What will happen if you set PYTHONVERBOSE=2 and run pyq? On my system, I get
$ PYTHONVERBOSE=2 pyq
...
# trying .../lib/python3.6/site-packages/pyq/_k.cpython-36m-x86_64-linux-gnu.so
# extension module 'pyq._k' loaded from '.../lib/python3.6/site-packages/pyq/_k.cpython-36m-x86_64-linux-gnu.so'
# extension module 'pyq._k' executed from '.../lib/python3.6/site-packages/pyq/_k.cpython-36m-x86_64-linux-gnu.so'
import 'pyq._k' # <_frozen_importlib_external.ExtensionFileLoader object at 0x7f200d951e48>
...
yes, great, you've got it, and it's well related to the mix 32bits/64bits environments as I thougth:
q)p)import sys;print(sys.path)
['/home/fred/pyq/lib/python3.6/site-packages', '/home/fred/pyq/lib/python36.zip', '/home/fred/pyq/lib/python3.6', '/home/fred/pyq/lib/python3.6/lib-dynload', '/home/fred/python32/lib/python3.6']
q)p)import pyq
q)p)import sys
q)p)sys.meta_path[-1]._path_importer_cache(pyq.__path__[0])._loaders
q)p)print(sys.meta_path[-1]._path_importer_cache(pyq.__path__[0])._loaders)
[('.cpython-36m-x86_64-linux-gnu.so', <class '_frozen_importlib_external.ExtensionFileLoader'>), ('.abi3.so', <class '_frozen_importlib_external.ExtensionFileLoader'>), ('.so', <class '_frozen_importlib_external.ExtensionFileLoader'>), ('.py', <class '_frozen_importlib_external.SourceFileLoader'>), ('.pyc', <class '_frozen_importlib_external.SourcelessFileLoader'>)]
but how to fix this ?
import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0xf32a0cac>
# /home/fred/pyq/lib/python3.6/site-packages/pyq/__pycache__/__init__.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py
# code object from '/home/fred/pyq/lib/python3.6/site-packages/pyq/__pycache__/__init__.cpython-36.pyc'
import 'pyq' # <_frozen_importlib_external.SourceFileLoader object at 0xf326bf8c>
# trying /home/fred/pyq/lib/python3.6/site-packages/pyq/q.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/site-packages/pyq/q.abi3.so
# trying /home/fred/pyq/lib/python3.6/site-packages/pyq/q.so
# trying /home/fred/pyq/lib/python3.6/site-packages/pyq/q.py
# trying /home/fred/pyq/lib/python3.6/site-packages/pyq/q.pyc
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name 'q'
'2018.05.30T23:49:36.552 python
OK, so everything points to a broken importlib. Let's first see whether other extension modules are affected:
$ PYTHONVERBOSE=2 q
q)p)import _datetime
(note the leading underscore in _datetime)
The .so suffix is controlled by the SOABI variable that is read from Python Make file.
Check
>>> import sysconfig
>>> sysconfig.get_config_var('SOABI')
'cpython-36m-x86_64-linux-gnu'
If you get x86_64 as I do, it means you did not build your 32-bit python properly. We have instructions for CentOS that you should be able to adapt for your Linux flavor.
@zorg613 - in your first post, you wrote
compile and install python 3.6 with CFLAGS=-m32 and ldflags=-m32
Was the lowercase "ldflags" a typo in your post or you literally used a lowercase name. If you did, this could be the culprit.
$ source /home/fred/pyq/bin/activate
(pyq) $ PYTHONVERBOSE=2 q
KDB+ 3.5 2017.11.30 Copyright (C) 1993-2017 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
q)p)print(12)
import _frozen_importlib # frozen
import _imp # builtin
import sys # builtin
import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
import '_io' # <class '_frozen_importlib.BuiltinImporter'>
import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
import 'posix' # <class '_frozen_importlib.BuiltinImporter'>
import _thread # previously loaded ('_thread')
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import _weakref # previously loaded ('_weakref')
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
# installing zipimport hook
import 'zipimport' # <class '_frozen_importlib.BuiltinImporter'>
# installed zipimport hook
# /home/fred/pyq/lib/python3.6/encodings/__pycache__/__init__.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/encodings/__init__.py
# code object from '/home/fred/pyq/lib/python3.6/encodings/__pycache__/__init__.cpython-36.pyc'
# trying /home/fred/pyq/lib/python3.6/codecs.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/codecs.abi3.so
# trying /home/fred/pyq/lib/python3.6/codecs.so
# trying /home/fred/pyq/lib/python3.6/codecs.py
# /home/fred/pyq/lib/python3.6/__pycache__/codecs.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/codecs.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/codecs.cpython-36.pyc'
import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0xf324e28c>
# trying /home/fred/pyq/lib/python3.6/encodings/aliases.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/encodings/aliases.abi3.so
# trying /home/fred/pyq/lib/python3.6/encodings/aliases.so
# trying /home/fred/pyq/lib/python3.6/encodings/aliases.py
# /home/fred/pyq/lib/python3.6/encodings/__pycache__/aliases.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/encodings/aliases.py
# code object from '/home/fred/pyq/lib/python3.6/encodings/__pycache__/aliases.cpython-36.pyc'
import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0xf325492c>
import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0xf323fe6c>
# trying /home/fred/pyq/lib/python3.6/encodings/utf_8.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/encodings/utf_8.abi3.so
# trying /home/fred/pyq/lib/python3.6/encodings/utf_8.so
# trying /home/fred/pyq/lib/python3.6/encodings/utf_8.py
# /home/fred/pyq/lib/python3.6/encodings/__pycache__/utf_8.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/encodings/utf_8.py
# code object from '/home/fred/pyq/lib/python3.6/encodings/__pycache__/utf_8.cpython-36.pyc'
import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0xf326038c>
import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
# trying /home/fred/pyq/lib/python3.6/encodings/latin_1.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/encodings/latin_1.abi3.so
# trying /home/fred/pyq/lib/python3.6/encodings/latin_1.so
# trying /home/fred/pyq/lib/python3.6/encodings/latin_1.py
# /home/fred/pyq/lib/python3.6/encodings/__pycache__/latin_1.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/encodings/latin_1.py
# code object from '/home/fred/pyq/lib/python3.6/encodings/__pycache__/latin_1.cpython-36.pyc'
import 'encodings.latin_1' # <_frozen_importlib_external.SourceFileLoader object at 0xf3260a8c>
# trying /home/fred/pyq/lib/python3.6/io.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/io.abi3.so
# trying /home/fred/pyq/lib/python3.6/io.so
# trying /home/fred/pyq/lib/python3.6/io.py
# /home/fred/pyq/lib/python3.6/__pycache__/io.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/io.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/io.cpython-36.pyc'
# trying /home/fred/pyq/lib/python3.6/abc.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/abc.abi3.so
# trying /home/fred/pyq/lib/python3.6/abc.so
# trying /home/fred/pyq/lib/python3.6/abc.py
# /home/fred/pyq/lib/python3.6/__pycache__/abc.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/abc.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/abc.cpython-36.pyc'
# trying /home/fred/pyq/lib/python3.6/_weakrefset.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/_weakrefset.abi3.so
# trying /home/fred/pyq/lib/python3.6/_weakrefset.so
# trying /home/fred/pyq/lib/python3.6/_weakrefset.py
# /home/fred/pyq/lib/python3.6/__pycache__/_weakrefset.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/_weakrefset.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/_weakrefset.cpython-36.pyc'
import '_weakrefset' # <_frozen_importlib_external.SourceFileLoader object at 0xf326540c>
import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0xf3260e0c>
import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0xf3260c4c>
# trying /home/fred/pyq/lib/python3.6/site.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/site.abi3.so
# trying /home/fred/pyq/lib/python3.6/site.so
# trying /home/fred/pyq/lib/python3.6/site.py
# /home/fred/pyq/lib/python3.6/__pycache__/site.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/site.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/site.cpython-36.pyc'
# trying /home/fred/pyq/lib/python3.6/os.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/os.abi3.so
# trying /home/fred/pyq/lib/python3.6/os.so
# trying /home/fred/pyq/lib/python3.6/os.py
# /home/fred/pyq/lib/python3.6/__pycache__/os.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/os.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/os.cpython-36.pyc'
import 'errno' # <class '_frozen_importlib.BuiltinImporter'>
# trying /home/fred/pyq/lib/python3.6/stat.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/stat.abi3.so
# trying /home/fred/pyq/lib/python3.6/stat.so
# trying /home/fred/pyq/lib/python3.6/stat.py
# /home/fred/pyq/lib/python3.6/__pycache__/stat.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/stat.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/stat.cpython-36.pyc'
import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0xf320260c>
# trying /home/fred/pyq/lib/python3.6/posixpath.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/posixpath.abi3.so
# trying /home/fred/pyq/lib/python3.6/posixpath.so
# trying /home/fred/pyq/lib/python3.6/posixpath.py
# /home/fred/pyq/lib/python3.6/__pycache__/posixpath.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/posixpath.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/posixpath.cpython-36.pyc'
# trying /home/fred/pyq/lib/python3.6/genericpath.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/genericpath.abi3.so
# trying /home/fred/pyq/lib/python3.6/genericpath.so
# trying /home/fred/pyq/lib/python3.6/genericpath.py
# /home/fred/pyq/lib/python3.6/__pycache__/genericpath.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/genericpath.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/genericpath.cpython-36.pyc'
import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0xf3205a2c>
import 'posixpath' # <_frozen_importlib_external.SourceFileLoader object at 0xf320272c>
# trying /home/fred/pyq/lib/python3.6/_collections_abc.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/_collections_abc.abi3.so
# trying /home/fred/pyq/lib/python3.6/_collections_abc.so
# trying /home/fred/pyq/lib/python3.6/_collections_abc.py
# /home/fred/pyq/lib/python3.6/__pycache__/_collections_abc.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/_collections_abc.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/_collections_abc.cpython-36.pyc'
import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0xf3205f6c>
import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0xf3276d4c>
# trying /home/fred/pyq/lib/python3.6/__builtin__.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/__builtin__.abi3.so
# trying /home/fred/pyq/lib/python3.6/__builtin__.so
# trying /home/fred/pyq/lib/python3.6/__builtin__.py
# trying /home/fred/pyq/lib/python3.6/__builtin__.pyc
# trying /home/fred/pyq/lib/python3.6/__builtin__.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/__builtin__.abi3.so
# trying /home/fred/pyq/lib/python3.6/__builtin__.so
# trying /home/fred/pyq/lib/python3.6/__builtin__.py
# trying /home/fred/pyq/lib/python3.6/__builtin__.pyc
# trying /home/fred/pyq/lib/python3.6/lib-dynload/__builtin__.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/lib-dynload/__builtin__.abi3.so
# trying /home/fred/pyq/lib/python3.6/lib-dynload/__builtin__.so
# trying /home/fred/pyq/lib/python3.6/lib-dynload/__builtin__.py
# trying /home/fred/pyq/lib/python3.6/lib-dynload/__builtin__.pyc
# trying /home/fred/pyq/lib/python3.6/_bootlocale.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/_bootlocale.abi3.so
# trying /home/fred/pyq/lib/python3.6/_bootlocale.so
# trying /home/fred/pyq/lib/python3.6/_bootlocale.py
# /home/fred/pyq/lib/python3.6/__pycache__/_bootlocale.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/_bootlocale.py
# code object from '/home/fred/pyq/lib/python3.6/__pycache__/_bootlocale.cpython-36.pyc'
import '_locale' # <class '_frozen_importlib.BuiltinImporter'>
import '_bootlocale' # <_frozen_importlib_external.SourceFileLoader object at 0xf327e68c>
# trying /home/fred/pyq/lib/python3.6/sitecustomize.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/sitecustomize.abi3.so
# trying /home/fred/pyq/lib/python3.6/sitecustomize.so
# trying /home/fred/pyq/lib/python3.6/sitecustomize.py
# trying /home/fred/pyq/lib/python3.6/sitecustomize.pyc
# trying /home/fred/pyq/lib/python3.6/lib-dynload/sitecustomize.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/lib-dynload/sitecustomize.abi3.so
# trying /home/fred/pyq/lib/python3.6/lib-dynload/sitecustomize.so
# trying /home/fred/pyq/lib/python3.6/lib-dynload/sitecustomize.py
# trying /home/fred/pyq/lib/python3.6/lib-dynload/sitecustomize.pyc
# trying /home/fred/python32/lib/python3.6/sitecustomize.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/python32/lib/python3.6/sitecustomize.abi3.so
# trying /home/fred/python32/lib/python3.6/sitecustomize.so
# trying /home/fred/python32/lib/python3.6/sitecustomize.py
# trying /home/fred/python32/lib/python3.6/sitecustomize.pyc
# trying /home/fred/pyq/lib/python3.6/site-packages/sitecustomize.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/site-packages/sitecustomize.abi3.so
# trying /home/fred/pyq/lib/python3.6/site-packages/sitecustomize.so
# trying /home/fred/pyq/lib/python3.6/site-packages/sitecustomize.py
# trying /home/fred/pyq/lib/python3.6/site-packages/sitecustomize.pyc
import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0xf326bb4c>
# trying /home/fred/pyq/lib/python3.6/pyq.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/pyq.abi3.so
# trying /home/fred/pyq/lib/python3.6/pyq.so
# trying /home/fred/pyq/lib/python3.6/pyq.py
# trying /home/fred/pyq/lib/python3.6/pyq.pyc
# trying /home/fred/pyq/lib/python3.6/lib-dynload/pyq.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/lib-dynload/pyq.abi3.so
# trying /home/fred/pyq/lib/python3.6/lib-dynload/pyq.so
# trying /home/fred/pyq/lib/python3.6/lib-dynload/pyq.py
# trying /home/fred/pyq/lib/python3.6/lib-dynload/pyq.pyc
# trying /home/fred/python32/lib/python3.6/pyq.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/python32/lib/python3.6/pyq.abi3.so
# trying /home/fred/python32/lib/python3.6/pyq.so
# trying /home/fred/python32/lib/python3.6/pyq.py
# trying /home/fred/python32/lib/python3.6/pyq.pyc
# /home/fred/pyq/lib/python3.6/site-packages/pyq/__pycache__/__init__.cpython-36.pyc matches /home/fred/pyq/lib/python3.6/site-packages/pyq/__init__.py
# code object from '/home/fred/pyq/lib/python3.6/site-packages/pyq/__pycache__/__init__.cpython-36.pyc'
import 'pyq' # <_frozen_importlib_external.SourceFileLoader object at 0xf3236e4c>
# trying /home/fred/pyq/lib/python3.6/site-packages/pyq/q.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/site-packages/pyq/q.abi3.so
# trying /home/fred/pyq/lib/python3.6/site-packages/pyq/q.so
# trying /home/fred/pyq/lib/python3.6/site-packages/pyq/q.py
# trying /home/fred/pyq/lib/python3.6/site-packages/pyq/q.pyc
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name 'q'
'python
[0] (<load>)
)\
q)p)import _datetime
# trying /home/fred/pyq/lib/python3.6/_datetime.cpython-36m-x86_64-linux-gnu.so
# trying /home/fred/pyq/lib/python3.6/_datetime.abi3.so
# trying /home/fred/pyq/lib/python3.6/_datetime.so
# trying /home/fred/pyq/lib/python3.6/_datetime.py
# trying /home/fred/pyq/lib/python3.6/_datetime.pyc
# trying /home/fred/pyq/lib/python3.6/lib-dynload/_datetime.cpython-36m-x86_64-linux-gnu.so
# extension module '_datetime' loaded from '/home/fred/pyq/lib/python3.6/lib-dynload/_datetime.cpython-36m-x86_64-linux-gnu.so'
# extension module '_datetime' executed from '/home/fred/pyq/lib/python3.6/lib-dynload/_datetime.cpython-36m-x86_64-linux-gnu.so'
import '_datetime' # <_frozen_importlib_external.ExtensionFileLoader object at 0xf323d02c>
q)
you're right:
q)p)import sysconfig;print(sysconfig.get_config_var('SOABI'))
cpython-36m-x86_64-linux-gnu
I'll try to recompile the python 32bits (nb: LDFLAGS was just a typo here). many thanks for your support!
~/python32.CFLAGS_and_LDFLAGS/bin/python3 -c "import sysconfig;print(sysconfig.get_config_var('SOABI'))"
cpython-36m-x86_64-linux-gnu
$ ~/python32.CFLAGS_and_LDFLAGS_and_CPPFLAGS/bin/python3 -c "import sysconfig;print(sysconfig.get_config_var('SOABI'))"
cpython-36m-i386-linux-gnu
So, it seems that the CPPFLAGS is also needed here to get this 32bits python working as expected! I'm interested by any more clue on this for sure if anyone :). so, the right steps here:
wget http://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
tar xvzpf Python-3.6.5.tgz
cd Python-3.6.5
CFLAGS=-m32 LDFLAGS=-m32 CPPFLAGS=-m32 ./configure --prefix=$HOME/python32 --enable-shared
LD_RUN_PATH=$HOME/python32/lib make install
$HOME/python32/bin/pip3 install virtualenv
$HOME/python32/bin/virtualenv $HOME/pyq
cat <<EOF >>$HOME/pyq/bin/activate
export QHOME=\$VIRTUAL_ENV/q
export PATH=\$QHOME/l32:\$PATH
export LD_LIBRARY_PATH=\$HOME/python32/lib
cd \$VIRTUAL_ENV
EOF
source $HOME/pyq/bin/activate
unzip $HOME/Downloads/linuxx86.zip -d $VIRTUAL_ENV
$VIRTUAL_ENV/bin/pip3 install --no-binary pyq
(pyq) $ pyq
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
Python 3.6.5 (default, May 31 2018, 12:22:17)
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> q("til 10")
k('0 1 2 3 4 5 6 7 8 9')
>>> exit()
(pyq) $ q
KDB+ 3.5 2017.11.30 Copyright (C) 1993-2017 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/q
To exit, type \\
To remove this startup msg, edit q.q
q)p)print(12)
12
q)p)import sys;print(sys.path)
['/home/fred/pyq/lib/python36.zip', '/home/fred/pyq/lib/python3.6', '/home/fred/pyq/lib/python3.6/lib-dynload', '/home/fred/python32/lib/python3.6', '/home/fred/pyq/lib/python3.6/site-packages']
q)\\
(pyq) $
Many thanks for your help, it's working as expected now !
sorry for typo, the right pip3 install cmd is this one:
$VIRTUAL_ENV/bin/pip3 install --no-binary pyq pyq
and now with the last q (v3.6):
(pyq) $ $VIRTUAL_ENV/bin/pip3 install --no-binary pyq pyq
Collecting pyq
Using cached https://files.pythonhosted.org/packages/49/bf/81a4f658f7b89f1b75903b9470240d8c20746efd5c2c3b439cc214e28990/pyq-4.1.3.tar.gz
Skipping bdist_wheel for pyq, due to binaries being disabled for it.
Installing collected packages: pyq
Running setup.py install for pyq ... done
Successfully installed pyq-4.1.3
(pyq) $ q
KDB+ 3.6 2018.05.17 Copyright (C) 1993-2018 Kx Systems
l32/ 4()core 5813MB fred jumperpro3 127.0.0.1 NONEXPIRE
Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/wiki/Tutorials
To exit, type \\
To remove this startup msg, edit q.q
q)p)print(12)
12
q)\\
Please ignore my previous code — I was looking at stale discussion.
Questions
[x] Which operating system are you using (if Linux, please provide flavour of it, i.e RedHat, CentOS or Ubuntu), is it 32-bit, or 64-bit? Linux (ArchLinux based without systemd - Artix Linux)
64-bit
[x] Which version of PyQ are you running? Please provide output of
pyq --versions
, if PyQ isn't operational, please provide Python interpreter version and PyQ versionpython -V; python3 -V; pip list | grep pyq
:Python 3.6.5 pyq 4.1.3
[x] Which version of kdb+ are you using, is it 32-bit or 64-bit?
KDB+ 3.6
32-bit
[ ] If on 64-bit, is your
QLIC
set? Please provide outputenv | grep QLIC
on linux/macOS, orset|grep QLIC
on Windows.[x] Did you use virtual environment to install PyQ? If not, why?
[x] Where is your
QHOME
? Please provide outputenv | grep QHOME
on linux/macOS, orset|grep QHOME
on Windows.$HOME/pyq/q nb: my virtualenv is $HOME/pyq
[x] Do you use Conda? If so, what version?
no
Steps to reproduce the issue
Expected result
Actual result
Workaround
If you know workaround, please provide it here.