Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error downloading example project #1

Open
mteillet opened this issue Nov 5, 2019 · 1 comment
Open

error downloading example project #1

mteillet opened this issue Nov 5, 2019 · 1 comment

Comments

@mteillet
Copy link

mteillet commented Nov 5, 2019

Hello, I am working with Python 3.7 on windows. I managed to pip install, however when I try to download the Example Project, I get the following error :

Example types downloaded
Traceback (most recent call last):
File "C:\Users\MARTIN_FIXE\AppData\Roaming\Python\Python37\site-packages\mangrove\mgvUI.py", line 5018, in discover
obj['code'] = obj['code'].decode('utf8')
AttributeError: 'str' object has no attribute 'decode'

I managed to fix it by removing the ".decode('utf8')" as with python 3 all strings are unicode objects. Do I absolutely have to use Python 2.7 in order to test Mangrove ?

After that, the example types and graphs could be downloaded, but I then got the following error:

Traceback (most recent call last):
File "C:\Users\MARTIN_FIXE\AppData\Roaming\Python\Python37\site-packages\mangrove\mgvUI.py", line 5048, in discover
g.create()
File "C:\Users\MARTIN_FIXE\AppData\Roaming\Python\Python37\site-packages\mangrove\mgvApi.py", line 927, in create
node.create()
File "C:\Users\MARTIN_FIXE\AppData\Roaming\Python\Python37\site-packages\mangrove\mgvApi.py", line 1497, in create
v.create()
File "C:\Users\MARTIN_FIXE\AppData\Roaming\Python\Python37\site-packages\mangrove\mgvApi.py", line 2147, in create
self.setParameter(parameter, self.parameters[parameter])
File "C:\Users\MARTIN_FIXE\AppData\Roaming\Python\Python37\site-packages\mangrove\mgvApi.py", line 2264, in setParameter
original = self.node.type.getParameter(name, version_id=self.node.versionActive.typeForceVersion).default
AttributeError: 'NoneType' object has no attribute 'getParameter'

I was really interested in testing it out, maybe I am doing something wrong ? Thank you in advance

Martin

@mariot
Copy link
Collaborator

mariot commented Nov 6, 2019

Hello!

Unfortunately, mangrove hasn't been updated to python 3 yet.
It would be awesome if it were :(

And PR are always welcome!
Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants