Reset Engine, [Python script] What does it mean? and how to fix it?

Tried to modify a script [a little]
got this error message Reset Engine

It has since expended to other scripts that are invoked from a button.
[if I call the same scripts via “Run Python Script” they work fine.

Other scripts that were added to the my custom toolbar before the error massage first appeared, still runs fine.

There were 2 events [around the time the error first appeared] that are perhaps related…?

  1. I tried to install the Euglena GH plugin, it installs Python 3.9 which now run as a process when Rhino WIP is open.
  2. I tried to edit a version of a script in MacVim Editor, but that was a copy stored in a different location, [not linked to a buttons and not in the Scripts Folder]
  • clicking the reset engine button does nothing.

thanks a lot
Akash

Hi @Gijs
Would you be willing when you have time, to look at this Reset Engine thing…
I have not heard of or seen this in the past… and couldn’t find any info regarding this.
It’s not following a logic I can see, so it feels like a bug.

thanks a lot
Akash

Have you tried uninstalling the Euglena GH plugin? Seems like something to try to see if it is related.

I removed it, at lease all the parts I could find [it is any way not currently working on Mac.]

But the reset engine error is the same,

I also removed that editor [MacVit]

the 3rd event was that Euglena also install python 3.9.
I’m not sure how to uninstall that package [The WIP suppose to support it according to what I read]

thanks a lot

Akash

I’m digging around the rhino source to try and find this dialog and coming up empty. Is this happening in Rhino 7 or the Rhino 8 WIP?

In the WIP. [I didn’t even instal 7 on this new Mac]

*I may have try to describe the same in the first post but to recap:
It only happens to scripts invoked via a button. But only from a certain point in time, meaning other scripts that were linked to buttons earlier, still works normally.
And the same scripts that gives the error in the buttons, they work fine if I call them via the RunPythonScript command .

thanks a lot
Akash

Try restarting Rhino and see if you can repeat the issue without running Grasshopper. I’m trying to eliminate the possibility of Euglena having any effect.

Hi Steve
The error is happening in Rhino, [with GH closed]
Tried to show here how it give the error to one button, while an [earlier button starts a script with no errors]

thanks a lot
Akash

Does it make a difference if you have the command line docked?

[Actually I have that [hatful] thing disabled, it just keeps reappearing on every new document.]
Yes the error is same also when the command thing is docked.

The Reset Engine issue is still blocking me from using buttons to run scripts.

And now with an added 2nd error massage. [this ‘_NoEcho’ error was not there at the time of the initial reported about the Reset Engine issue… ]

Both error mention NoEcho, was there a change in the way Rhino likes to read Macros ?
I tried to remove _NoEcho from the Macro, just to see if it makes a difference to the error massages … and it does not.

thanks a lot
akash

Hi
this problem still exist.

any ideas…?

thanks a lot
akash

hi @Akash I cannot repeat the issue you are seeing. What is the way you are opening these scripts? Can you show me the macro you are using? Can you post the script as well that is causing this issue?

Here’s is one of @Helvetosaur great scripts I use a lot
that’s the macro to run the script from the button
! _NoEcho _-RunPythonScript "/Users/akashlotan/Library/Application Support/McNeel/Rhinoceros/scripts/MMT/SpheresToPoints”

The Script will run correctly if I call it from with the command RunPythonScript.

other script that I assigned to buttons have the same issue.

the problem begun I think when I installed a Python 3 package that was part of a GH plugin. I ended up deleting the plugin [Euglena] as it wasn’t Mac compatible … But I can’t find where that python package is on my computer? …
If it is indeed what is causing the issue?

thanks a lot
akash

my search engine says:

On macOS, Python is typically installed in the /Library/Frameworks/Python. framework/Versions directory, with different versions contained in their respective subfolders (e.g., /Library/Frameworks/Python. framework/Versions/3.9 for Python 3.9).

you are missing the .py? (although… seems to work here as well)

thanks for looking into this @Gijs

I Guess that because we ask Rhino to run a Python script, it already knows that it is a Python file and is not asking for the .py… but I can try to add this to the macro. thanks.

  • edit: adding the .py to the macro didn’t help.

and I can’t see any Python packs in Rrameworks…?

systemInfo

Summary

Rhino 8 SR0 2023-9-26 (Rhino 8 BETA, 8.0.23269.15064, Git hash:master @ e4cc5068632f42fb560d3418a2112465b4a0acec)
License type: Commercial, build 2023-09-26
License details: Cloud Zoo
Expires on: 2023-11-10

Apple macOS Version 13.5.2 (Build 22G91) (Physical RAM: 96Gb)
Mac Model Identifier: Mac14,6
Language: en-TH (MacOS default)
.NET 7.0.0

Metal GPU Family Apple 7
Metal GPU Family Common 3
Metal GPU Family Mac 2
Graphics processors
Apple M2 Max
Color LCD (1728 x 1117 @ 120.00Hz)

USB devices
None

Bluetooth devices
None

Third party kernel extensions
None

Third party plugins
/usr/lib/swift/libswiftCore.dylib
/usr/lib/swift/libswiftCoreFoundation.dylib
/usr/lib/swift/libswiftDarwin.dylib
/usr/lib/swift/libswiftDispatch.dylib
/usr/lib/swift/libswiftIOKit.dylib
/usr/lib/swift/libswiftObjectiveC.dylib
/usr/lib/swift/libswiftXPC.dylib
/usr/lib/swift/libswift_Concurrency.dylib
/usr/lib/swift/libswift_StringProcessing.dylib
/usr/lib/swift/libswiftos.dylib
/usr/lib/swift/libswift_RegexParser.dylib
/usr/lib/swift/libswiftMetal.dylib
/usr/lib/swift/libswiftsimd.dylib
/Library/Frameworks/3DconnexionClient.framework/Versions/A/3DconnexionClient
/usr/lib/usd/libIex.dylib
/usr/lib/usd/libHalf.dylib
/usr/lib/usd/libAlembic.dylib
/usr/lib/usd/libusd_ms.dylib
/usr/lib/usd/libosdCPU.dylib
/usr/lib/usd/libImath.dylib
/usr/lib/usd/libIlmThread.dylib
/usr/lib/usd/libIexMath.dylib
/usr/lib/usd/libtbb.dylib
/usr/lib/usd/libMaterialXCore.dylib
/usr/lib/usd/libMaterialXFormat.dylib
/usr/lib/swift/libswiftAVFoundation.dylib
/usr/lib/swift/libswiftCoreAudio.dylib
/usr/lib/swift/libswiftCoreLocation.dylib
/usr/lib/swift/libswiftCoreMIDI.dylib
/usr/lib/swift/libswiftCoreMedia.dylib
/usr/lib/swift/libswiftQuartzCore.dylib
/usr/lib/swift/libswiftUniformTypeIdentifiers.dylib
/usr/lib/swift/libswiftNetwork.dylib
/usr/lib/swift/libswiftCryptoTokenKit.dylib
/usr/lib/swift/libswiftCoreGraphics.dylib
/usr/lib/swift/libswiftOSLog.dylib
/usr/lib/swift/libswiftAccelerate.dylib
/usr/lib/swift/libswiftAppKit.dylib
/usr/lib/swift/libswiftCoreImage.dylib
/usr/lib/swift/libswiftCompression.dylib
/usr/lib/swift/libswiftFileProvider.dylib
/usr/lib/swift/libswiftIntents.dylib
/usr/lib/swift/libswiftPrivate_BiomePubSub.dylib
/usr/lib/swift/libswiftPrivate_BiomeStreams.dylib
/usr/lib/swift/libswiftExtensionFoundation.dylib
/usr/lib/swift/libswiftCoreML.dylib
/usr/lib/swift/libswiftVision.dylib
/usr/lib/swift/libswiftDemangle.dylib
/usr/lib/swift/libswiftSystem.dylib
/usr/lib/swift/libswiftExtensionKit.dylib
/usr/lib/swift/libswiftRegexBuilder.dylib
/usr/lib/swift/libswiftWebKit.dylib
/usr/lib/swift/libswiftGLKit.dylib
/usr/lib/swift/libswiftMapKit.dylib
/usr/lib/swift/libswiftModelIO.dylib
/usr/lib/swift/libswiftSceneKit.dylib
/Users/akashlotan/Library/Application Support/McNeel/Rhinoceros/MacPlugIns/bella_rhino.rhp/libbella_dotnet_native.dylib
/Users/akashlotan/Library/Application Support/McNeel/Rhinoceros/packages/8.0/IntelDenoiser/0.6.7/libtbb.12.dylib
/Users/akashlotan/Library/Application Support/McNeel/Rhinoceros/packages/8.0/IntelDenoiser/0.6.7/libOpenImageDenoise.1.4.3.dylib
/usr/lib/log/liblog_network.dylib

Rhino plugins that do not ship with Rhino
/Applications/RhinoBETA.app/Contents/PlugIns/import_modelio_macos.rhp “Model IO Import” 8.0.23269.1002
/Users/akashlotan/Library/Application Support/McNeel/Rhinoceros/MacPlugIns/bella_rhino.rhp “Bella” 23.4.0.0
/Users/akashlotan/Library/Application Support/McNeel/Rhinoceros/packages/8.0/IntelDenoiser/0.6.7/IntelDenoiser.Mac.rhp “IntelDenoiser.Mac” 1.0.0.0

Rhino plugins that ship with Rhino
/Applications/RhinoBETA.app/Contents/Frameworks/RhMaterialEditor.framework “Renderer Development Kit” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Commands.rhp “Commands” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/PlugIns/NamedSnapshots.rhp “Snapshots” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Import_OBJ.rhp “Import_OBJ” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoCodePlugin.rhp “RhinoCodePlugin” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export_XAML.rhp “export_xaml” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/QuadRemesh.rhp “QuadRemesh” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Export_OBJ.rhp “export_OBJ” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RDK_EtoUI.rhp “RDK_EtoUI” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Import_glTF.rhp “Import glTF” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/ShrinkWrap.rhp “ShrinkWrap” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export_SVG.rhp “Export SVG” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Export_glTF.rhp “Export glTF” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/MeshCommands.rhp “MeshCommands” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Export_DAE.rhp “Export_DAE” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export_PDF.rhp “PDF Export” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export_IGES.rhp “IGES Export Plug-in” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Import_SVG.rhp “Import_SVG” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/BlockEdit.rhp “BlockEdit” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Export_AMF.rhp “Export_AMF” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoRenderCycles.rhp “Rhino Render” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/import_DST.rhp “Import_DST” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/export_PLY.rhp “PLY - Polygon File Format Export” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/Import_AMF.rhp “Import_AMF” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoCycles.rhp “RhinoCycles” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/PlugIns/export_SKP.rhp “SketchUp Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_UDO.rhp “Moray Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_RAW.rhp “RAW Triangle Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_USD.rhp “Export USD” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Import_DGN.rhp “MicroStation file import: import_DGN” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_E57.rhp “E57 Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_VRML.rhp “VRML Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/AnimationTools.rhp “AnimationTools” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Import_WAMIT.rhp “WAMIT import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/NamedPositions.rhp “Named Position” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_SKP.rhp “SketchUp Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/SectionTools.rhp “SectionTools” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_RAW.rhp “Raw Triangles Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/MPlane.rhp “MPlane” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_XGL.rhp “XGL Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/RhinoRender.rhp “Legacy Rhino Render” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_CD.rhp “Cult3D Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_LWO.rhp “Lightwave Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_SLC.rhp “SLC Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_3MF.rhp “import_3MF” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_STEP.rhp “STEP Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_3MF.rhp “export_3MF” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_WAMIT.rhp “WAMIT Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Import_SLC.rhp “SLC Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Import_OFF.rhp “OFF Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Squish.rhp “Squish” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_X_T.rhp “Parasolid Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/RhinoBonusTools.rhp “Rhino Bonus Tools” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/RhinoLabsTools.rhp “Rhino Labs Tools” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Import_M.rhp “Import_M” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Import_X.rhp “X Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_IGES.rhp “IGES Import Plug-in” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_AI.rhp “Adobe Illustrator Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_ACAD.rhp “AutoCAD file export : export_ACAD” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Displacement.rhp “Displacement” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_LWO.rhp “Lightwave Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_SAT.rhp “ACIS Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_CSV.rhp “Comma Separated Value Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_PDF.rhp “PDFReader” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_STL.rhp “STL Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_VDA.rhp “VDA Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_STEP.rhp “STEP Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_FBX.rhp “Export_FBX” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Import_SolidWorks.rhp “Solidworks Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_STL.rhp “STL Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_RIB.rhp “Renderman Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_FBX.rhp “Import_FBX” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_Points.rhp “Points Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_VDA.rhp “VDA Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_ACAD.rhp “AutoCAD file import: import_ACAD” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_X.rhp “X Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/CreaseAngle.rhp “CreaseAngle” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_3DS.rhp “3D Studio Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_PLY.rhp “PLY - Polygon File Format Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/MeshTools.rhp “MeshTools” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/import_Points.rhp “Points Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/PanelingTools.rhp “PanelingTools” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/MeshFromPoints.rhp “MeshFromPoints” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/export_VRML.rhp “VRML/X3D Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Import_GTS.rhp “GTS Triangle Import” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/SolidTools.rhp “SolidTools” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_GTS.rhp “GTS Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/PlugIns/Export_POV.rhp “POV-Ray Export” 8.0.23269.1002
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/RhinoDLR_Python.rhp “IronPython” 8.0.23269.15064
/Applications/RhinoBETA.app/Contents/Frameworks/RhCore.framework/Resources/ManagedPlugIns/GrasshopperPlugin.rhp “Grasshopper” 8.0.23269.15064

You say it happens after running some other scripts that don’t have this issue, can you send one of those that trigger this bug? It almost looks like when you are pressing the button that it is still running something and therefore gives the message that ‘_noecho’ is not defined

CirclesToPoints.py (735 Bytes)

That’s the one [it’s from Mitch’s MMT collection ] shown in the little video on my earlier reply.

Another detail is that scripts assigned to commands easier [before the breakpoint happened ]. are still running correctly from assigned tool buttons !
here’s is one from the same location and same MMT collection from Mitch

! _NoEcho _-RunPythonScript “/Users/akashlotan/Library/Application Support/McNeel/Rhinoceros/scripts/MMT/QuadMirrorOriginWHistory”

I just noticed something else. Make sure you only use these double quotes:

"

and not these:


Using the above double quote at the end, I get the Reset Engine popup!

1 Like