MHAPI plugin not loading

If you have problems understanding something or getting started, ask here

Moderator: joepal

MHAPI plugin not loading

Postby mhuser » Wed Mar 14, 2018 9:29 am

Hi
I have got a problem with the MH API Plugin: namespace conflict ?

I installed the windows version "makehuman-1.1.1-win32" downloaded from http://www.makehumancommunity.org/conte ... loads.html, MH starts without any problems and under "Utilities" no errors or warnings are displayed.

After adding the 1_mhapi folder (downloaded here: http://www.makehumancommunity.org/content/plugins.html as zip file) with the core py files to the plugins folder, during start process a warning is shown, that 1_mhapi could not be loaded. Under Utilities the warning is like:
Could not load 1_mhapi
Traceback...
...
File plugins/1_mhapi/namespace.py" line 6 in <module>
from six import with metaclass
import error no module named six


Under "settings", "plugins" no 1_mhapi is shown.

i don't get this error, when i use a 1_mhapi folder from another nighty build, then the plugin is loaded correctly.

What can be the reason ?
mhuser
 
Posts: 3
Joined: Wed Mar 14, 2018 9:06 am

Re: MHAPI plugin not loading

Postby joepal » Wed Mar 14, 2018 11:14 am

The reason is we tried to fix an incompatibility with python 3.6. Seems we instead broke the compatibility with python 2.7, or at least with the release version.

I have uploaded a modified version of MHAPI now. Can you check if this solves the problem?
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4474
Joined: Wed Jun 04, 2008 11:20 am

Re: MHAPI plugin not loading

Postby mhuser » Wed Mar 14, 2018 11:30 am

joepal,
still does not load / work for me.

The warning says now:
...
File api.py line 15 in _init_ from .internals import Internals

File _internals.py line 4 .. from JsonCall import JsonCall

File CsonCall.py line 8 from six import string_types

import error: no module six
mhuser
 
Posts: 3
Joined: Wed Mar 14, 2018 9:06 am

Re: MHAPI plugin not loading

Postby joepal » Wed Mar 14, 2018 11:50 am

Ok, this will be a slightly larger thing to fix. I'm on it, but it will take a while.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4474
Joined: Wed Jun 04, 2008 11:20 am

Re: MHAPI plugin not loading

Postby joepal » Wed Mar 14, 2018 12:29 pm

Now there's another version uploaded, which hopefully will solve the problem (I have tested it with the release version).

If you plan on using the socket plugin, you will need to re-download that too.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4474
Joined: Wed Jun 04, 2008 11:20 am

Re: MHAPI plugin not loading

Postby mhuser » Wed Mar 14, 2018 4:52 pm

works,
thank you and greetings
mhuser
 
Posts: 3
Joined: Wed Mar 14, 2018 9:06 am

Re: MHAPI plugin not loading

Postby Aranuvir » Wed Mar 14, 2018 9:23 pm

@Joe: If we should ever do another Python2 based release, we should make sure six is included.
Aranuvir
 
Posts: 1314
Joined: Sun Oct 12, 2014 2:12 pm

Re: MHAPI plugin not loading

Postby joepal » Thu Mar 15, 2018 7:39 am

Aranuvir wrote:@Joe: If we should ever do another Python2 based release, we should make sure six is included.


Yup. It's unfortunate that it isn't there in the current version. It'll make things cumbersome until such a point that we have a new stable release through the door.

Once there is a stable py3 release, we should probably stop trying to maintain backwards compatibility with py2. It's too error prone.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4474
Joined: Wed Jun 04, 2008 11:20 am


Return to Newbies

Who is online

Users browsing this forum: Google [Bot] and 1 guest