gramaziokohler / compas_xr

COMPAS XR streamlines extended reality workflows to ease the implementation of human-machine collaborative applications in architectural research and educational environments.
https://gramaziokohler.github.io/compas_xr/
MIT License
7 stars 0 forks source link

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

Open Hanning-Liu opened 1 week ago

Hanning-Liu commented 1 week ago

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):

Thank you for your help in advance!

Hanning-Liu commented 1 week ago

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 commented 1 week ago

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 https://github.com/compas-dev/compas/issues/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 commented 1 week ago

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: https://github.com/compas-dev/compas/issues/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.