Forums Anyscript.org  

Go Back   Forums Anyscript.org > Professional Forum > AnyBody Managed Model Repository

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2018, 04:50 AM
johntiger johntiger is offline
Junior Member
 
Join Date: Jul 2016
Posts: 5
Default MoCap-GMFoot.main load failed

hello,
I want to run the GM MoCAP foot model.But when I load the model,one error appears as following:
Evaluating constants...
ERROR(SCR.EXP.FUN.EXT4) : C:/P..s/A..y/A..0/AMMR/A..n/Beta/M..t/S..g/RBFLandmarks.any(78) : ReadMLFile : AnyBody.Python extension module is not installed or does not match installed version of Python.
Model loading skipped

I have installed the python according to the instruction.
And add the following words in the top of AnyBody main file
#path ANYBODY_PATH_PYTHONHOME "D:\Anaconda2\envs\py37_foot".I have tried many times,but it always failed.

Could you please give me some suggestions?Thank you!

Best regards!
John Tiger
Reply With Quote
  #2  
Old 09-21-2018, 12:11 PM
toerholm's Avatar
toerholm toerholm is offline
AnyBody Support
 
Join Date: Feb 2009
Posts: 940
Default

Hi John,

I think it can be two things.

1: there is a version conflict on AMS and python, both need to be either 32 bit or 64 bit, they can not be different
2: Please try to use python 2.7

Best regards
Søren
__________________
TIP: How to save and load results.
http://wiki.anyscript.org/index.php/All_about_AnyBody_Modeling_System#Save_Load_and_Re play_Results

Subscribe to the forums, click the 'Forum Tools' link above the list of threads then select 'Subscribe to Forum'. You will then have the option to choose the subscription mode for this forum and get an email automatically.
Reply With Quote
  #3  
Old 09-21-2018, 01:08 PM
johntiger johntiger is offline
Junior Member
 
Join Date: Jul 2016
Posts: 5
Default

Søren,

Thanks for your message!
I have paid attention to the problems that you mentioned. As for the software,
AMS and python are both 64 bit and python version is 2.7.

But the error still exists.

I guess if the sentence
#path ANYBODY_PATH_PYTHONHOME "D:\Anaconda2\envs\py37_foot" is not right.Or
something else causes the problem.
Best regards,
John
Reply With Quote
  #4  
Old 09-23-2018, 08:45 PM
Zach_Welshman Zach_Welshman is offline
Member
 
Join Date: Sep 2016
Posts: 40
Default

Hi John,
You probably have changed the name in the env, but i noticed you have the env as :

\Anaconda2\envs\py37_foot

when the anybody website has the location as :

\Anaconda2\envs\py27_foot.

AnybodySite:

To create and use the environment please follow these two steps:

Open a prompt
write: conda create --name py27_foot --file FootModelPython_spec_file.txt
in the top of your AnyBody main file please write :
#path ANYBODY_PATH_PYTHONHOME "TYPE_IN_YOUR_PATH_TO_ANACONDA\Continuum\Anaconda2 \envs\py27_foot"
Reply With Quote
  #5  
Old 09-24-2018, 03:50 PM
Zach_Welshman Zach_Welshman is offline
Member
 
Join Date: Sep 2016
Posts: 40
Default GM loading problem

Hi John, I've found the problem.

When I change the directory path to the correct location on my computer

My model fails with the message:

ERROR(SCR.EXP0) : D:/D..s/AMMR/A..n/Beta/M..t/S..g/RBFLandmarks.any(4) : 'Points1' : Error in expression. Please refer to the following error messages for details ...
ERROR(SCR.EXP.FUN.EXT8) : D:/D..s/AMMR/A..n/Beta/M..t/S..g/RBFLandmarks.any(78) : ReadMLFile : Exception in Python extention module.
Python error : File "D:\Documents\AMMR\Application\Beta\MoCap-GMFoot\Scaling\ReadMeshlabIn.py", line 24

This error is due to and indenting issue on line 24 in the ReadMeshLab in file having a tab at the start of line 24, when it should be 4 spaces:

Code:
       
        
Line24:        vec = [float(res[0]), float(res[1]), float(res[2])]
You should double check your #path file is correct (location and any potential admin blocks) and that the start of line 24 of the ReadMeshIn is changed from a tab to 4 spaces.

Attached is the edited ReadMeshLabIn file with the edit.

I am using python 3.5

Zach
Attached Files
File Type: txt ReadMeshlabIn.txt (945 Bytes, 3 views)

Last edited by Zach_Welshman; 09-24-2018 at 03:53 PM. Reason: Clarification
Reply With Quote
  #6  
Old 10-23-2018, 03:37 PM
johntiger johntiger is offline
Junior Member
 
Join Date: Jul 2016
Posts: 5
Default

Hi,Zach,
Thanks very much for your reply!
Now it runs smoothly.

Tiger
Reply With Quote
Reply

Tags
gm-foot;python

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:11 PM.