pyrevitlabs / pyRevit

Rapid Application Development (RAD) Environment for Autodesk Revit®
http://wiki.pyrevitlabs.io
GNU General Public License v3.0
1.24k stars 325 forks source link

pyRevit conflict with Rhino inside Revit and Honeybee/Ladybug tools #2119

Open OFSFTurkcan opened 4 months ago

OFSFTurkcan commented 4 months ago

🐞 Describe the bug

Hello, at our office we use Rhino Inside Revit with Revit 2022.1 to run energy and daylight simulations using the Ladybug/Honeybee plugins. After the installation of pyRevit on our PC, the Honeybee energy components were not working (_sqlite3 not found). There are many issues on this on the Ladybug and McNeel Rhino discourse fora. There is some form of interference as both plugins use IronPython.

Uninstalling pyRevit fixed this issue, so somehow there is a conflict between pyRevit and Rhino Inside Revit trying to use (different?) versions of IronPython and Python. I wanted to share that with you guys as well :)

Our build was Revit 2022.1, Rhino Inside Revit 1.19, Ladybug/Honeybee version 1.6.0.

jmcouffin commented 4 months ago

Routing this to the honeybee and rhino team would be appropriate?

To reproduce, we would need to own rhino and honeybee licences which we don't (speaking for myself). Do you have logs from Revit,rhino inside,honeybee,pyRevit?

jmcouffin commented 4 months ago

And please provide a proper bug report with the info asked in the issue template. We are supporting this project on our free time, so help us by giving us the proper data to debug

OFSFTurkcan commented 4 months ago

Hello jmcouffin, thank you for your response. Sorry, I'm not too familiar with github and I'm not familiar with creating logs. I have informed the McNeel team and LB/HB teams will be informed by someone else.

My feeling tells me however the issue will need to be solved through Revit, as the same revit file is trying to use two different plugins that connect to two different IronPython or Python versions (one from pyRevit and one from Rhino Inside Revit) which is causing some sort of disruption.

jmcouffin commented 3 months ago

@OFSFTurkcan any news from the other side ?

OFSFTurkcan commented 3 months ago

Hello jmcouffin, sadly there is no update on their side. I shared it on the McNeel and Ladybug discourses. Additionally Japhy from McNeel said he would get in touch with Ehsan on this issue. Perhaps you can get in touch with Japhy? And otherwise Ehsan or Chris Mackey to check up on this issue? Or I can DM Japhy to get in touch with you!

My post on the fora were: https://discourse.ladybug.tools/t/solution-for-ladybug-honeybee-not-working-with-rhino-inside-revit/24114/3 https://discourse.mcneel.com/t/problems-with-rhino-inside-revit-and-python-based-plugins-honeybee/107636/12

guusgooskens commented 2 months ago

This might be a related issue with pollination, the cloud version of honeybee/ladybug, that was using a similar ironpython engine. It was fixed by them by switching to IronPython 3.4 :) https://discourse.pollination.cloud/t/pyrevit-conflict-with-latest-pollination-revit-plugin/3335

jmcouffin commented 2 months ago

@OFSFTurkcan let me know if that fixes the issue and I can close it

OFSFTurkcan commented 1 month ago

Hello, apologies for my late reply (was shortly ill), we are not using Pollination so it should not be related to that. We will try installling/switching to IronPython 3.4 and see if it solves the issue.