You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm talking about the path parameter of fs.symlink, which is destLibTensorFlowPath here.
Using an absolute path prevents moving the node_modules folder, e.g. when packaging deployable archives for cloud use.
For instance and as an additional reference, npm copy will break tfjs-node when it lands in main.
Attempting to run tfjs will throw libtensorflow.so.2: cannot open shared object file: No such file or directory.
I have checked the symlinks and they are indeed invalid.
System information
"@tensorflow/tfjs-node": "^3.20.0"
"@tensorflow/tfjs-node": "^3.20.0"
Describe the problem
Symlinks seem to use an absolute path:
tfjs/tfjs-node/scripts/deps-stage.js
Lines 59 to 63 in d279946
I'm talking about the
path
parameter offs.symlink
, which isdestLibTensorFlowPath
here.Using an absolute path prevents moving the
node_modules
folder, e.g. when packaging deployable archives for cloud use.For instance and as an additional reference, npm copy will break
tfjs-node
when it lands in main.Attempting to run
tfjs
will throwlibtensorflow.so.2: cannot open shared object file: No such file or directory
.I have checked the symlinks and they are indeed invalid.
Symlinks can use a relative path, as seen in the first example at https://nodejs.org/api/fs.html#fssymlinktarget-path-type-callback.
Provide the exact sequence of commands / steps that you executed before running into the problem
tfjs-node
node_modules
,package.json
and anindex.js
that referencestfjs
index.js
The text was updated successfully, but these errors were encountered: