Skip to content
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

Serial library can not be used on a Windows 64bit with Python #227

Open
tikonen opened this issue May 1, 2018 · 1 comment

Comments

@tikonen
Copy link

@tikonen tikonen commented May 1, 2018

It looks like processing is using incorrect dll search path on a 64bit architecture.

Following code fails.

add_library('serial')

from java.lang import System
System.loadLibrary("jSSC-2.8") #the native library we need

def setup():
    print Serial.list()

with an error

processing.app.SketchException: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\processing-3.3.7\modes\java\libraries\serial\library\windows32\jSSC-2.8.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)

However if I delete the 32-bit DLL the code works.
C:\Program Files (x86)\processing-3.3.7\modes\java\libraries\serial\library\windows32\jSSC-2.8.dll

Output is as expected
array(java.lang.String, [u'COM1', u'COM8'])

@kschoenborn

This comment has been minimized.

Copy link

@kschoenborn kschoenborn commented Aug 7, 2018

Hi tikonen,
Confirmed. I had the same issue on a Win10 64bit Laptop. Deleting windows32\jSSC-2.8.dll works perfectly. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.