Skip to content
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

Error at importing Autopilot with M1 Mac #54

Open
greenmoonslug opened this issue Aug 18, 2022 · 0 comments
Open

Error at importing Autopilot with M1 Mac #54

greenmoonslug opened this issue Aug 18, 2022 · 0 comments

Comments

@greenmoonslug
Copy link

file:

//autopilot1.dn.js
import * as autopilot from "https://deno.land/x/autopilot@0.4.0/mod.ts";

when I run this:

% deno --unstable run --allow-ffi --allow-env --allow-read autopilot1.dn.js
error: Uncaught (in promise) TypeError: Error parsing args at position 0: data did not match any variant of untagged enum ForeignSymbol
  return Deno.dlopen(file.path, symbols);
              ^
    at new DynamicLibrary (deno:ext/ffi/00_ffi.js:286:39)
    at Object.dlopen (deno:ext/ffi/00_ffi.js:390:12)
    at Module.prepare (https://deno.land/x/plug@0.4.0/plug.ts:77:15)
    at async https://deno.land/x/autopilot@0.4.0/bindings/bindings.ts:8:14
  • Device: Mac mini (M1, 2020)
  • OS: MacOS Monterey 12.5
  • Deno 12.4.3
  • Autopilot 0.4.0

Note

According to README.md, the command should be:

% deno run --unstable --allow-ffi autopilot1.dn.js

Though, Deno.dlopen isn't defined when I put --unstable after run.
When I just put --unstable before run, that requests:

  • env access to "DENO_DIR"
  • env access to "HOME"
  • read access to "~/Library/Caches/deno/plug/https/github.com/c7ce6d2dafee0de7e635a6112ad5903d788bace477d867b0a342e540acf23633.dylib"
  • read access to "~/Library/Caches/deno/plug/https/github.com"

And when I arrow all of these, same error causes as with --allow-env --allow-read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant