-
Notifications
You must be signed in to change notification settings - Fork 202
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
ivy dependency not working on windows or linux, native TF code not found on classpath #496
Comments
Do you have other TF-Java dependencies in Ivy? This is the tree I get when depending on TF-Java in Maven:
|
Thanks for quick response! I deleted some unrelated dependencies in the ivy output below:
But I get the same missing native code hook errors.
|
That stack trace is weird because |
Thanks very much for your insights! I have no idea about class loaders or bytedeco. Let me dig deeper. I probably do have multiple versions resulting from opencv and jogl use in this project. And there may be even more javacpp in the static jars we must include (since libs not available by maven central). It may be that we are ignorant of best practices. I'll let you know what I find out. |
@tobidelbruck Please upgrade TensorFlow, JavaCV, OpenCV, HDF5, and any others with a dependency on JavaCPP, to their latest versions. |
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
java -version
): 1.8.1Describe the problem
I'm trying to use tensorflow 2 with ivy.xml in java project. The problem is that the maven download is not complete. It only downloads either 1. no native platform, or 2. if I specify 2 platforms (windows and linux), it only downloads one of them. AND 3. when I manually download the relevant jars, it cannot find the native hooks.
Provide the exact sequence of commands / steps that you executed before running into the problem
I first tried ivy using these dependencies in various combinations, each time making sure to delete existing tensorflow jars from my ivy local cache folder:
Since this did not work (I never got the full set of native jars), I downloaded the jars and put them in my local project jars folder, which is on the classpath.
jars/tensorflow-core-api-0.4.2.jar
jars/tensorflow-core-api-0.4.2-linux-x86_64-gpu.jar
jars/tensorflow-core-api-0.4.2-windows-x86_64-gpu.jar
These jars are added to the project classpath in netbeans 8.2 project dialog
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Here is the log output:
Here is the screenshot showing contents of the linux native jar:
The text was updated successfully, but these errors were encountered: