-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No Native Library when Running using CLI #344
Comments
Hello. What are you trying to run exactly, a PSL example? Are you building your own version (I see you are using a development version)? What happens when you use a release version (2.4.0)? |
Hello Eriq, I am trying to run the PSL examples. I tried three with the same results: I am not building my version. I just followed the steps in the Getting Started with PSL: git clone https://github.com/linqs/psl-examples.git
cd psl-examples/simple-acquaintances/cli
./run.sh I tried with version 2.4.0. Still the same error.
I am suspecting that there might be an issue with SQLite driver. However, I could not pin point what exactly it is. |
Humm.... It does look like some issue between Windows and SQLite. Are you using WSL? I could not find anything that looked exactly like your issue in the driver's bug tracker, but this issue (xerial/sqlite-jdbc#791 ) indicates that it may be a configuration issue with the machine. After that, you can try downloading a new version of the driver and putting that in your classpath so it loads before the other driver bundled with the PSL jar: If those don't work and you are not using WSL, then we could try it in WSL. |
It seems like it is a Windows "thing". I just ran it in a Debian Linux. Both 3.0.1-SNAPSHOT and 2.4.0 work. I noticed, though, that I am getting a warning about the LAPACK library. |
Interesting, thanks for checking. The LAPACK warning (if it is the one I think it is) is just saying that no native LAPACK implementation is installed on the machine, so it will fall back to a native Java implementation. |
When I try to run the shell script I get the following error:
Running PSL Inference.
790 [main] INFO org.linqs.psl.runtime.Runtime - PSL Runtime Version 3.0.1-SNAPSHOT-b33adfd
1992 [main] ERROR com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception during pool initializat
ion.
java.sql.SQLException: Error opening connection
at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:258) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
at org.sqlite.SQLiteConnection.(SQLiteConnection.java:61) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
at org.sqlite.jdbc3.JDBC3Connection.(JDBC3Connection.java:23) ~[psl-cli-3.0.1-SNAPSHOT.ja
r:?]
at org.sqlite.jdbc4.JDBC4Connection.(JDBC4Connection.java:19) ~[psl-cli-3.0.1-SNAPSHOT.ja
r:?]
at org.sqlite.JDBC.createConnection(JDBC.java:104) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
at org.sqlite.JDBC.connect(JDBC.java:77) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:121) ~[psl-cli-3
.0.1-SNAPSHOT.jar:?]
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) ~[psl-cli-3.0.1-SNAPSHOT.ja
r:?]
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) ~[psl-cli-3.0.1-SNAPSHOT.jar
:?]
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) ~[psl-cli-3.0.1-SNAPS
HOT.jar:?]
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) ~[psl-cli-3.0.1-SNAPSHO
T.jar:?]
at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) ~[psl-cli-3.0.1-SNAPSHOT.jar:?
]
at com.zaxxer.hikari.HikariDataSource.(HikariDataSource.java:81) ~[psl-cli-3.0.1-SNAPSHOT
.jar:?]
at org.linqs.psl.database.rdbms.driver.DatabaseDriver.(DatabaseDriver.java:59) ~[psl-cli-
3.0.1-SNAPSHOT.jar:?]
at org.linqs.psl.database.rdbms.driver.SQLiteDriver.(SQLiteDriver.java:53) ~[psl-cli-3.0.
1-SNAPSHOT.jar:?]
at org.linqs.psl.database.rdbms.driver.SQLiteDriver.(SQLiteDriver.java:43) ~[psl-cli-3.0.
1-SNAPSHOT.jar:?]
at org.linqs.psl.runtime.Runtime.initDataStore(Runtime.java:246) ~[psl-cli-3.0.1-SNAPSHOT.jar:?
]
at org.linqs.psl.runtime.Runtime.runInferenceInternal(Runtime.java:403) ~[psl-cli-3.0.1-SNAPSHO
T.jar:?]
at org.linqs.psl.runtime.Runtime.runInference(Runtime.java:364) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
at org.linqs.psl.runtime.Runtime.runInternal(Runtime.java:172) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
at org.linqs.psl.runtime.Runtime.run(Runtime.java:122) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
at org.linqs.psl.runtime.Runtime.run(Runtime.java:99) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
at org.linqs.psl.cli.Launcher.run(Launcher.java:126) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
at org.linqs.psl.cli.Launcher.main(Launcher.java:142) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
at org.linqs.psl.cli.Launcher.main(Launcher.java:130) ~[psl-cli-3.0.1-SNAPSHOT.jar:?]
Caused by: java.lang.Exception: No native library found for os.name=Windows .....
I am using Windows with JDK 1.8.0 (Amazon Corrto) and Maven 3.9.6.
The text was updated successfully, but these errors were encountered: