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
PythonMonkey is not able to require NPM package which requires another npm package.
Standalone code to reproduce the issue
It can be reproduce easily by launching the example on your repo : https://github.com/Distributive-Network/pythonmonkey-examples/tree/main/require-npm-package-from-py
Relevant log output or backtrace
(venv) PS C:\Users\olivierc\Documents\Repositories\pythonmonkey-examples> python .\require-npm-package-from-py\main.py
Traceback (most recent call last):
File "C:\Users\olivierc\Documents\Repositories\pythonmonkey-examples\require-npm-package-from-py\main.py", line 11, in<module>
File "C:\Users\olivierc\Documents\Repositories\pythonmonkey-examples\venv\lib\site-packages\pythonmonkey\require.py", line 353, in require
pythonmonkey.SpiderMonkeyError: Error in file C:\Users\olivierc\Documents\Repositories\pythonmonkey-examples\venv\lib\site-packages\pythonmonkey\node_modules/ctx-modError: module not found -- require('is-number') from C:/Users/olivierc/Documents/Repositories/pythonmonkey-examples/require-npm-package-from-py/node_modules/is-odd/index.js
Additional info if applicable
We tested it on 2 windows (10 and 11) and it does not work but on Linux Ubuntu, it worked like a charm !
What branch of PythonMonkey were you developing on? (If applicable)
No response
The text was updated successfully, but these errors were encountered:
This is likely a bug in the npm ctx-module package. I'm going to need to get access to a Windows box to debug this properly. Anybody have one I can SSH into? :)
Issue type
Bug
How did you install PythonMonkey?
Installed from pip
OS platform and distribution
Windows 10
Python version (
python --version
)3.10.2
PythonMonkey version (
pip show pythonmonkey
)0.3.0
Bug Description
PythonMonkey is not able to require NPM package which requires another npm package.
Standalone code to reproduce the issue
It can be reproduce easily by launching the example on your repo : https://github.com/Distributive-Network/pythonmonkey-examples/tree/main/require-npm-package-from-py
Relevant log output or backtrace
Additional info if applicable
We tested it on 2 windows (10 and 11) and it does not work but on Linux Ubuntu, it worked like a charm !
What branch of PythonMonkey were you developing on? (If applicable)
No response
The text was updated successfully, but these errors were encountered: