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

UndefVarError: Flux not defined when creating the project #77

Open
Stamp1993 opened this issue Dec 5, 2020 · 1 comment
Open

UndefVarError: Flux not defined when creating the project #77

Stamp1993 opened this issue Dec 5, 2020 · 1 comment

Comments

@Stamp1993
Copy link

Built own project, the current code is:

module NewProject

import Flux
import BSON
using Flux, Tracker, BSON

function read_ANN()
  @BSON.load "Processmodel2.bson" m
  return m
end

m = read_ANN()

end # module

Project.toml and Manifest.toml are OK, when I'm running this code directly - everything goes fine, when I'm tryin to import this project - I get the ERROR: LoadError: UndefVarError: Flux not defined caused by BSON

@BCRARL
Copy link

BCRARL commented Sep 3, 2021

Try

m = BSON.load("Processmodel2.bson",@__MODULE__)[:m]

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