-
Notifications
You must be signed in to change notification settings - Fork 18
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
JAVA_HOME error while packaging for openSUSE #106
Comments
Setting environment variable We do publish wheels to PyPi for Linux Python (3.9|3.10|3.11) (x86_64|aarch64) - are you not able to depend on these? Our official build procedure runs on GH Actions, and essentially runs |
Thanks for the reply. Unfortunately the DEBUG did only help a little.
After also installing maven the build still fails:
Not sure what maven requires inside the JAVA_HOME, but it seems like it cannot find it... |
...
JDK_HOME_VARS = ('JPY_JAVA_HOME', 'JPY_JDK_HOME', 'JAVA_HOME', 'JDK_HOME',)
...
def find_jdk_home_dir():
"""
Try to detect the JDK home directory from Maven, if available, or use
dedicated environment variables.
:return: pathname if found, else None
"""
for name in JDK_HOME_VARS:
jdk_home_dir = os.environ.get(name, None)
if jdk_home_dir \
and os.path.exists(os.path.join(jdk_home_dir, 'include')) \
and os.path.exists(os.path.join(jdk_home_dir, 'lib')):
return jdk_home_dir
logger.debug('Checking Maven for JAVA_HOME...')
... The procedure for installing is checking to make sure the "include" and "lib" dir exists - I see in your setup the "include" dir doesn't. There may be an additional openjdk package you may need to install? (One that is JDK oriented, or src oriented?) |
Thanks, I'll have a look. |
Aaah, that seems to have done the trick. I was missing the java-XX-openjdk-devel package... |
Hi all,
I am trying to package ansible-rulebook for openSUSE, which has jpy as a transient dependency.
I get an error during build, where jpy complains about JAVA_HOME not being set properly. I set it so it does not point to a link (which seems to cause problems, according to #86). But even now it fails:
I tried different openjdk versions (11, 17, 20) and set JAVA_HOME accordingly. But I get the error each time.
Also, the build runs three times (for python 3.9, 3.10 and 3.11) and all of them fail with the same error.
Any idea what goes wrong there? What am I missing?
The text was updated successfully, but these errors were encountered: