Skip to main content
Question

Install Rhino Module for Pyhton.


kidega
Contributor
Forum|alt.badge.img+8

Hi,

I wounder how I could manage to install the Rhino module for python (external package)? I have tried to look up info from:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Desktop/Workbench/Installing-Python-Packages.htm

and:

https://community.safe.com/s/question/0D54Q000080haVOSAY/how-to-install-external-python-packages.

 

What I seem to manage to do is to install the module with the following command:

fme.exe python -m pip install rhino --target C:\\Users\\*\\*\\Documents\\FME\\Plugins\\Python\\python37

 

The module seem to be installed at the directory, but when I try to import it (import Rhino) using python caller I get the error msg:

|Python Exception <ModuleNotFoundError>: No module named 'Rhino'.

The Rhino module is a non-universal package and I have tried to verify python interpreter to both 3.7+ and 3.9+ when running pyhton caller. I am using FME v2022.1.2.0 64-bit.

 

When I used to command line it prints;

"INFORM: Using python interpreter **\\python39.dll".

"INFORM: Python version 3.9 loaded successfully".

Successfully installed rhino-0.0.5.

 

If I should download and use a seperate Pyhton interpreter, what interpreter version would you suggest?

 

Thanks alot!

 

 

 

5 replies

david_r
Celebrity
  • January 3, 2023

Unless I've found the wrong Rhino package, the project hasn't been maintained since 2015: https://github.com/trendels/rhino

Rhino seems to require httplib, which was renamed to http.client in Python 3, and based on this I suspect that Rhino isn't compatible with Python 3.

 


kidega
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • January 3, 2023
david_r wrote:

Unless I've found the wrong Rhino package, the project hasn't been maintained since 2015: https://github.com/trendels/rhino

Rhino seems to require httplib, which was renamed to http.client in Python 3, and based on this I suspect that Rhino isn't compatible with Python 3.

 

Hi @david_r​ ,

Thanks for quick reply! Ah that might then be the issue. Thanks.


kidega
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • January 4, 2023
kidega wrote:

Hi @david_r​ ,

Thanks for quick reply! Ah that might then be the issue. Thanks.

Hi @david_r​ ,

Do you know if the module rhino3dm module is working with a calling function in Pyhton 3 with FME?

 

 


david_r
Celebrity
  • January 5, 2023
kidega wrote:

Hi @david_r​ ,

Thanks for quick reply! Ah that might then be the issue. Thanks.

Sorry, I do not have any experience with this package. But at least the github looks active, which is always a very good sign.


kidega
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • January 5, 2023
kidega wrote:

Hi @david_r​ ,

Thanks for quick reply! Ah that might then be the issue. Thanks.

Thanks anyways for helping out clarifying things.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings