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

import_modfile not working (exported?) #1

Open
jlperla opened this issue Jan 15, 2018 · 4 comments
Open

import_modfile not working (exported?) #1

jlperla opened this issue Jan 15, 2018 · 4 comments

Comments

@jlperla
Copy link

jlperla commented Jan 15, 2018

Unable to run examples or load module files. Are you exporting the right function? Should it be import_model instead (from looking at modeul_import.jl)? The following is the error, where a using Dyno was done before running this

julia> include("example.jl")
ERROR: LoadError: UndefVarError: import_modfile not defined
Stacktrace:
 [1] include_from_node1(::String) at .\loading.jl:576
 [2] include(::String) at .\sysimg.jl:14
while loading C:\Users\jlperla\.julia\v0.6\Dyno\example.jl, in expression starting on line 237
@albop
Copy link
Member

albop commented Jan 15, 2018

Thanks, @jlperla. Indeed the function defined in the code is import_model, which does not match the example. It is also not exported. Right now, you can do model = Dyno.import_modfile(...). I'll fix it very soon.

@albop
Copy link
Member

albop commented Jan 17, 2018

This one is fixed now. One can do either import_modfile(filename) or Model(filename).

@jlperla
Copy link
Author

jlperla commented Jan 17, 2018

Thanks, I have copied @sevhou who is playing around with these tools this week.

@albop
Copy link
Member

albop commented Jan 17, 2018

@sevhou: if you want to try again, installation should now work on Linux, and v1.juliabox.com (I updated the README)

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