You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
$ cmake --version
cmake version 3.26.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ py -3.11 --version
Python 3.11.6
$ mkdir build && cd build
$ cmake -DTRACY_CLIENT_PYTHON=ON -DBUILD_SHARED_LIBS=ON ..
$ cmake --build . --config=Release
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 it
$ cmake --build . --config=Release # (again, because of the error described above)
$ cd ../python
$ py -3.11 -m setup bdist_wheel
I successfully got a wheel for myself, and went on to pip install it
At 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 find TracyClientBindings.pyd)
The text was updated successfully, but these errors were encountered:
Morning, I'm afraid my experience with compiling anything on Windows is basically non-existent :-(
Does it work if you tell Windows where to find TracyClientBindings.pyd?
Hi. From what I read, PYTHONPATH could help with that and I did setup it to point to the folder where the .pyd is supposed to be, tried to sys.path.append() the said folder, went so far as to add the said pyd to C:\Windows\Sys32/SysWOW64 (which is one of default locations on PATH I believe), but nothing seems to have worked for me so far
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: