KxSystems / pyq

PyQ — Python for kdb+
http://code.kx.com/q/interfaces
Apache License 2.0
190 stars 49 forks source link

Using PyQ in PyCharm in Windows #130

Open dmarshfd opened 4 years ago

dmarshfd commented 4 years ago

Questions

Steps to reproduce the issue

In Win10, create a venv and install pyq there. Try using the new env in PyCharm. According to this issue https://github.com/KxSystems/pyq/issues/61, the way to use pyq through PyCharm is to symlink pyq to python. In Windows there is no pyq executable to link.

Expected result

pyq is usable in PyCharm

Actual result

Can't apply solution from https://github.com/KxSystems/pyq/issues/61

Workaround

If you know workaround, please provide it here.

sashkab commented 4 years ago

Not possible at this time. Due to need to press Ctrl+Z during initialization of PyQ on Windows -- this wouldn't be possible even with windows PyQ executable, which doesn't exists for exactly this reason.

dmarshfd commented 4 years ago

But it is possible to run a python script without Ctrl+Z, e.g. something like q python.q helloworld.py will print hello world without manual intervention. PyCharm won't accept q python.q as a project interpreter though.

github-actions[bot] commented 4 years ago

Stale issue message

sashkab commented 4 years ago

I would try to create a batch file, which will launch q python.q with all arguments passed to the PyQ; and attempt to pass it to PyCharm as interpreter. Or you need to use powershelgl script.

Sorry, I didn't touch Windows in a while... can't really help you much.

github-actions[bot] commented 3 years ago

Stale issue message

github-actions[bot] commented 3 years ago

Stale issue message

github-actions[bot] commented 3 years ago

Stale issue message

github-actions[bot] commented 3 years ago

Stale issue message