Hello,
I am working with AnyPyTools and TkInter. I am trying to calculate the model and print with matplotlib in a GUI. GUI is working but I am getting strange errors depending on my macro in AnyPyTools. Like in this Topic: Changing the TrailFileName with AnyPy Tools I try to load a C3D File from my PC. I already changed my TrialSpecificData_FullBody.any:
#ifndef TRIAL_FILE_NAME
#define TRIAL_FILE_NAME "C006_20170724_29.c3d"
#endif
TrialFileName = TRIAL_FILE_NAME;
But if I run in python with following macrolist:
macrolist = [
Load('UpperLimb.any', paths={"TRIAL_FILE_NAME": self.open_files()}),
# Load('UpperLimb.any'),
OperationRun('Main.RunAnalysis'),
Dump('Main.Studies.InverseDynamicStudy.Output.MaxMuscleActivity'),
]
gives me following errors:
ERROR(OBJ1) : C:\Users\biolab\Documents\AnyBody.7.2.x\AMMR.v2.2.3_Steinfeld\Tools\AnyMocap\InterpolateJointAngleData.any(56) : 'AnyMoCap_msg2' :
----------------------------------------------------------------------------------------------------------
No valid kinematic joint angle data available.
Please run the Marker Tracking analysis first (or Main.RunAnalysis)
----------------------------------------------------------------------------------------------------------
Running only Load('UpperLimb.any') without paths gives me
Failed (i=0) : 239.5 sec : mocapexamples-plug-in-gait_simple-0_(3jrlveqm).txt
100%|████████████████████████████████████████████████████████████████████████████| 1/1 [03:59<00:00, 239.60s/it]
Completed: 0, Failed: 1
But it still prints the needed output.
Here are 2 Files from output.
Error_Output_2_Files.zip (9.1 KB)
And there is another Error I get after few Analysis with AnyPyTools:
Scanning...
Parsing...
Constructing model tree...
Linking identifiers...
Evaluating constants...
Fatal Python error: init_sys_streams: can't initialize sys standard streams
ValueError: Cannot open console output buffer for reading
Current thread 0x00002c4c (most recent call first):
ERROR: AnyPyTools : anybodycon.exe exited unexpectedly. Return code: 3
I do nothing in code and only update anypytools in terminal and it's working again. How is that possible? I had that error quite often. So if I get and init_sys_streams error I just update anypytools again and it works.