-
Notifications
You must be signed in to change notification settings - Fork 26
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
failure to find ftgl on windows with Python 3.8 #563
Comments
I think it's better to have only one issue on each issue record. It will avoid having the discussion of multiple issues interleaved (which will make it harder to follow) and lets us can refer to a specific issue by number. Also, in this specific case what would we do if after closing this we find a new issue related to python 3.8? Let's keep one issue per issue. For context of that release note, there is the associated issue on Python's bug tracker and Microsoft's LoadLibraryExW function docs (from reading the Python source, the new default are the flags |
One of the main reasons for the change in Python is to not search DLLs in Searching online, it seems that the recommended way to install a library on Windows is to put it on the system path or the application directory. Since ftgl is library only, it seems that it should go into the system path. Since the system path is still searched on windows to search for dll's can this be fixed on the ftgl installer? It is well known that I'm not super familiar with Windows so my interpretations might be wrong. |
As far as I know, there is no installer on Windows for FTGL. You just build the library from source or grab a pre-built DLL or LIB file. I did the latter and placed the DLL in a directory that's in PATH. Python still couldn't find it. I tried to add the directory to PYTHONPATH too, unsuccessfully. It seems that the problem is, as you said in your previous comment, that the default flags passed to the
and it works. Unfortunately, this |
What if you place the dll in
This is interesting because Python's documentation states that
Agreed. I'm not sure this is a bug of ours, maybe if we were distributing cockpit installers it would. Can you fix the distribution of ftgl? |
Closing since ftgl is no longer required (see #615). |
Opening this to keep track of all changes necessary to support python 3.8+. For now, the only issue I have encountered is the way DLLs are loaded on Windows, which breaks FTGL:
https://docs.python.org/3.8/whatsnew/3.8.html#changes-in-the-python-api
The text was updated successfully, but these errors were encountered: