@eirannejad I would like to import the grass package from conda-forge. You had suggested trying conda_interop, but I’m having trouble. The grass package is only for Mac and Linux currently, so I’d like to install and activate the environment on Mac or WSL. Any advice would be most helpful.
import rhinocode
import conda_interop as ci
env = r"\\wsl.localhost\Ubuntu\home\baharmon\miniconda3\envs\grass"
ci.append_env(env)
But I get the error system cannot find the path. Any advice?
Note, I also tried on Rhino 8 for Mac, but got the error:
File "/Users/baharmon/.rhinocode/py39-rh8/site-interop/conda_interop/__init__.py", line 18, in append_env
os.add_dll_directory(op.join(conda_env_path, r'Library\bin'))
AttributeError: module 'os' has no attribute 'add_dll_directory'
I should also note that Conda Python interpreter paths on Mac and WSL are in bin/python, not Library\bin. Should I try adapting this approach you suggested to @Petras_Vestartas, but change the path? What exactly should the path point to? The interpreter? The site packages?
Thanks, Brendan
3 posts - 2 participants