KxSystems / pyq

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

Windows 10: error with pip install pyq #98

Closed jdoraemon closed 5 years ago

jdoraemon commented 5 years ago

Questions

Steps to reproduce the issue

In command prompt: pip install pyq

Expected result

Actual result

H:>pip install pyq Collecting pyq Using cached https://files.pythonhosted.org/packages/53/de/195ce13d50784489365fee87d1e7d637fa2e42f3c5ae359d56c13595c93c/pyq-4.1.4.tar.gz Complete output from command python setup.py egg_info: running egg_info creating pip-egg-info\pyq.egg-info writing requirements to pip-egg-info\pyq.egg-info\requires.txt writing pip-egg-info\pyq.egg-info\PKG-INFO writing top-level names to pip-egg-info\pyq.egg-info\top_level.txt writing dependency_links to pip-egg-info\pyq.egg-info\dependency_links.txt writing manifest file 'pip-egg-info\pyq.egg-info\SOURCES.txt' error: [Errno 2] No such file or directory: 'C:q\q.k'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in c:\users\jay~1.hua\appdata\local\temp\pip-install-n9lzdt\pyq\

Workaround

If you know workaround, please provide it here. Sorry, none.

sashkab commented 5 years ago
  • QHOME=C:q

You have an error in your QHOME variable. Correct one should be either QHOME=C:\q, or QHOME=C:\path\to\q.

PyQ was not tested when compiled via cygwin. For use with conda, we provide instructions on how to easily install PyQ in coda environment with the kdb+ personal edition.

conda install -c enlnt -c kx pyq
jdoraemon commented 5 years ago

Thank you so much for pointing out that silly error. I tried following your instruction on conda install, but I get the following PackagesNotFoundError:

base) C:\Users\Jay Huang>conda install -c enlnt -c kx pyq Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

Are you able to shed some light on this please? Thanks

sashkab commented 5 years ago

We don't publish windows builds on anaconda, only macOS and linux. Your best bet would be to run pip install pyq then, but properly setting QHOME.