Skip to content

ERROR: LoadError: UndefVarError: Poly not defined #1

@adammaj1

Description

@adammaj1

Hi.

Thx for interesting program.
I use ubuntu 21.04
After including code I have error :

 include("PBURF.jl")
WARNING: replacing module PBURF.
ERROR: LoadError: UndefVarError: Poly not defined

Here is my full code

a@zalman:~$ git clone https://github.com/luisjavierhernandez/PBURF.jl.git
Klonowanie do „PBURF.jl”...
remote: Enumerating objects: 49, done.
remote: Counting objects: 100% (49/49), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 49 (delta 20), reused 38 (delta 12), pack-reused 0
Pobieranie obiektów: 100% (49/49), 620.06 KiB | 1.28 MiB/s, gotowe.
Rozwiązywanie delt: 100% (20/20), gotowe.
a@zalman:~$ 
a@zalman:~$ cd PBURF.jl
a@zalman:~/PBURF.jl$ cd src
a@zalman:~/PBURF.jl/src$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.5.3
 _/ |\__'_|_|_|\__'_|  |  Ubuntu ⛬  julia/1.5.3+dfsg-3
|__/                   |

julia> using PBURF
ERROR: ArgumentError: Package PBURF not found in current path:
- Run `import Pkg; Pkg.add("PBURF")` to install the PBURF package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:893

julia> pwd()
"/home/a/PBURF.jl/src"

julia> readdir()
1-element Array{String,1}:
 "PBURF.jl"

julia> include("PBURF.jl")
ERROR: LoadError: ArgumentError: Package Polynomials not found in current path:
- Run `import Pkg; Pkg.add("Polynomials")` to install the Polynomials package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:893
 [2] include(::String) at ./client.jl:457
 [3] top-level scope at REPL[6]:1
in expression starting at /home/a/PBURF.jl/src/PBURF.jl:3

julia> import Pkg; Pkg.add("Polynomials")
   Updating registry at `~/.julia/registries/General`
--2021-09-11 16:25:39--  https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/46715bc8c87dc9f8d86b589ce090af6fcca81565
Translacja pkg.julialang.org (pkg.julialang.org)... 151.101.2.217, 151.101.66.217, 151.101.130.217, ...
Łączenie się z pkg.julialang.org (pkg.julialang.org)|151.101.2.217|:443... połączono.
Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 301 EU internal redirect trigger
Lokalizacja: https://eu-central.pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/46715bc8c87dc9f8d86b589ce090af6fcca81565 [podążanie]
--2021-09-11 16:25:55--  https://eu-central.pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/46715bc8c87dc9f8d86b589ce090af6fcca81565
Translacja eu-central.pkg.julialang.org (eu-central.pkg.julialang.org)... 52.57.14.183
Łączenie się z eu-central.pkg.julialang.org (eu-central.pkg.julialang.org)|52.57.14.183|:443... połączono.
Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 200 OK
Długość: 3671259 (3,5M) [application/x-gzip]
Zapis do: ‘/tmp/jl_wTed1q-download.gz’

/tmp/jl_wTed1q-down 100%[===================>]   3,50M  1,42MB/s    w 2,5s     

2021-09-11 16:26:02 (1,42 MB/s) - zapisano ‘/tmp/jl_wTed1q-download.gz’ [3671259/3671259]

  Resolving package versions...
  Installed LazyArtifacts ────── v1.3.0
  Installed Mocking ──────────── v0.7.2
  Installed ExprTools ────────── v0.1.6
  Installed MutableArithmetics ─ v0.2.20
  Installed Intervals ────────── v1.5.0
  Installed TimeZones ────────── v1.5.7
  Installed Polynomials ──────── v2.0.14
Updating `~/.julia/environments/v1.5/Project.toml`
  [f27b6e38] + Polynomials v2.0.14
Updating `~/.julia/environments/v1.5/Manifest.toml`
  [e2ba6199] + ExprTools v0.1.6
  [d8418881] + Intervals v1.5.0
  [4af54fe1] + LazyArtifacts v1.3.0
  [78c3b35d] + Mocking v0.7.2
  [d8a4904e] + MutableArithmetics v0.2.20
  [f27b6e38] + Polynomials v2.0.14
  [f269a46b] + TimeZones v1.5.7
  [9fa8497b] + Future
   Building TimeZones → `~/.julia/packages/TimeZones/kDO1y/deps/build.log`

julia> include("PBURF.jl")
WARNING: replacing module PBURF.
[ Info: Precompiling Polynomials [f27b6e38-b328-58d1-80ce-0feddd5e7a45]
ERROR: LoadError: ArgumentError: Package PyPlot not found in current path:
- Run `import Pkg; Pkg.add("PyPlot")` to install the PyPlot package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:893
 [2] include(::String) at ./client.jl:457
 [3] top-level scope at REPL[8]:1
in expression starting at /home/a/PBURF.jl/src/PBURF.jl:5

julia> import Pkg; Pkg.add("PyPlot")
  Resolving package versions...
  Installed VersionParsing ─ v1.2.0
  Installed Conda ────────── v1.5.2
  Installed PyPlot ───────── v2.9.0
  Installed PyCall ───────── v1.92.3
Updating `~/.julia/environments/v1.5/Project.toml`
  [d330b81b] + PyPlot v2.9.0
Updating `~/.julia/environments/v1.5/Manifest.toml`
  [8f4d0f93] + Conda v1.5.2
  [438e738f] + PyCall v1.92.3
  [d330b81b] + PyPlot v2.9.0
  [81def892] + VersionParsing v1.2.0
   Building Conda ─→ `~/.julia/packages/Conda/sNGum/deps/build.log`
   Building PyCall → `~/.julia/packages/PyCall/BD546/deps/build.log`

julia> include("PBURF.jl")
WARNING: replacing module PBURF.
[ Info: Precompiling PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee]
ERROR: LoadError: ArgumentError: Package Colors not found in current path:
- Run `import Pkg; Pkg.add("Colors")` to install the Colors package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:893
 [2] include(::String) at ./client.jl:457
 [3] top-level scope at REPL[10]:1
in expression starting at /home/a/PBURF.jl/src/PBURF.jl:7

julia> import Pkg; Pkg.add("Colors")
  Resolving package versions...
Updating `~/.julia/environments/v1.5/Project.toml`
  [5ae59095] + Colors v0.12.8
No Changes to `~/.julia/environments/v1.5/Manifest.toml`

julia> include("PBURF.jl")
WARNING: replacing module PBURF.
ERROR: LoadError: UndefVarError: Poly not defined
Stacktrace:
 [1] fixedPointsofaIrreduciblePair(::Array{Complex{Float64},1}, ::Array{Complex{Float64},1}, ::Int64) at /home/a/PBURF.jl/src/PBURF.jl:150
 [2] top-level scope at /home/a/PBURF.jl/src/PBURF.jl:174
 [3] include(::String) at ./client.jl:457
 [4] top-level scope at REPL[12]:1
in expression starting at /home/a/PBURF.jl/src/PBURF.jl:174

julia> using PBURF
ERROR: ArgumentError: Package PBURF not found in current path:
- Run `import Pkg; Pkg.add("PBURF")` to install the PBURF package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:893

julia> include("PBURF.jl")
WARNING: replacing module PBURF.
ERROR: LoadError: UndefVarError: Poly not defined
Stacktrace:
 [1] fixedPointsofaIrreduciblePair(::Array{Complex{Float64},1}, ::Array{Complex{Float64},1}, ::Int64) at /home/a/PBURF.jl/src/PBURF.jl:150
 [2] top-level scope at /home/a/PBURF.jl/src/PBURF.jl:174
 [3] include(::String) at ./client.jl:457
 [4] top-level scope at REPL[14]:1
in expression starting at /home/a/PBURF.jl/src/PBURF.jl:174

Wher I have made an error ?

TIA

Adam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions