Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5877

SyntaxError in saved scripts, but not untitled/unsaved scripts

$
0
0

@PounceFox wrote:

I’m having trouble executing scripts on my machine.

Yesterday I started doing a tutorial with a generative rhino script.
I could execute scripts, debug them, step in and over. But once I saved the file the scripts would no longer execute.

When I run the script I get the following error:

    G:\1
     ^
SyntaxError: unexpected token ':'

the script is saved on drive G in folder “G:\1) Documents\ … \scriptname.py”
So I can see why it’s saying G:\1. I just can’t for the life of me figure out why it would not run scripts saved in particular locations, or why it would say the error is on line 1.

What I’ve tried so far:

  • Adding the folder to the Module Search Paths list (doesn’t work when it is, also doesn’t work when it isn’t )
  • Restarting Rhino
  • Restarting Windows
  • Copy pasting the code in a new untitled file (does work!)

Additional info:

  • Rhino is installed on the C:\ drive
  • Rhino version: Version 6 SR12 (6.12.19029.6381, 1/29/2019)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5877

Trending Articles