Skip to content

JDK 16 does not like the sys module #162

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

Closed
wbridewell opened this issue May 4, 2021 · 3 comments
Closed

JDK 16 does not like the sys module #162

wbridewell opened this issue May 4, 2021 · 3 comments

Comments

@wbridewell
Copy link

Python's sys module gives the same error as numpy on 2.0.0-beta-15 and JDK 16.

user=> (require '(libpython-clj2 [require :refer [require-python]]))
...
user=> (require-python 'sys)
Execution error (IllegalArgumentException) at jdk.internal.foreign.MemoryAddressImpl/asSegmentRestricted (MemoryAddressImpl.java:99).
Invalid size : 0
user=> (require-python 'numpy))
Execution error (IllegalArgumentException) at jdk.internal.foreign.MemoryAddressImpl/asSegmentRestricted (MemoryAddressImpl.java:99).
Invalid size : 0
@cnuernber
Copy link
Collaborator

That is fixable :-). Thanks for the issue.

@cnuernber
Copy link
Collaborator

Fixed - I tested against JDK-16 and the unit tests now pass. I forgot the JNA pathway is the default now which makes this work once I fixed the above issue.

@cnuernber
Copy link
Collaborator

Example jvm-opts I had to use is in deps.edn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants