Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using PyQ in PyCharm in Windows #130

Open
7 tasks
dmarshfd opened this issue Apr 27, 2020 · 8 comments
Open
7 tasks

Using PyQ in PyCharm in Windows #130

dmarshfd opened this issue Apr 27, 2020 · 8 comments
Labels

Comments

@dmarshfd
Copy link

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?

    Win 10 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 version python -V; python3 -V; pip list | grep pyq:

    Python 3.7.7
    nothing
    pyq 4.2.1    
    Python is 64-bit
    
  • Which version of kdb+ are you using, is it 32-bit or 64-bit?

    3.6
    2020.04.16
    Win 64-bit
    
    • If on 64-bit, is your QLIC set? Please provide output env | grep QLIC on linux/macOS, or set|grep QLIC on Windows.

      QLIC=C:\code\pyqtesting\venv\q
      
  • Did you use virtual environment to install PyQ? If not, why?

    • Yes
  • Where is your QHOME? Please provide output env | grep QHOME on linux/macOS, or set|grep QHOME on Windows.

    QHOME=C:\code\pyqtesting\venv\q
    
  • Do you use Conda? If so, what version?

    No    
    

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 #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 #61

Workaround

If you know workaround, please provide it here.

@sashkab
Copy link
Contributor

sashkab commented Apr 27, 2020

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
Copy link
Author

dmarshfd commented Apr 27, 2020

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
Copy link

Stale issue message

@sashkab
Copy link
Contributor

sashkab commented Jun 27, 2020

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
Copy link

Stale issue message

@github-actions
Copy link

Stale issue message

@github-actions
Copy link

Stale issue message

@github-actions
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants