GithubHelp home page GithubHelp logo

Issues installing PyQ on Win10 about pyq HOT 12 CLOSED

kxsystems avatar kxsystems commented on June 30, 2024
Issues installing PyQ on Win10

from pyq.

Comments (12)

abalkin avatar abalkin commented on June 30, 2024

We building pyq and running the tests on 32-bit Window as a part of our internal CI, so you should be able to build any recent version. From your description, it does not look like anything specific pyq. Are you able to build any other python package? Please try

pip install --no-binary numpy numpy

Any advice on resolving the error or input on the relative suitability of PyQ (and kdb and python by extension) to Windows versus Linux is appreciated.

Windows support is still considered experimental, but since we run the same tests on Linux and Windows, once you overcome the installation hurdles, you will be able to use the same features on both platforms. The only major missing feature on windows is the pyq executable: you have to run q python.q script.py instead of pyq script.py.

from pyq.

abalkin avatar abalkin commented on June 30, 2024

The link provided was dead (I'm guessing as it point to the VS2015 build tools and VS2017 had been released) so I DLed and installed the the VS2017 build tools. This didn't fix the issue. I tried installing VS 2017 which had some additional python support.

@sashkab - should we update Windows build instructions? I am not sure what link @cppt is complaining about. Both Python 2.7 and Python 3.6 links that we provide work for me.

from pyq.

cppt avatar cppt commented on June 30, 2024

Thanks. The first error message I got included the following link to get the missing build tools:
https://landinghub.visualstudio.com/visual-cpp-build-tools

I've since closed that cmd terminal otherwise I'd paste the error message.

numpy install completed successfully though threw an error after completing. A quick google seems to suggest this is an existing issue with python 3.6 and numpy, hopefully resolved with 3.7:
image

Re Windows support: It sounds like you all aren't running into any of these issues in your testing on Windows then?

ok, I might just install Ubuntu then and give all of this a try there. I'm far from married to Windows and was leaning toward doing that anyway.

from pyq.

abalkin avatar abalkin commented on June 30, 2024

Interesting. Can you rebuild numpy in verbose mode?

pip uninstall numpy
pip install -vvv  --no-binary numpy numpy

from pyq.

abalkin avatar abalkin commented on June 30, 2024

The first error message I got included the following link to get the missing build tools:
https://landinghub.visualstudio.com/visual-cpp-build-tools

I am not sure where such message may come from. We don't issue this message and I could not find it in Python sources either. Apparently, people have seen this message with other packages as well. Are you using Anaconda Python by any chance?

from pyq.

cppt avatar cppt commented on June 30, 2024

No, though I've been considering installing it in hopes of remedying some of these issues given all the supplemental packages it comes with. I did originally have PyCharm installed though.

Log file for verbose install is attached:
numpyInstall.txt

from pyq.

abalkin avatar abalkin commented on June 30, 2024

Thanks, can you also attach a similar verbose log from

pip install -vvv  --no-binary pyq pyq

from pyq.

sashkab avatar sashkab commented on June 30, 2024

Our instructions are correct, nothing to update. He complains about link provided from pip, which is dead. End user suppose to install Visual Studio compiler in order to compile PyQ. For Python 3.6 -- It's from https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017. Based on numpyInstall.txt, it seems like he already has them installed.

From here, pip install -U pyq==4.1.4 should install latest version of PyQ, as long as you followed our instructions.

from pyq.

cppt avatar cppt commented on June 30, 2024

Attached.
pyqInstall.txt

from pyq.

abalkin avatar abalkin commented on June 30, 2024

Thanks for sharing the log. It looks like you are attempting to build 32-bit PyQ using 64-bit Python. This cannot work. You should download 32-bit python from https://www.python.org/downloads/windows and use it to build PyQ. Alternatively, you can get a 64-bit kdb+ from https://ondemand.kx.com and use that together with the 64-bit python to build 64-bit PyQ.

from pyq.

cppt avatar cppt commented on June 30, 2024

Thank you, guys...upgraded kdb+ to 64-bit and pyq install completed successfully.

Do kdb+ and pyq versions need to match on Linux as well?

from pyq.

abalkin avatar abalkin commented on June 30, 2024

Do kdb+ and pyq versions need to match on Linux as well?

Yes, you cannot mix 32 and 64-bit libraries in one application. On macOS, you can build Universal binaries, but we still recommend having a matching kdb+/pyq installation for each python version.

from pyq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.