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: 'Meta' object has no attribute 'model_dimension' #46

Open
jmlorenzi opened this issue Apr 19, 2016 · 4 comments
Open

Error: 'Meta' object has no attribute 'model_dimension' #46

jmlorenzi opened this issue Apr 19, 2016 · 4 comments

Comments

@jmlorenzi
Copy link
Contributor

Hey Max,

This is regarding current state of the develop branch:

I suddenly started to get this error.

AttributeError: 'Meta' object has no attribute 'model_dimension'

This happened when I tried to export an .xml file that was generated earlier (with my backend-otf branch).

Do you have an idea what this could be related to? Did the 'model_dimension' property got moved from meta to somewhere else?

Some extra info:
As far I know, everything is consistent if you generate the .xml, export and run with the same code snapshot... I.e. regenerating the .xml from the render script solves the issue.

I had previously exported the .xml I mentioned first (with code from my backend-otf branch). I could run this model with the current state of the develop branch (but, as I said before, could not export it again).

@PGaneshIyer
Copy link

I installed 'amos' in my Mac running El Capitan. When I execute the line kmos.cli.main('export myfirst_kmc.xml') inside my ipython (invoked as sudo ipython), then I get the same error as above :
AttributeError: 'Meta' object has no attribute 'model_dimension'

How do I run the model?

@PGaneshIyer
Copy link

correction autotype, above 'amos' is 'kmos'

@mieand
Copy link
Contributor

mieand commented Oct 20, 2016

Hi,
In my experience this error occurs when there is some discrepancy among different Python versions. I have experienced it for example if I installed kmos using one version of Python and then tries to run a model using another version of Python.
It could also be the case that the xml file you are trying to export has been created using a different Python version than what you have installed.

@PGaneshIyer
Copy link

Yes. I reinstalled macports and now this error has vanished.

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

3 participants