ladybug-tools / ladybug-dynamo

:beetle: :blue_book: Ladybug library and plugin for DynamoBIM
http://www.ladybug.tools/ladybug.html
GNU General Public License v3.0
31 stars 13 forks source link

Dynamo 2.0.3 | Ladybug 0.2.1 #43

Open RaquelMirraSantos opened 4 years ago

RaquelMirraSantos commented 4 years ago

Hi, I tried using the Ladybug 0.2.1 package for the first time in Revit 2020 with Dynamo 2.0.3, and the two nodes that I tried (Date Calculate HOY, and Import Location) were giving me the same error:

ERROR:
    invalid literal for float(): DynamoForRevit

If you think this is a bug submit an issue on github.
https://github.com/ladybug-tools/ladybug-dynamo/issues
and include below error message:

Traceback (most recent call last):
  File "<string>", line 55, in <module>
  File "<string>", line 18, in tryGetPluginPath
ValueError: invalid literal for float(): DynamoForRevit

Could you provide me some guidance?

ib990 commented 4 years ago

me too same problem here image image

metobb commented 4 years ago

Hi! I have the same issue.. I am using student version of Dynamo Revit.

Any solution for this case?

image

ptricktk commented 4 years ago

Running Revit 2021 with latest updates. Still the same issue. I do not know what to do about this. We tried installing Ladybug-Core with pip to see if that solved the issue, but no luck.

Ladybug is running fine in Rhino/Grasshopper on the same machine.

Babinoff commented 4 years ago

It's all about "import and prepare py code" node in all ladybug nodes, what dont find package *.py files correctly anymore. Made some sample node to fix it, put it in "ladybug-fixer" package. изображение изображение изображение

metobb commented 4 years ago

@Babinoff Thanks for sharing it! I have tried your solution, however I am still getting Null out of ladybugfixer node. Could you tell me if I am missing something in my process?

image

Babinoff commented 4 years ago

I think it's all about the / signs in the file path, you used the \ sign, which needs to be escaped \\ inside the python syntax, try to use / like in my screens.

metobb commented 4 years ago

I downloaded the node from your package "ladybug-fixer", and it worked out :) thanks again!

dh803 commented 4 years ago

@Babinoff Hey, Alex! Thanks for your solution. But in my case, it works for "import location", but not other nodes. I had no idea what's the problem. 15cdb3400ecf34187bd3522cf7c1956 85138b7232aee8605214edf056f55da b32e3e3984b292aaf7e02c4533674ad

Babinoff commented 4 years ago

Did`nt test on all nodes, but sunpath works fine. Maybe better to take Simon version - https://github.com/sbreslav/ladybug-dynamo/tree/simon-fix Arhiv of his files, to simply resave pacakge - https://1drv.ms/u/s!AvhRIUtKr8n2g9Mjq-HG8GEaWYsInA?e=pgAwYH Like this - https://youtu.be/je50RoDQeoQ?t=250

dh803 commented 4 years ago

Thank you Alex. I'll test again!

dh803 commented 4 years ago

@Babinoff Hey Alex. Sorry to bother you again. Thanks to your help, the sun path is working now. But it shows this warning when I'm trying to use Legend Parameters : image

Any idea how to resolve it?

Babinoff commented 4 years ago

@Babinoff Hey Alex. Sorry to bother you again. Thanks to your help, the sun path is working now. But it shows this warning when I'm trying to use Legend Parameters : image

Any idea how to resolve it? I think he's waiting list of API Color and you give him DSCore.Color, which did Colore Range node. https://www.revitapidocs.com/2019/3735f9b9-d477-09ea-25bd-67f34134595f.htm