Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime Error: expected string got NoneType #45

Open
lin-ycv opened this issue Jan 26, 2022 · 1 comment
Open

Runtime Error: expected string got NoneType #45

lin-ycv opened this issue Jan 26, 2022 · 1 comment

Comments

@lin-ycv
Copy link

lin-ycv commented Jan 26, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants