pyvjoy
pyvjoy copied to clipboard
Unable to load vJoy SDK DLL. Ensure that vJoyInterface.dll is present
The code no longer is working within the _wrapper.py
I've updated
line 7 to
dll_path = os.path.dirname(os.path.abspath(__file__)) + os.sep + dll_filename
and it is working fine.
Also might be a good idea to note this does not work with amd64 dll only the 32bit
replace line 11 of _sdk.py with
dll_path = os.path.dirname(os.path.abspath(__file__)) + os.sep + DLL_FILENAME
and make sure that using 32-bit vJoyInterface.dll and make sure that you are using 32-bit python(doesn't matter that your OS is 64-bit, your python distribution needs to be 32-bit for this to work)
Is there a reason why this only works on 32bit python? I'm currently trying to use this in a project with another package that requires 64bit python.
Is there a reason why this only works on 32bit python? I'm currently trying to use this in a project with another package that requires 64bit python.
I haven't tried this , but there shouldn't be any reason for this not to work woth 64-bit python if you are using 64-bit vjoy dll and 64-bit vjoy installion. You can try using it in 64 bit python.(only reason it may not work on 64 bit python is if developers of vjoyinterface.dll used different function in 32 bit and 64 bit files, which i think is highly unlikely). Still you can try and do tell the results.
Can't say why, but it definitely does have something to do with 64 vs 32 bit python.
If you try to import pyvjoy in 64 bit python, it throws the following OSError: %1 is not a valid Win32 application
When I changed the python interpreter for my venv to 32-bit, it fixed the error.
Turns out @tg21 was right.
I got it working using python 64-bit with a 64-bit vjoy installation using the VJoyInterface.dll from the x64 folder of my vjoy installation.
Haven't had any issues, but it's always possible some could pop up.
Turns out @tg21 was right.
I got it working using python 64-bit with a 64-bit vjoy installation using the VJoyInterface.dll from the x64 folder of my vjoy installation.
Haven't had any issues, but it's always possible some could pop up.
Could you explain me how to do that ?
@FahrulID You have to do as follows:
- Install 64 bit Vjoy
- Go to the Vjoy's installation folder and find VJoyInterface.dll
- Copy that VJoyInterface.dll into the pyvjoy's folder, replacing the VJoyInterface.dll included with pyvjoy.