When I try to install a python3 pip package in the ScriptEditor, the application freezes when I run the script.
This also happens for other libaries (e.g. “numpy”), when I include a version number (e.g. “firebase-admin==6.4.0”) and when I start rhino8 in safe mode.
About 4 months ago I was able to install and use this library with. Can anyone please help me solve this?
Thanks, Tim
#! python3
"""Requirements"""
# r: firebase-admin
import rhinoscriptsyntax as rs
import scriptcontext as sc
import math
import System
import System.Collections.Generic
import Rhino
"""Import packages"""
import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
solution by @eirannejad is still valid. The Issue below was casued by typo
the isolated test worked for me, but when implemented in my scripts, the -scriptEditor run "path/to/my_file.py" command seems to exit or crash without warning.
I see this information in the logger, and to me it seems that there’s an issue with installing the package.
I tried this many times on different Rhino versions and could not replicate this. The package is large and has many dependencies so it takes a bit to install.
Would you mind trying to install using python and pip in the rhino python 3 runtime directory?
Open powershell
Run C:\Users\info\.rhinocode\py39-rh8\python.exe -m pip install --target "C:\Users\info\.rhinocode\py39-rh8\site-envs\default-nh_u8QdC" "firebase_admin"
I’m trying to see if pip errors on this install at all