-
Notifications
You must be signed in to change notification settings - Fork 35
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
Python binding on Windows #95
Comments
I managed to build a wheel for CPython 3.9 and win64, I'll attach it here for anyone who could use it. |
Thanks for the report and about sharing your findings! Unfortunately none of the core GF team has a Windows machine, so the functionalities on Windows are somewhat neglected. Should we link the wheel from the GF main website or from github? |
@nardi |
How did you install it? Probably it can't find the corresponding C library.
This kind of issues are best debugged with the Dependency Walker
<https://www.dependencywalker.com/> on Windows.
Note that if you used pip install then there is pgf 1.0 and pgf 2.01. The
later only works if you have the majestic implementation. You can use pip
install pgf==1.0 to install the version which works with the regular
compiler.
Note: I am not a regular Windows user and I have only recently tried to
install the runtime on Windows.
…On Thu, 2 Feb 2023 at 11:39, Oskari Niskanen ***@***.***> wrote:
@nardi <https://github.com/nardi>
Did you get this issue after installing the wheel and trying to import the
package?
[image: image]
<https://user-images.githubusercontent.com/33284841/216302584-37ada688-22e4-42bc-908d-b3b4fa97098a.png>
—
Reply to this email directly, view it on GitHub
<#95 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYFSZF2H3ONRS5PXLENLALWVOFGVANCNFSM4W4VCE5A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Has anyone managed to build and use the Python binding to PGF on Windows?
I gave it a shot, but the difficulty seems to be that "regular" Python on Windows requires you to use the MSVC compiler, and when I try to build the pgf package using that things seem to go very wrong. I first built the C runtime on mingw (the result of which should be usable outside a mingw environment), but even with that available running the setup.py script just gave me a bunch of errors from MSVC.
I'll look into it further, but I'm just curious whether anyone has managed to do this in the first place ;)
The text was updated successfully, but these errors were encountered: