Turn a module into a package locally

@danielwe

Thank you for your kind suggestions. And thank you for tolerating my confused anxiety. By my 3rd post I was beginning to understand what was going on. I did not realize that Dev should be used in lieu of Add and only needed to be done once in an environment, not in each file where the package being developed might be used. Using then accesses the package at it’s “Dev” location.

And, yes, changes are picked up immediately from the working files with no need to commit and then “up” the package. As designed.

So, all of your suggestions worked perfectly, of course. I have “using Revise” in both startup.jl and startup_ijulia.jl so I am covered there.

Your suggestions about the notebooks are also apt. I removed my notebook directory from the repo for now. One notebook is used primarily for exploration of approaches and debugging. Others provide highlighted outputs and documentation of how to use the package and some of its workings. I’ll move those back into the repo when everything is a bit more complete.

3 Likes

Stymied again. I had marked @Danielwe’s great suggestions as solution, but it can’t handle changes to the dependencies used in a package.

I have confirmed that project.toml and manifest.toml have always contained Tables. But, see the error: when I add “using Tables” to the module definition in a package that is “dev”, it refuses to pick up the changes.

[ Info: Precompiling CovidSim_ilm [c70e2dfc-8e06-4fce-bc57-ad774aa1cb0a]
ERROR: LoadError: ArgumentError: Package CovidSim_ilm does not have Tables in its dependencies:
- You may have a partially installed environment. Try `Pkg.instantiate()`
  to ensure all packages in the environment are installed.
- Or, if you have CovidSim_ilm checked out for development and have
  added Tables as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.

It turned out that manifest.toml for the package DID contain an entry for Tables, but project.toml for the package did not!

I’ll do an rm and dev again and see if that fixes it. I can report that this doesn’t fix it. Since I am working in my base default environment @1.9 everything should be fine. But, it is not. Now I’ll try rm’ing and add’ing Tables. And then redoing rm and dev for my package.

Still doesn’t work. Seems unfixable. Bug in Pkg.Dev?

Truly stuck. Haven’t seen anything like it. I need to add Tables to the requirements for the package. How to force it?

I have done Pkg.resolve() but that shows no change because my default environment DID have Tables. Likewise Pkg.instantiate() All I did was add “using Tables” to the module of the package. It is never picked up. So, I think I need to do a commit and upgrade to fix this because Pkg.instantiate() and Pkg.resolve() don’t seem to fix it.

I have manually deleted the package directory in ~/.julia. I manually added Tables to project.toml for the package. Then re-dev’ed. Nothing fixes this problem.

What could be going wrong? It has to be possible to do this.

Did you add Tables.jl to your package enviornment?

cd("/path/to/CovidSim_ilm")
isfile("Project.toml")
using Pkg
Pkg.activate(".")
Pkg.instantiate()
Pkg.add("Tables")
1 Like

Can we see your Project.toml? I usually never manually edit it. I always use Pkg to do it.

Deleting the package directory in ~/.julia made it worse. That’s what it’s complaining about. The Manifest says the package is installed, but you deleted it. Pkg.instantitiate() should fix the issue as long as you added the dependency with the correct UUID to Project.toml.

1 Like

I am going to use your steps, but the problem was never with the default environment. Julia complained that it needed Pkg.resolve(). Not clear where in your sequence of commands it belongs. Tables had been there from the day I installed 1.9 and then 1.9.1.

Which project.toml do you mean? I assume you mean the one in the dir of the package being developed:

name = "CovidSim_ilm"
uuid = "c70e2dfc-8e06-4fce-bc57-ad774aa1cb0a"
authors = ["Lewis Levin <lewis@neilson-levin.org>"]
version = "0.8.0"
repo = "https://github.com/lewisl/CovidSim_ilm.git"

[compat]
julia = "1"

[deps]
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
PrettyPrint = "8162dcfd-2161-5ef2-ae6c-7681170c5f98"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
PlotThemes = "ccf2f8ad-2431-5c83-bf29-c5338b663b6a"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"
LazyTables = "3f3958f0-9dd7-4ba3-9331-125492819f7d"
TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9"
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"

[extras]


[targets]

It still doesn’t work. Here is the same error:

[ Info: Precompiling CovidSim_ilm [c70e2dfc-8e06-4fce-bc57-ad774aa1cb0a]
ERROR: LoadError: ArgumentError: Package CovidSim_ilm does not have Tables in its dependencies:
- You may have a partially installed environment. Try `Pkg.instantiate()`
  to ensure all packages in the environment are installed.
- Or, if you have CovidSim_ilm checked out for development and have
  added Tables as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with CovidSim_ilm
Stacktrace:
 [1] macro expansion
   @ ./loading.jl:1634 [inlined]
 [2] macro expansion
   @ ./lock.jl:267 [inlined]
 [3] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1611
 [4] include
   @ ./Base.jl:457 [inlined]
 [5] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
   @ Base ./loading.jl:2045
 [6] top-level scope
   @ stdin:3
in expression starting at /Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM/src/CovidSim_ilm.jl:42
in expression starting at stdin:3
Failed to precompile CovidSim_ilm [c70e2dfc-8e06-4fce-bc57-ad774aa1cb0a] to "/Users/lewis/.julia/compiled/v1.9/CovidSim_ilm/jl_bPX86T".

Here is a minimalist demo from Windows Powershell.

First I create a directory “LewisDemo”. That directory contains “Project.toml” and the directory “src”. The directory “src” contains LewisDemo.jl". When I try to do using LewisDemo I get the same error message that you got.

PS C:\Users\mkitti> tree LewisDemo /F
Folder PATH listing for volume Windows
C:\USERS\MKITTI\LEWISDEMO
│   Project.toml
│
└───src
        LewisDemo.jl

PS C:\Users\mkitti> cat .\LewisDemo\Project.toml
name = "LewisDemo"
uuid = "c01d0324-b1ab-4217-8193-3b6beef15e0f"

PS C:\Users\kittisopikulm> cat .\LewisDemo\src\LewisDemo.jl
module LewisDemo
    using Tables
end

PS C:\Users\mkitti> julia --project=LewisDemo -e "using LewisDemo"
ERROR: LoadError: ArgumentError: Package LewisDemo does not have Tables in its dependencies:
- You may have a partially installed environment. Try `Pkg.instantiate()`
  to ensure all packages in the environment are installed.
- Or, if you have LewisDemo checked out for development and have
  added Tables as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with LewisDemo
Stacktrace:
...

To resolve this, I set the project environment to that of the package, and add Tables to it via Pkg. This will manipulate my Project.toml.

PS C:\Users\mkitti> julia --project=LewisDemo -e 'using Pkg; Pkg.add(""Tables"")'  
   Resolving package versions...
    Updating `C:\Users\mkitti\LewisDemo\Project.toml`
  [bd369af6] + Tables v1.10.1
    Updating `C:\Users\kittisopikulm\LewisDemo\Manifest.toml`
  [9a962f9c] + DataAPI v1.15.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [bac558e1] + OrderedCollections v1.6.0
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.10.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [b77e0a4c] + InteractiveUtils
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [8dfed614] + Test
  [e66e0078] + CompilerSupportLibraries_jll v1.0.2+0
  [8e850b90] + libblastrampoline_jll v5.8.0+0
Precompiling project...
  2 dependencies successfully precompiled in 2 seconds. 6 already precompiled.

PS C:\Users\mkitti> tree /F LewisDemo
Folder PATH listing for volume Windows
Volume serial number is 000000F4 74E7:7C89
C:\USERS\MKITTI\LEWISDEMO
│   Manifest.toml
│   Project.toml
│
└───src
        LewisDemo.jl

PS C:\Users\mkitti> cat .\LewisDemo\src\LewisDemo.jl
module LewisDemo
    using Tables
end

PS C:\Users\mkitti> cat .\LewisDemo\Project.toml    
name = "LewisDemo"
uuid = "c01d0324-b1ab-4217-8193-3b6beef15e0f"

[deps]
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

PS C:\Users\mkitti> cat .\LewisDemo\Manifest.toml
# This file is machine-generated - editing it directly is not advised

julia_version = "1.9.1"
manifest_format = "2.0"
project_hash = "ae58e61c59fb70af52d8f17a4adae24d91963e02"

[[deps.Artifacts]]
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"

[[deps.Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

[[deps.CompilerSupportLibraries_jll]]
deps = ["Artifacts", "Libdl"]
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
version = "1.0.2+0"

[[deps.DataAPI]]
git-tree-sha1 = "8da84edb865b0b5b0100c0666a9bc9a0b71c553c"
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
version = "1.15.0"

[[deps.DataValueInterfaces]]
git-tree-sha1 = "bfc1187b79289637fa0ef6d4436ebdfe6905cbd6"
uuid = "e2d170a0-9d28-54be-80f0-106bbe20a464"
version = "1.0.0"

[[deps.InteractiveUtils]]
deps = ["Markdown"]
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"

[[deps.IteratorInterfaceExtensions]]
git-tree-sha1 = "a3f24677c21f5bbe9d2a714f95dcd58337fb2856"
uuid = "82899510-4779-5014-852e-03e436cf321d"
version = "1.0.0"

[[deps.Libdl]]
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

[[deps.LinearAlgebra]]
deps = ["Libdl", "OpenBLAS_jll", "libblastrampoline_jll"]
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[[deps.Logging]]
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"

[[deps.Markdown]]
deps = ["Base64"]
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"

[[deps.OpenBLAS_jll]]
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
version = "0.3.21+4"

[[deps.OrderedCollections]]
git-tree-sha1 = "d321bf2de576bf25ec4d3e4360faca399afca282"
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
version = "1.6.0"

[[deps.Random]]
deps = ["SHA", "Serialization"]
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[[deps.SHA]]
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
version = "0.7.0"

[[deps.Serialization]]
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"

[[deps.TableTraits]]
deps = ["IteratorInterfaceExtensions"]
git-tree-sha1 = "c06b2f539df1c6efa794486abfb6ed2022561a39"
uuid = "3783bdb8-4a98-5b6b-af9a-565f29a5fe9c"
version = "1.0.1"

[[deps.Tables]]
deps = ["DataAPI", "DataValueInterfaces", "IteratorInterfaceExtensions", "LinearAlgebra", "OrderedCollections", "TableTraits", "Test"]
git-tree-sha1 = "1544b926975372da01227b382066ab70e574a3ec"
uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
version = "1.10.1"

[[deps.Test]]
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[[deps.libblastrampoline_jll]]
deps = ["Artifacts", "Libdl"]
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
version = "5.8.0+0"

PS C:\Users\mkitti> julia --project=LewisDemo -e "using LewisDemo"

PS C:\Users\mkitti> julia -e "using Pkg; Pkg.activate(; temp=true); Pkg.develop(path=""""LewisDemo""""); using LewisDemo"
  Activating new project at `C:\Users\mkitti\AppData\Local\Temp\jl_TBKSot`
   Resolving package versions...
    Updating `C:\Users\mkitti\AppData\Local\Temp\jl_TBKSot\Project.toml`
  [c01d0324] + LewisDemo v0.0.0 `..\..\..\..\LewisDemo`
    Updating `C:\Users\mkitti\AppData\Local\Temp\jl_TBKSot\Manifest.toml`
  [9a962f9c] + DataAPI v1.15.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [c01d0324] + LewisDemo v0.0.0 `..\..\..\..\LewisDemo`
  [bac558e1] + OrderedCollections v1.6.0
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.10.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [b77e0a4c] + InteractiveUtils
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [8dfed614] + Test
  [e66e0078] + CompilerSupportLibraries_jll v1.0.2+0
  [4536629a] + OpenBLAS_jll v0.3.21+4
  [8e850b90] + libblastrampoline_jll v5.8.0+0

PS C:\Users\mkitti>  # no error
2 Likes

Thanks for sticking with this.

Project is also a rather amorphous concept. It should be nothing but a directory containing a project.toml file.

But, I am confused that I can refer to it as “myproject” in the command line to run julia. How does julia know where it is?

In my case it should be at: /Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM

so do I put the entire path in the julia command as:

julia --project="/Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM" -e 'using Pkg; Pkg.add(""Tables"")'
1 Like

If you are on a Unix system, the command should be.

julia --project="/Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM" -e 'using Pkg; Pkg.add("Tables")'
1 Like

Didn’t work:

julia --project="/Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM" -e 'using Pkg; Pkg.add(""Tables"")'
ERROR: syntax: cannot juxtapose string literal
Stacktrace:
 [1] top-level scope
   @ none:1

Works when removing the double double-quotes around the package name. That must be some Powershell thing.

julia --project="/Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM" -e 'using Pkg; Pkg.add("Tables")'
   Resolving package versions...
  No Changes to `~/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM/Project.toml`
  No Changes to `~/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM/Manifest.toml`

But, as you can see no changes are made to project.toml or manifest.toml. It also remains strange that ] st shows the package that I “dev’ed”, but there is no package in my Julia installation. I can also do “using mypackage”, but of course the failed dependency error still occurs.

This feels like a delete everything and start over problem or some bug in Pkg.

See the message above.

using Pkg; Pkg.add("Tables")

See 4. Working with Environment · Pkg.jl .

Essentially, there are two project environments involved here:

  1. Your package project enviornment.
    /Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM/

  2. Your default enviornment.
    /Users/lewis/.julia/environments/v1.9

Since you are buliding a package, we need to manipulate /Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM/Project.toml via Pkg. This declares dependencies for the Covid-ILM package.

Can we see the contents of /Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM/Project.toml?

That is clear enough.

Here is that project.toml:

name = "CovidSim_ilm"
uuid = "c70e2dfc-8e06-4fce-bc57-ad774aa1cb0a"
authors = ["Lewis Levin <lewis@neilson-levin.org>"]
version = "0.8.0"
repo = "https://github.com/lewisl/CovidSim_ilm.git"

[compat]
julia = "1"

[deps]
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
PrettyPrint = "8162dcfd-2161-5ef2-ae6c-7681170c5f98"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
PlotThemes = "ccf2f8ad-2431-5c83-bf29-c5338b663b6a"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"
LazyTables = "3f3958f0-9dd7-4ba3-9331-125492819f7d"
TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9"
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"

[extras]


[targets]

What is the output of this?

julia --project="/Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM" -e "using Pkg; Pkg.instantiate(); using CovidSim_ilm"

No output. Assume that means the commands completed successfully.

1 Like

Next command. This creates a temporary project environment, to which we will dev the package into.

julia -e 'using Pkg; Pkg.activate(; temp=true); Pkg.develop(path="/Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM"); using CovidSim_ilm)'

If that works, you can try adding the package to your default enviornment.

julia -e 'using Pkg; Pkg.instantiate(); Pkg.develop(path="/Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM"); using CovidSim_ilm)'

First command success (minus spurious ‘)’)

julia -e 'using Pkg; Pkg.activate(; temp=true); Pkg.develop(path="/Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM"); using CovidSim_ilm'
  Activating new project at `/var/folders/9m/q4m1bq1972z9gqw3d7s9rqfh0000gn/T/jl_ZizaD2`
   Resolving package versions...
   Installed FillArrays ───── v1.2.1
   Installed DataStructures ─ v0.18.14
   Installed HTTP ─────────── v1.9.8
   Installed Distributions ── v0.25.97
    Updating `/private/var/folders/9m/q4m1bq1972z9gqw3d7s9rqfh0000gn/T/jl_ZizaD2/Project.toml`
  [c70e2dfc] + CovidSim_ilm v0.8.0 `~/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM`
    Updating `/private/var/folders/9m/q4m1bq1972z9gqw3d7s9rqfh0000gn/T/jl_ZizaD2/Manifest.toml`
  [79e6a3ab] + Adapt v3.6.2
  [13072b0f] + AxisAlgorithms v1.0.1
  [d1d4a3ce] + BitFlags v0.1.7
  [336ed68f] + CSV v0.10.11
  [49dc2e85] + Calculus v0.5.1
  [d360d2e6] + ChainRulesCore v1.16.0
  [944b1d66] + CodecZlib v0.7.1
  [35d6a980] + ColorSchemes v3.21.0
  [3da002f7] + ColorTypes v0.11.4
  [c3611d14] + ColorVectorSpace v0.9.10
  [5ae59095] + Colors v0.12.10
  [34da2185] + Compat v4.7.0
  [f0e56b4a] + ConcurrentUtilities v2.2.0
  [187b0558] + ConstructionBase v1.5.2
  [d38c429a] + Contour v0.6.2
  [c70e2dfc] + CovidSim_ilm v0.8.0 `~/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM`
  [a8cc5b0e] + Crayons v4.1.1
  [9a962f9c] + DataAPI v1.15.0
  [864edb3b] + DataStructures v0.18.14
  [e2d170a0] + DataValueInterfaces v1.0.0
  [8bb1440f] + DelimitedFiles v1.9.1
  [85a47980] + Dictionaries v0.3.25
  [31c24e10] + Distributions v0.25.97
  [ffbed154] + DocStringExtensions v0.9.3
  [fa6b7ba4] + DualNumbers v0.6.8
  [460bff9d] + ExceptionUnwrapping v0.1.9
  [c87230d0] + FFMPEG v0.4.1
  [48062228] + FilePathsBase v0.9.20
  [1a297f60] + FillArrays v1.2.1
  [53c48c17] + FixedPointNumbers v0.8.4
  [59287772] + Formatting v0.4.2
  [28b8d3ca] + GR v0.72.7
  [42e2da0e] + Grisu v1.0.2
  [cd3eb016] + HTTP v1.9.8
  [34004b35] + HypergeometricFunctions v0.3.17
  [313cdc1a] + Indexing v1.1.1
  [842dd82b] + InlineStrings v1.4.0
  [a98d9a8b] + Interpolations v0.14.7
  [92d709cd] + IrrationalConstants v0.2.2
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [1019f520] + JLFzf v0.1.5
  [692b3bcd] + JLLWrappers v1.4.1
  [682c06a0] + JSON v0.21.4
  [b964fa9f] + LaTeXStrings v1.3.0
  [23fbe1c1] + Latexify v0.16.1
  [3f3958f0] + LazyTables v0.1.2
  [2ab3a3ac] + LogExpFunctions v0.3.24
  [e6f89c97] + LoggingExtras v1.0.0
  [1914dd2f] + MacroTools v0.5.10
  [739be429] + MbedTLS v1.1.7
  [442fdcdd] + Measures v0.3.2
  [e1d29d7a] + Missings v1.1.0
  [77ba4419] + NaNMath v1.0.2
  [6fe1bfb0] + OffsetArrays v1.12.9
  [4d8831e6] + OpenSSL v1.4.1
  [bac558e1] + OrderedCollections v1.6.0
  [90014a1f] + PDMats v0.11.17
  [69de0a69] + Parsers v2.7.1
  [b98c9c47] + Pipe v1.3.0
  [ccf2f8ad] + PlotThemes v3.1.0
  [995b91a9] + PlotUtils v1.3.5
  [91a5bcdd] + Plots v1.38.16
  [2dfb63ee] + PooledArrays v1.4.2
  [aea7be01] + PrecompileTools v1.1.2
  [21216c6a] + Preferences v1.4.0
  [8162dcfd] + PrettyPrint v0.2.0
  [08abe8d2] + PrettyTables v2.2.4
  [1fd47b50] + QuadGK v2.8.2
  [c84ed2f1] + Ratios v0.4.5
  [3cdcf5f2] + RecipesBase v1.3.4
  [01d81517] + RecipesPipeline v0.6.12
  [189a3867] + Reexport v1.2.2
  [05181044] + RelocatableFolders v1.0.0
  [ae029012] + Requires v1.3.0
  [79098fc4] + Rmath v0.7.1
  [6c6a2e73] + Scratch v1.2.0
  [91c51154] + SentinelArrays v1.4.0
  [992d4aef] + Showoff v1.0.3
  [777ac1f9] + SimpleBufferStream v1.1.0
  [a2af1166] + SortingAlgorithms v1.1.1
  [276daf66] + SpecialFunctions v2.3.0
  [03a91e81] + SplitApplyCombine v1.2.2
  [90137ffa] + StaticArrays v1.5.26
  [1e83bf80] + StaticArraysCore v1.4.0
  [82ae8749] + StatsAPI v1.6.0
  [2913bbd2] + StatsBase v0.34.0
  [4c63d2b9] + StatsFuns v1.3.0
  [69024149] + StringEncodings v0.3.6
  [892a3eda] + StringManipulation v0.3.0
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.10.1
  [62fd8b95] + TensorCore v0.1.1
  [3bb67fe8] + TranscodingStreams v0.9.13
  [9d95f2ec] + TypedTables v1.4.3
  [5c2747f8] + URIs v1.4.2
  [1cfade01] + UnicodeFun v0.4.1
  [1986cc42] + Unitful v1.14.0
  [45397f5d] + UnitfulLatexify v1.6.3
  [41fe7b60] + Unzip v0.2.0
  [ea10d353] + WeakRefStrings v1.4.2
  [efce3f68] + WoodburyMatrices v0.5.5
  [76eceee3] + WorkerUtilities v1.6.1
  [ddb6d928] + YAML v0.4.9
  [6e34b625] + Bzip2_jll v1.0.8+0
  [83423d85] + Cairo_jll v1.16.1+1
  [2e619515] + Expat_jll v2.5.0+0
  [b22a6f82] + FFMPEG_jll v4.4.2+2
  [a3f928ae] + Fontconfig_jll v2.13.93+0
  [d7e528f0] + FreeType2_jll v2.10.4+0
  [559328eb] + FriBidi_jll v1.0.10+0
  [0656b61e] + GLFW_jll v3.3.8+0
  [d2c73de3] + GR_jll v0.72.7+0
  [78b55507] + Gettext_jll v0.21.0+0
  [7746bdde] + Glib_jll v2.74.0+2
  [3b182d85] + Graphite2_jll v1.3.14+0
  [2e76f6c2] + HarfBuzz_jll v2.8.1+1
  [aacddb02] + JpegTurbo_jll v2.1.91+0
  [c1c5ebd0] + LAME_jll v3.100.1+0
  [88015f11] + LERC_jll v3.0.0+1
  [1d63c593] + LLVMOpenMP_jll v15.0.4+0
  [dd4b983a] + LZO_jll v2.10.1+0
⌅ [e9f186c6] + Libffi_jll v3.2.2+1
  [d4300ac3] + Libgcrypt_jll v1.8.7+0
  [7e76a0d4] + Libglvnd_jll v1.6.0+0
  [7add5ba3] + Libgpg_error_jll v1.42.0+0
  [94ce4f54] + Libiconv_jll v1.16.1+2
  [4b2f31a3] + Libmount_jll v2.35.0+0
⌅ [89763e89] + Libtiff_jll v4.4.0+0
  [38a345b3] + Libuuid_jll v2.36.0+0
  [e7412a2a] + Ogg_jll v1.3.5+1
⌅ [458c3c95] + OpenSSL_jll v1.1.21+0
  [efe28fd5] + OpenSpecFun_jll v0.5.5+0
  [91d4177d] + Opus_jll v1.3.2+0
  [30392449] + Pixman_jll v0.42.2+0
  [ea2cea3b] + Qt5Base_jll v5.15.3+2
  [f50d1b31] + Rmath_jll v0.4.0+0
  [a2964d1f] + Wayland_jll v1.21.0+0
  [2381bf8a] + Wayland_protocols_jll v1.25.0+0
  [02c8fc9c] + XML2_jll v2.10.3+0
  [aed1982a] + XSLT_jll v1.1.34+0
  [4f6342f7] + Xorg_libX11_jll v1.6.9+4
  [0c0b7dd1] + Xorg_libXau_jll v1.0.9+4
  [935fb764] + Xorg_libXcursor_jll v1.2.0+4
  [a3789734] + Xorg_libXdmcp_jll v1.1.3+4
  [1082639a] + Xorg_libXext_jll v1.3.4+4
  [d091e8ba] + Xorg_libXfixes_jll v5.0.3+4
  [a51aa0fd] + Xorg_libXi_jll v1.7.10+4
  [d1454406] + Xorg_libXinerama_jll v1.1.4+4
  [ec84b674] + Xorg_libXrandr_jll v1.5.2+4
  [ea2f1a96] + Xorg_libXrender_jll v0.9.10+4
  [14d82f49] + Xorg_libpthread_stubs_jll v0.1.0+3
  [c7cfdc94] + Xorg_libxcb_jll v1.13.0+3
  [cc61e674] + Xorg_libxkbfile_jll v1.1.0+4
  [12413925] + Xorg_xcb_util_image_jll v0.4.0+1
  [2def613f] + Xorg_xcb_util_jll v0.4.0+1
  [975044d2] + Xorg_xcb_util_keysyms_jll v0.4.0+1
  [0d47668e] + Xorg_xcb_util_renderutil_jll v0.3.9+1
  [c22f9ab0] + Xorg_xcb_util_wm_jll v0.4.1+1
  [35661453] + Xorg_xkbcomp_jll v1.4.2+4
  [33bec58e] + Xorg_xkeyboard_config_jll v2.27.0+4
  [c5fb5394] + Xorg_xtrans_jll v1.4.0+3
  [3161d3a3] + Zstd_jll v1.5.5+0
⌅ [214eeab7] + fzf_jll v0.29.0+0
  [a4ae2306] + libaom_jll v3.4.0+0
  [0ac62f75] + libass_jll v0.15.1+0
  [f638f0a6] + libfdk_aac_jll v2.0.2+0
  [b53b4c65] + libpng_jll v1.6.38+0
  [f27f6e37] + libvorbis_jll v1.3.7+1
  [1270edf5] + x264_jll v2021.5.5+0
  [dfaa095f] + x265_jll v3.5.0+0
  [d8fb68d0] + xkbcommon_jll v1.4.1+0
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8ba89e20] + Distributed
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [b27032c2] + LibCURL v0.6.3
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.9.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [1a1011a3] + SharedArrays
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays
  [10745b16] + Statistics v1.9.0
  [4607b0f0] + SuiteSparse
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll v1.0.2+0
  [deac9b47] + LibCURL_jll v7.84.0+0
  [29816b5a] + LibSSH2_jll v1.10.2+0
  [c8ffd9c3] + MbedTLS_jll v2.28.2+0
  [14a3606d] + MozillaCACerts_jll v2022.10.11
  [4536629a] + OpenBLAS_jll v0.3.21+4
  [05823500] + OpenLibm_jll v0.8.1+0
  [efcefdf7] + PCRE2_jll v10.42.0+0
  [bea87d4a] + SuiteSparse_jll v5.10.1+6
  [83775a58] + Zlib_jll v1.2.13+0
  [8e850b90] + libblastrampoline_jll v5.8.0+0
  [8e850ede] + nghttp2_jll v1.48.0+0
  [3f19e933] + p7zip_jll v17.4.0+0
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`

second command:

julia -e 'using Pkg; Pkg.instantiate(); Pkg.develop(path="/Users/lewis/Library/CloudStorage/Dropbox/Covid Modeling/Covid-ILM"); using CovidSim_ilm'
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.9/Project.toml`
  No Changes to `~/.julia/environments/v1.9/Manifest.toml`

Good. You should be able to just do julia -e "using CovidSim_ilm" now and your issue should be resolved. You should also be able to start julia interactively and type using CovidSim_ilm at the julia prompt.

Interesting:

there is no pacakge directory for the dev’ed package in ~/.julia/packages. Is that typical? I had been successfully using Dev (I could make edit changes and simple re-run code and the changes were picked up) AND the package was in the .julia directory.

I just did using CovidSim_ilm in Julia repl successfully.

I am going to try the notebook(): Hooray! It works.

So, to make the long story short: what happened?

How did your fixes fix it?

What should I have done when adding a dependent package? (ordinary changes to my Julia source were working fine…)

Yup!

Perhaps I had been using Pkg.develop() incorrectly. I passed the path to the directory of the project as the argument rather than using Path=“the path”.

I also looked for the folder in /var/folders but it was gone–guess that’s what temp=true means.