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

Issue creating RHI Python installer in rhino 7

$
0
0

Hi, I’d like to create a new installer for my Rhino.Python commands, For now i have 2 commands that work properly inside Rhino 7. I created the __plugin__.py where I put the 3 lines described here.

id="{11cab2e9-db32-4274-9d45-50917b9a1d97}"
version="1.0"
title="BatchRotate"

In my folder there are both commands, while BatchRotate is the name of just one of them. Can I zip the folder and rename it to Plugin.rhi anyway? Or should I make a plugin for each command? Also Should I zip the \Dev folder or the content of it? I tried with just the content and I get the error

03/30/2022 09:51:11	6740	Info	Start: rhiexec
					version 7.16.22067.13001
					64-bit
					unknown   10.0.19044.0
03/30/2022 09:51:11	6740	Info	arguments: 
					"C:\Users\Stefano\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\PythonPlugins\Stefano_Plug-In (11cab2e9-db32-4274-9d45-50917b9a1d97)\dev\Plugin.rhi"
03/30/2022 09:51:11	6740	Info	Logging started: 2022/03/30 09:51:11
03/30/2022 09:51:11	6740	Debug	Unknown	InstallerDialog_Load starting	(0%)
03/30/2022 09:51:11	6740	Debug	Unknown	InstallerDialog_Load ending	(0%)
03/30/2022 09:51:11	6740	Debug	Unknown	ShowInitializationDialog starting	(0%)
03/30/2022 09:51:11	6740	Debug	Unknown	ShowPanel starting	(0%)
03/30/2022 09:51:11	6740	Debug	Unknown	SwapPanel starting	(0%)
03/30/2022 09:51:11	6740	Debug	Unknown	SwapPanel ending	(0%)
03/30/2022 09:51:11	6740	Debug	Unknown	ShowPanel ending	(0%)
03/30/2022 09:51:11	6740	Debug	Unknown	ShowInitializationDialog ending	(0%)
03/30/2022 09:51:11	6740	Info	Initializing	INIT START: 	(0%)
03/30/2022 09:51:11	6740	Info	Unknown	Package not recognized as Localization Package	(0%)
03/30/2022 09:51:11	6740	Info	Unknown	Found 0 plug-ins	(0%)
03/30/2022 09:51:11	6740	Info	Unknown	Recognized payload as Python plugin	(0%)
03/30/2022 09:51:11	6740	Info	Initializing	Initializing Installer	(0%)
03/30/2022 09:51:12	6740	Error	Exception: System.ArgumentException
					Message: Version string portion was too short or too long.
					Source: mscorlib
					StackTrace:    at System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)
					   at System.Version.TryParseVersion(String version, VersionResult& result)
					   at System.Version.Parse(String input)
					   at System.Version..ctor(String version)
					   at RhiExec.PythonPluginInfo.LoadPluginPyFile(String plugin_py)
					   at RhiExec.PythonPluginInfo.Initialize(Package package)
					   at RhiExec.InstallerPythonPlugin.get_Plugin()
					   at RhiExec.InstallerPythonPlugin.Initialize(AsyncReporter progress)
					   at RhiExec.Engine.Engine.Init(String packagePath, AsyncReporter progress)
					   at System.Threading.Tasks.Task`1.InnerInvoke()
					   at System.Threading.Tasks.Task.Execute()
					--- End of stack trace from previous location where exception was thrown ---
					   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
					   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
					   at RhiExec.View.InstallerDialog.<InstallerDialogShown>d__3.MoveNext()
					
03/30/2022 09:51:12	6740	Debug	Unknown	ShowPanel starting	(0%)
03/30/2022 09:51:12	6740	Debug	Unknown	SwapPanel starting	(0%)
03/30/2022 09:51:12	6740	Debug	Unknown	SwapPanel ending	(0%)
03/30/2022 09:51:12	6740	Debug	Unknown	ShowPanel ending	(0%)

Here is screenshot of my folder with __plugin__.py open

Thank you to anyone who can help.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5809

Trending Articles