-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rhino scripts default install path is wrong for Rhino 8 #1351
Comments
I guess ScriptEditor usage for Rhino8 is still experimental as stated in the Compas documentation: compas/src/compas_rhino/install.py Line 35 in 08f0624
Python library installation directory and Grasshopper are two different directories. What works for me is following: Grasshopper for ScriptEditor Rhino8 CPython on Windows: on mac or the package manager directory (manual upload to Rhino). The python libraries I install as described in compas main page: |
@petrasvestartas I followed this thread and it suggests adding |
This is very good news! Thanks @ChiaChing-Yen ! |
I've run into the same issue: # In Rhino 8 there is no scripts folder
if version == "8.0":
installation_path = compas_rhino._get_default_rhino_ironpython_sitepackages_path(version)
else:
installation_path = compas_rhino._get_rhino_scripts_path(version) So @obucklin suggestion makes perfect sense to install into the In [6]: compas_rhino._get_rhino_scripts_path("8.0")
Out[6]: '/Users/jelle/Library/Application Support/McNeel/Rhinoceros/8.0/scripts' In my view, this is a pressing issue, given that |
not sure i understand what is being proposed. the current installation mechanism is not wrong. in Rhino 8, COMPAS packages should indeed be installed in the site packages folder of the Python flavour and version you intend to use. there are two reasons for this.
if there are other problems with correct versions of packages not being found by other components of Rhino, i would prefer trying to solve those problems specifically. changing the installation mechanism is not the solution in my opinion... |
Sorry, I'm late for the party. @tomvanmele could you please elaborate on point 1.? I don't quite get it. I find installing compas to 3 places is necessary in Rhino8 as there seems to be 3 different interpreters (or 2 in 3 environments):
And the corresponding locations are:
I do agree we should utilize the Another related issue I'm having is I cannot for the life of me import Any of you stumbled upon that or had better luck? |
python -m compas_rhino.install
adds the COMPAS packages to~/.rhinocode/py27-rh8/Lib/site-packages
instead of\AppData\Roaming\McNeel\Rhinoceros\8.0\scripts
. Grasshopper components cannot then import the modules.there is a workaround which is to include
at the top of a python component. This fixes IronPython components.
I'm not sure if it's the same problem, but cpython components built with
invoke build-cpython-ghuser-components
do not instantiate on the canvas and result in aUser Object failed to deserialize
error:Windows 11
Rhino 8 SR6 2024-4-10
COMPAS 2.1.0
Thanks!
The text was updated successfully, but these errors were encountered: