Can't open Python components when re-opening the file

The script components will not open at all. I have never had this problem in the past and it is currently causing huge issues as I have done days of code that are now inaccessible.

This is nuts, please help. I would like to think I can write code in Rhino without getting locked.

Thanks,
Jason - disappointed and frustrated Rhino user.

I even regularly save backups and all of those will not open the components either. How is this even possible? I made no updates, nothing…just tried to open the file this morning…and nope. Not the working file or any backup file is accessible. This is days of work just gone…mind blown.

I also have tried to open the file on 3 other computers and different versions of Rhino 8…all failed.

Anything?

Here are the files causing.

(upload://9pduv2oZ9dkIEV2h5BGZcCbV4QH.3dm) (11.0 MB)
GH_Tag_Heuer_Production_code_001.gh (39.9 KB)
GH_Tag_Heuer_Production_code.gh (51.4 KB)

@eirannejad Same problem as No language found in Py3 component? I’m having the same issue with the GH code posted above (Cannot determine language for “Py3”).

Here’s my ScriptEditor.log (22.6 KB)

@robertjasoncross I am sorry for the error. Would you mind:

  • running RhinoCodeLogs command and send me the report after you have opened the GH definition with the error
  • Try resetting Python runtime and restarting Rhino. There might be a package install issue:

Having reset the runtime and your editor logs I should be able to see where python failed to load

1 Like

@robertjasoncross I fixed this GH definition. For some unknown reason the language saved into the file is named Python instead of python and that causes the error. I am looking into this but the fixed file should get you going.

GH_Tag_Heuer_Production_code_001.ghx (624.6 KB)

Created a YT and will improve this for next Rhino:
RH-85270 LanguageSpec should ignore case but it does not

Thanks for the work. Let me see if this works.

FYI, resetting the Python Environment made more components fail.

I still get the error on one of the components. Was that not red for you? Are you able to open the component still failing in the image?

Here is another screenshot after reinstalling Rhino again. Seems to be the same errors.

It makes no sense to me why a letter would crash the whole component and make it inaccessible

If you can get the component open and copy and paste the code or give me a screenshot I will just re-write it. I am under a huge deadline and this is just not something I can spend time helping McNeel correct their fragile software…I have work to do.

@robertjasoncross DMing you the scripts

So I was able to get the python files from Ehsan. This has saved me for now.

For the record, it seems a header hash had an uppercase P instead of lowercase.

ex. #! Python vs #! python

I personally think that this should not be something that would kill a component. That said, I will no longer be adding hashed info in my python 3 scripts…straight python from now on.

This is a bug that somehow did not show up until now. It is not the expected behaviour. Component should work with Python or python . I will get this fixed asap.

Thanks for reporting