Can we use compas in PyChram?
pycharm is a really polished IDE for python, and since compas
is basically a python lib, sure.
when working with rhino
+ GH
, just load a python module, that way the ergonomics of an IDE go a long way
Traceback (most recent call last):
File “D:\Program Files\JetBrains\PyCharm 2023.2\plugins\python\helpers\pydev\pydevconsole.py”, line 364, in runcode
coro = func()
File “”, line 1, in
File “D:\Program Files\JetBrains\PyCharm 2023.2\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py”, line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File “D:\Program Files\JetBrains\PyCharm 2023.2\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py”, line 18, in execfile
exec(compile(contents+“\n”, file, ‘exec’), glob, loc)
File “E:\PythonProject\Compas_test\Mesh Supported by a Simple Arch.py”, line 47, in
arch = NurbsCurve.from_points([[5, 0, 0], [5, 5, 5], [5, 10, 0]])
File “D:\ProgramData\Anaconda3\envs\compas-dev\lib\site-packages\compas\geometry\curves\nurbs.py”, line 251, in from_points
return new_nurbscurve_from_points(cls, points, degree=degree)
File “D:\ProgramData\Anaconda3\envs\compas-dev\lib\site-packages\compas\plugins.py”, line 287, in wrapper
return func(*args, **kwargs)
File “D:\ProgramData\Anaconda3\envs\compas-dev\lib\site-packages\compas\geometry\curves\nurbs.py”, line 34, in new_nurbscurve_from_points
raise PluginNotInstalledError
compas.plugins.PluginNotInstalledError I have a promble
May I ask what is causing this
outside of Rhino, COMPAS uses OCC as the underlying kernel from Nurbs and Brep geometry, through compas_occ
. however, compas_occ
is not installed by default since it is not used for anything else than Nurbs and Brep. installing compas_occ
in your conda environment should make this go away…