Grasshopper

algorithmic modeling for Rhino

Hello,

I just got Honeybee and Ladybug installed.  The Honeybee core library component is throwing an error:

            {0;0}
0. Runtime error (ImportException): No module named fcntl
1. Traceback:
  line 431, in <module>, "C:\Python27\Lib\subprocess.py"
  line 78, in script

I'm on a Windows10 OS.

I've added a lil' screen shot so you can see exactly what I'm looking at.

Any thoughts?

thank you!

Dave

Views: 1014

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Hi David,

Can you open the attached file and send me a screen capture of the output. Your component is trying to load subprocess from Python and not IronPython library. Attached file outputs path to sys.path and PYTHONPATH on your system.

Mostapha

Attachments:

Hi Mostapha,

thanks.  Here is the screenshot from PythonPath.gh.

Dave

Attachments:

It is true that there is no PYTHONPATH env variable set.

Sorry. I should have tested them one by one. Can you try the attached file instead. We may need to overwrite sys.path on your system.

Attachments:

            {0;0}
0. C:\Python27\Lib
1. c:\Program Files\Rhinoceros 5 (64-bit)\Plug-ins\IronPython\Lib
2. C:\Users\buildlab\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib
3. C:\Users\buildlab\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts

Thanks. That shows why it's happening. For some reason you have Python27 as the first item. This should be fixed in GHPython but for now we can move ```import sys``` up as the first import and then sort sys.path by Python27 to make sure it will be moved to the bottom of the list.

import sys
sys.path = sorted(sys.path, key=lambda p: p.find("Python27"))

Attached file has a modified Honeybee_honeybee component. Let me know if the component executes with no issues and we can add this as part of the official release.

Mostapha

Attachments:

Hey!

yes - that seems to have made it happy:

     
17. Hooohooho...Flying!!
Vviiiiiiizzz...

Great! Thanks for checking. I pushed the modified honeybee_honeybee to github. I hope it doesn't happen but you may need to update honeybee and ladybug to avoid version conflicts.

hey mostapha!

I am having the same issue with ladybug.

This is what is showing up with the same runtime error (importexception). Could you please help me?

appreciate your help! thank you!

RP

C:\programfiles\rhinoceros 5 (64-bit)\plug-ins\ironpython\lib

C:\users\haowen wu\appdata\roaming\mcneel\rhinoceros\5.0\plug-ins\ironpython (814d908a=e25c-493d-97e9-ee3861957f49)\settings\lib

C:\users\haowe wu\appdata\roaming\mcneel\rhinoceros\5.0\scripts

Hi Rebecca, Which version of Ladybug are you using? Can you post the full error message?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service