Closed perfecto25 closed 4 years ago
I think I got it to work by uninstalling all versions of pyq (py2, py3, py3.6, py3.7, etc)
then reinstalling, copied the Q files from /usr/local/q (not sure what install this), to our default Q installation,
python3.6 -m pip install pyq
chmod +x /usr/local/bin/pyq
cp -R /usr/local/q/* /opt/qb/q3.6/
now pyq opens up a python shell correctly,
root@qbreport-us1:q3.6 $ /usr/local/bin/pyq
Python 3.6.8 (default, Aug 7 2019, 17:28:10)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> quit()
This is user error. pip
is linked to python 3.7 /usr/local/lib/libpython3.7m.a
, but user uses Python 3.6. Proper way to install is
python3.6 -mpip install pyq
And don't install PyQ as root user. This is not supported.
Questions
mreider@qbreport-us1:~ $ python -V Python 2.7.5
mreider@qbreport-us1:~ $ python3 -V Python 3.6.8
mreider@qbreport-us1:~ $ pip list | grep pyq pyq 4.2.1
QLIC=/opt/qb/q3.6
pip install pyq
mreider@qbreport-us1:~ $ pyq '2020.02.27T15:24:25.615 /usr/local/lib/libpython3.7m.a: invalid ELF header [4] /opt/qb/q3.6/p.k:2: (
:./pyq 2:(
p_init;1)).pyq.python_dll ^