Closed wiwichips closed 3 months ago
need to run npm i dcp-client@develop
to use dcp-client with PythonMonkey
get TypeError: cyclic object value if try to print it in JS code -> dcp_client/index.py See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cyclic_object_value
indeed trouble is in JSObjectProxy_repr
trouble is while parsing dcpConfig such as the one at https://scheduler.distributed.computer/etc/dcp-config.js we balk at processing: "identity": Promise.resolve('0xC6Ff3Ada812725d3F63661E206D28356adF40eFC')
printing out just globalThis is also a problem
Issue type
Bug
How did you install PythonMonkey?
Source
OS platform and distribution
Ubuntu 22.04.4 LTS x86_64
Python version (
python --version
)3.10
PythonMonkey version (
pip show pythonmonkey
)0.6.1.dev220+80e90a4
Bug Description
I get a segmentation fault when I attempt to print
dcp['dcp-env'].global
Standalone code to reproduce the issue
Relevant log output or backtrace
Additional info if applicable
What branch of PythonMonkey were you developing on? (If applicable)
main