-
-
Notifications
You must be signed in to change notification settings - Fork 695
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 Tracy on Windows - ImportError: DLL load failed while importing TracyClientBindings #901
Comments
Morning, I'm afraid my experience with compiling anything on Windows is basically non-existent :-( |
Hi. From what I read, PYTHONPATH could help with that and I did setup it to point to the folder where the |
Since it's complaining about DLL loads, maybe something like this might help? https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order |
Hi there. Status update: sadly, I wasn't able to arrive to a solution. However I said "whatever", kinda migrated my app to Ubuntu and built Tracy for Python, everything worked without issues P.S. I'm not sure if this issue can be closed or if you'd like to look into it further, so I'll leave it up to you🙂 |
Tha's the thing, they are actually present in my wheel (see the original msg by yours truly), but python seemingly fails to locate the P.S. it actually resolves the stub, and I can navigate to it in IDE just fine, the trouble comes specifically when loading the DLL, because it's "missing" |
Does something like this |
Hey there. I apologise in advance if my description is poor or if it's a stupid mistake on my part, I'm not overly familiar with CMake, neither am I with how dlls are being loaded (to be fixed)
I wanted to use Tracy to track a python application, and I needed to run it on Windows. So I followed the instructions from docs to build a python wheel.
btw, at this point I had to manually move TracyClient.dll from
Release
folder one level above, because that's where python recipe was expecting itI successfully got a wheel for myself, and went on to
pip install
itAt this point, in my .venv/Lib/site-packages I had a
tracy_client
folder, all according to plan.So I went on and added a
import tracy_client as Tracy
to my source. However, when running the code, I've received(<class 'ImportError'>, DLL load failed while importing TracyClientBindings: The specified module could not be found., <traceback object at 0x000001CFCFE55D80>)
in tracy_client.tracy.py (I imagine because it failed to findTracyClientBindings.pyd
)The text was updated successfully, but these errors were encountered: