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

Mac OS call to 'require' fails #74

Open
profmori opened this issue Jan 27, 2023 · 2 comments
Open

Mac OS call to 'require' fails #74

profmori opened this issue Jan 27, 2023 · 2 comments

Comments

@profmori
Copy link

When trying to run on Mac the following error occurs. The same code works on Windows, so we are unsure what the issue is. The package trying to be used is found in a subfolder called pokemon-showdown, but specifying location does not seem to be necessary on Windows:

  JavaScript Error  Call to 'require' failed:
> javascript.require('pokemon-showdown')
  at <module> (/Users/xxx/Documents/Twogithub/PokemonLearning/main.py:10)
> 

... across the bridge ...

  at importModuleDynamicallyWrapper (node:internal/vm/module:438:21)
  at importModuleDynamically (node:internal/modules/cjs/loader:1151:29)
  at ESMLoader.import (node:internal/modules/esm/loader:525:22)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
  at ESMLoader.resolve (node:internal/modules/esm/loader:842:30)
  at nextResolve (node:internal/modules/esm/loader:163:28)
  at defaultResolve (node:internal/modules/esm/resolve:1153:11)
  at moduleResolve (node:internal/modules/esm/resolve:938:20)
  at packageResolve (node:internal/modules/esm/resolve:889:9)
  at new NodeError (node:internal/errors:400:5)
  Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'pokemon-showdown' imported from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/javascript/js/deps.js
> ^
🌉 Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'pokemon-showdown' imported from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/javascript/js/deps.js

Process finished with exit code 1

@extremeheat
Copy link
Owner

This is strange, it seems to be working on our CI. Will look into this.

@profmori
Copy link
Author

Hi, any development on recreating the issue?

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

2 participants