compas-Workshops / WS_compas_fea

MIT License
1 stars 0 forks source link

xfunc error with latest Anaconda #1

Open AryanRezaeiRad opened 5 years ago

AryanRezaeiRad commented 5 years ago

Use of xfunc in compas_fea causes the following error with latest Anaconda install:

Message: No JSON object could be decoded

Traceback:
  line 287, in load, "C:\Program Files\Rhino 6\Plug-ins\IronPython\Lib\json\__init__.py"
  line 390, in __call__, "C:\Users\arezaei\Documents\GitHub\compas\src\compas\utilities\xfunc.py"
  line 382, in raw_decode, "C:\Program Files\Rhino 6\Plug-ins\IronPython\Lib\json\decoder.py"
  line 364, in decode, "C:\Program Files\Rhino 6\Plug-ins\IronPython\Lib\json\decoder.py"
  line 352, in loads, "C:\Program Files\Rhino 6\Plug-ins\IronPython\Lib\json\__init__.py"
  line 960, in plot_data, "C:\Users\arezaei\Documents\GitHub\compas_fea\src\compas_fea\cad\rhino.py"
  line 63, in <module>, "C:\Users\arezaei\Documents\GitHub\compas_fea\examples\truss_tower_rhino.py"
AryanRezaeiRad commented 5 years ago

Removing Anaconda and installing CPython works fine.

xarthurx commented 5 years ago

Similar error:

Message: WindowsError

Traceback:
  line 435, in __init__, "C:\Program Files\Rhino 6\Plug-ins\IronPython\Lib\subprocess.py"
  line 379, in __call__, "C:\Users\xliot\source\repos\GKR\compas\src\compas\utilities\xfunc.py"
  line 960, in plot_data, "C:\Users\xliot\source\repos\GKR\compas_fea\src\compas_fea\cad\rhino.py"
  line 75, in <module>, "C:\Users\xliot\source\repos\NCCR_FEA_Workshop\examples\example_shell.py"
andrewliew commented 5 years ago

Should now be fixed, using new rpc Proxy instead of XFunc. Looks to be working fine, all XFunc errors should be gone.

xarthurx commented 5 years ago

Hi Andrew, thanks for the update. Though I got new issue:

Message: WindowsError

Traceback:
  line 435, in __init__, "C:\Program Files\Rhino 6\Plug-ins\IronPython\Lib\subprocess.py"
  line 143, in __init__, "C:\Users\xliot\source\repos\COMPAS\compas\src\compas\rpc\proxy.py"
  line 241, in start_server, "C:\Users\xliot\source\repos\COMPAS\compas\src\compas\rpc\proxy.py"
  line 37, in <module>, "C:\Users\xliot\source\repos\COMPAS\compas_fea\src\compas_fea\cad\rhino.py"
  line 2, in <module>, "C:\Users\xliot\source\repos\COMPAS\NCCR_FEA_Workshop\examples\example_tets.py"

same for the other example.