Skip to content
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

Successfully installed the package, but the GH components report errors. #13

Open
Hanning-Liu opened this issue Jun 26, 2024 · 3 comments

Comments

@Hanning-Liu
Copy link

Describe the bug

Successfully installed the package, but the GH components report errors saying "No module named compas_eve", "No module named compas_timber.fabrication" etc.

To Reproduce

Steps to reproduce the behavior:

  1. Create a virtual environment using Conda then install Compas-XR using pip
  2. Install Compas-XR for Rhino environment
  3. Open Rhino7 or Rhino8 then open Grasshopper
  4. See red components

Expected behavior

The compas GH component should recognize where its dependencies are.

Screenshots
image
image
image
image
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Python version 3.11.9
  • Python package manager pip

Thank you for your help in advance!

@Hanning-Liu
Copy link
Author

Additional Information

In Rhino8 GH, the IronPython component can find the compas_xr package, while the Python3 component couldn't. Just as the PATH variable showing above.

image

@gonzalocasas
Copy link
Member

Hey! Thanks for filing this one! Even before today's official launch! That's quite cool!
About the issue that you report, there are two different parts to it: one is the issues when using IronPython in Rhino 8, and a different one is the one using Python 3 in Rhino 8.

Regarding the first one, I believe the issue is actually part of the COMPAS core installation step, and it sounds similar to this issue compas-dev/compas#1351

Regarding Python 3 on Rhino, compas_xr is not yet tested on it, so I would recommend sticking to IronPython for the time being until we add full support for it. In any case, the installation of compas libraries for Python 3 on Rhino 8 is not done using the usual python -m compas_rhino.install command, at least for now, there's a separate installation mode for that. It might also be possible to use the # r: syntax of rhino 8 to install, but again, this isn't really tested on our side yet. (We're getting there though!)

@Hanning-Liu
Copy link
Author

Thank you for your help and kind words! I am doing my Master's research about XR, and your work always inspires me. I really wish I could be at the launch speech. Will there be a recording available to watch on YouTube?

I've tried the method metioned in this issue: compas-dev/compas#1351. The legacy ghpython component can find "compas" related packages for now.

But there is a new problem:

image

I solve it by making the following change:

image

I think it's because the MQTTnet.dll file is not in the same directory as the mqtt_cli.py file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants