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 in ConsIndShockModel when run as non-package #182

Closed
edmundcrawley opened this issue Jul 30, 2018 · 1 comment
Closed

Error in ConsIndShockModel when run as non-package #182

edmundcrawley opened this issue Jul 30, 2018 · 1 comment

Comments

@edmundcrawley
Copy link
Contributor

When you run ConsIndShockModel by typing:
run ConsIndShockModel
in Spyder, you get an error:

from . import ConsumerParameters as Params

ValueError: Attempted relative import in non-package

This error occurs when the code at the very end of the file is run:

if name == 'main':
main()

This code is not normally run when the file is used as a package. I'm told that perhaps I should not be running this code as a non-package now, but if that is the case these lines of code at the very end should probably be removed. If not removed, then the bug should be fixed.

Nathan suggests that OTS will have some useful input on this point.

@mnwhite
Copy link
Contributor

mnwhite commented Feb 28, 2019

Fixed, forgot to close issue.

@mnwhite mnwhite closed this as completed Feb 28, 2019
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