Open tobiasgerstenberg opened 6 years ago
Looks like we didn't publish the package on npm. Try
mkdir -p ~/.webppl
npm install --prefix ~/.webppl webppl-dp
npm install --prefix ~/.webppl agentmodels/webppl-agents
to install directly from Github?
Note: I haven't tested the package in a long time. It's possible that it has become incompatible with newer versions of webppl or other required packages.
thanks @stuhlmueller that worked!
however, when trying to run the test command: webppl --require webppl-dp --require . tests/tests.wppl
it throws the following error:
/usr/local/lib/node_modules/webppl/src/pkg.js:88
throw new Error('Could not find WebPPL package: ' + name_or_path);
^
Error: Could not find WebPPL package: .
at readFirst (/usr/local/lib/node_modules/webppl/src/pkg.js:88:13)
at readFirst (/usr/local/lib/node_modules/webppl/src/pkg.js:84:16)
at Object.read (/usr/local/lib/node_modules/webppl/src/pkg.js:96:14)
at /usr/local/lib/node_modules/webppl/webppl:131:25
at Array.map (<anonymous>)
at main (/usr/local/lib/node_modules/webppl/webppl:130:45)
at Object.<anonymous> (/usr/local/lib/node_modules/webppl/webppl:161:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
any idea how to fix this?
You could try running it from the directory it's installed in:
cd ~/.webppl/node_modules/webppl-agents/
webppl --require webppl-dp --require . tests/tests.wppl
Unfortunately, I then run into issue #62 which I don't immediately know how to fix. It's probably not difficult to fix with some googling for someone with basic knowledge of the node/npm package system.
Sorry for the terrible instructions and state of the package.
same here. also have #62 in that case. will see whether i can find someone to look into it :)
Great!
I'm going to reopen this issue since we still need to fix the README.
I'm getting the following error trying to install:
Here is the output of the log: