HydraShare / hydra

Hydra is a web platform to share your example files from Grasshopper and Dynamo
http://hydrashare.github.io/hydra/
MIT License
69 stars 151 forks source link

Runtime Error: expected string got NoneType #45

Open lin-ycv opened 2 years ago

lin-ycv commented 2 years ago

Followd the steps in wiki, but got an error image

Runtime error (TypeErrorException): expected string, got NoneType

Traceback:
  line 37, in isfile, "C:\Program Files\Rhino 7\Plug-ins\IronPython\Lib\genericpath.py"
  line 147, in checkTheInputs, "<string>"
  line 483, in script

How do I solve this problem?

Stubbleman commented 1 year ago

I replace the line 147 rhinoDocPath = rc.RhinoDoc.ActiveDoc.Path by rhinoDocPath = ghenv.Component.OnPingDocument().FilePath since I usually save .gh only. It works.