# Error: The following package names could not be resolved

**URL:** <https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080>\
**Category:** New to Julia\
**Created:** [June 20, 2022, 4:21pm UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080 "2022-06-20T16:21:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![marshians](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marshians/32/36041_2.png) [@marshians](https://discourse.julialang.org/u/marshians)\
**Post date:** [June 20, 2022, 4:21pm UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/1 "2022-06-20T16:21:14Z")

</div>

I’m trying to follow the directions on developing MC web app on this page.  
[https://www.genieframework.com/docs/genie/tutorials/Developing-MVC-Web-Apps.html](https://www.genieframework.com/docs/genie/tutorials/Developing-MVC-Web-Apps.html)

I’m stuck at the step on “Interacting with the movies data”.  
If I type “using Movies”, it wants me to add the package. When I add the package, I get the error below

please advise.

julia\>using Pkg  
julia\>Pkg.add(“Movies”)  
ERROR: The following package names cold not be resolved:  
\*Movies (not found in project, manifest, or registry)

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [June 20, 2022, 6:55pm UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/2 "2022-06-20T18:55:53Z")

</div>

There doesn’t seem to be any Julia package called Movies.

---

<div class="post-metadata">

**Author:** ![marshians](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marshians/32/36041_2.png) [@marshians](https://discourse.julialang.org/u/marshians)\
**Post date:** [June 20, 2022, 6:59pm UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/3 "2022-06-20T18:59:41Z")

</div>

Does that mean the instruction provided by the website is not accurate? Is there a work around or what needs to be done to get it working?

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [June 20, 2022, 7:01pm UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/4 "2022-06-20T19:01:14Z")

</div>

Did you follow the instructions before that? It looks like the Movie package is quite example that you generate as part of the tutorial.

---

<div class="post-metadata">

**Author:** ![marshians](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marshians/32/36041_2.png) [@marshians](https://discourse.julialang.org/u/marshians)\
**Post date:** [June 20, 2022, 7:58pm UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/5 "2022-06-20T19:58:25Z")

</div>

All the steps before were successful including “Creating the Movie model”.  
My issue is with Interacting with the movies data.

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [June 21, 2022, 6:47am UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/6 "2022-06-21T06:47:30Z")

</div>

Installing is not necessary. It should load the module defined in `app/resources/movies/Movies.jl` immediately beforehand.

Please have a look at the output of `LOAD_PATH`. It should look something like

```julia
julia> LOAD_PATH
12-element Vector{String}:
 "@"
 "@v#.#"
 "@stdlib"
 "C:\\Users\\stephan\\Watchtonight"
 "src"
 "app\\helpers"
 "app\\resources"
 ".\\app\\resources\\movies"
 "app\\resources"
 "app\\resources\\movies"
 "app\\resources"
 "app\\resources\\movies\\views"

```

The entries starting with `app` make the module `Movies` discoverable and are added when loading the app with `bin/repl` as per the instruction.

---

<div class="post-metadata">

**Author:** ![marshians](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marshians/32/36041_2.png) [@marshians](https://discourse.julialang.org/u/marshians)\
**Post date:** [June 21, 2022, 3:22pm UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/7 "2022-06-21T15:22:38Z")

</div>

Great, after issuing “bin/repl”, I’m able to issue “using Movies” without adding the package.

My issue is when I tried to seed  
julia\>seed()  
Error: MethodError: cannot ‘convert’ an object of type PosLenString to an object of type Int64

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [June 22, 2022, 5:44am UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/8 "2022-06-22T05:44:10Z")

</div>

Can you provide the full stacktrace? And please quote code and outputs in ``` for proper formatting and readability.

---

<div class="post-metadata">

**Author:** ![marshians](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marshians/32/36041_2.png) [@marshians](https://discourse.julialang.org/u/marshians)\
**Post date:** [June 22, 2022, 2:28pm UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/9 "2022-06-22T14:28:09Z")

</div>

```julia
julia> seed()
ERROR: MethodError: Cannot `convert` an object of type PosLenString to an object of type Int64
Closest candidates are:
  convert(::Type{T}, ::Base.TwicePrecision) where T<:Number at /opt/julia-1.7.3/share/julia/base/twiceprecision.jl:262
  convert(::Type{T}, ::AbstractChar) where T<:Number at /opt/julia-1.7.3/share/julia/base/char.jl:185
  convert(::Type{T}, ::CartesianIndex{1}) where T<:Number at /opt/julia-1.7.3/share/julia/base/multidimensional.jl:136
  ...
Stacktrace:
 [1] setproperty!(x::Movie, f::Symbol, v::PosLenString)
   @ Base ./Base.jl:43
 [2] seed()
   @ Main ~/Desktop/web02/Watchtonight/db/seeds/seed_movies.jl:17
 [3] top-level scope
   @ REPL[11]:1
```

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [June 23, 2022, 5:36am UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/10 "2022-06-23T05:36:53Z")

</div>

Strange. For me line 17 reads

```julia
m.year = parse(Int, row.release_year)

```

Could it be you missed the `parse`?

---

<div class="post-metadata">

**Author:** ![marshians](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marshians/32/36041_2.png) [@marshians](https://discourse.julialang.org/u/marshians)\
**Post date:** [June 23, 2022, 2:38pm UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080/11 "2022-06-23T14:38:28Z")

</div>

yes, that worked. thank you
