Open tensor-programming opened 1 year ago
Fixed by bumping up these deps:
deno_core = "0.187.0"
deno_web = "0.136.0"
deno_fetch = "0.129.0"
deno_console = "0.105.0"
deno_webidl = "0.105.0"
deno_url = "0.105.0"
deno_websocket = "0.110.0"
Leads to another error however,
Error: Error: Could not open library: The specified module could not be found.
at new DynamicProvider (ext:mashin_core/40_ffi.js:14:9)
at new Provider (https://mashin.run/std@0.1.0/sdk/resource.ts:20:9)
at new Provider (https://raw.githubusercontent.com/tensor-programming/mashing-test/dev/mod.ts:35:9)
at https://raw.githubusercontent.com/tensor-programming/mashing-test/dev/examples/my_provider.ts:4:18
at eventLoopTick (ext:core/01_core.js:181:11)
I found the issue overall with windows. I was able to run both my_provider.ts
and my_provider_x500.ts
by manually modifying the mod.ts
file and replacing the LOCAL_PATH
with a direct path to the .dll
file for the lib.
On windows the files created for a cdylib
are .dll
and not .dynlib
or .so
files. Also for some reason, instead of appending lib in front of the name of the file, they just use the project name directly. As seen below.
The header here https://github.com/nutshimit/mashin/blob/d3f0fe6bc3d0234ce265fdd39dcc9f50109bf12d/cli/src/tools/bindgen.rs#L107-L144 will have to be conditionally compiled for windows.
Is there an existing issue?
General Was attempting to run the program.
Context Error occurs when trying to run both locally and also against a web source. Also, the official example provider seemingly has its
mod.ts
missing because it was included in the gitignore. Not sure if this was deliberate.Stacktrace
Additional Information
Can be recreated on windows by executing
mashin run
on a provider that is local or remote.Solution No response
Are you willing to help with this request? Yes, I can help with this if needed.