Closed fouvy closed 4 years ago
Please show full output.
full output is:
(python36) eam238@eam238-System-Product-Name:~$ pyq
'2019.06.19T14:37:46.689 pyq_executable
[2] /q/python.q:5: run:py`$pyq_executable
Another method to solve this problem:
git clone https://github.com/kxsystems/pyq.git
sudo -E bash -c 'pip install ./pyq'
we don't recommend using sudo pip install pyq
.
any reason you're cloning repository and not installing it with pip install pyq
?
cuz, install packages for multi users ...
using virtual environment works perfectly fine for multiple users. we've been using this method for years with zero issues, no root user was required. Each virtual environment can have different version not only kdb+ installed, but PyQ as well.
Stale issue message
Questions
[ ] 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?
[ ] 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
:[ ] Which version of kdb+ are you using, is it 32-bit or 64-bit?
[ ] If on 64-bit, is your
QLIC
set? Please provide outputenv | grep QLIC
on linux/macOS, orset|grep QLIC
on Windows.[ ] Did you use virtual environment to install PyQ? If not, why?
[ ] Where is your
QHOME
? Please provide outputenv | grep QHOME
on linux/macOS, orset|grep QHOME
on Windows.[ ] Do you use Conda? If so, what version?
Steps to reproduce the issue
setting QHOME in ~/.bashrc run: sudo pip install pyq pyq
Expected result
run a python shell
Actual result
error in /q/python.q line 6: run:py`$pyq_executable
Workaround
I solved thie problem by run following code:
It seems env variable doesn't share with sudoer. If you know workaround, please provide it here.