Not to bloat the Upgradathon thread any further, I am asking in a new thread. Irrelevant point: I can’t seem to add or find “upgradathon” or “v0.7” tags, it would be nice to have something like that at least temporarily.
I have been trying to upgrade
KissThreading.jl which uses functions that were moved to
Random and others to
StatsBase. I cloned the package as an old habit since it is not registered, I suppose
develop is the
Pkg3 analogue. The package was installed in the
I then tried adding the following lines:
if VERSION > v"0.7-" using Random: MersenneTwister, randjump end
I also used similar lines for some
StatsBase functions, and then ran the tests again only to get:
ERROR: LoadError: LoadError: ArgumentError: Package KissThreading does not have Random in its dependencies: - If you have KissThreading checked out for development and have added Random 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 KissThreading.
Now I am on the master branch of
KissThreading so I suppose that means I have it checked out for development, but I didn’t add Random as a dependency since it was not in the
REQUIRE file, since there was no
REQUIRE file to begin with. So great, I added
StatsBase to a REQUIRE file and tried again, got the same error. I then ran
Pkg.resolve() as it recommends and got the following error:
ERROR: The following package names could not be resolved: * Random (9a3f8284-a2c9-5f02-9a11-845980a1fd5c in manifest but not in project) Please specify by known `name=uuid`.
While I was trying random things, I removed the contents of the
REQUIRE file again and tried
Pkg.resolve() again getting a different error this time:
ERROR: Unsatisfiable requirements detected for package (unknown) [10745b16]: (unknown) [10745b16] log: ├─(unknown) [10745b16] has no known versions! └─found to have no compatible versions left with StatsBase [2913bbd2] └─StatsBase [2913bbd2] log: ├─possible versions are: [0.1.0, 0.2.0-0.2.1, 0.2.3-0.2.10, 0.3.0-0.3.13, 0.4.0-0.4.4, 0.5.0-0.5.3, 0.6.0-0.6.16, 0.7.0-0.7.4, 0.8.0-0.8.3, 0.9.0, 0.10.0, 0.11.0-0.11.1, 0.12.0, 0.13.0-0.13.1, 0.14.0-0.14.1, 0.15.0, 0.16.0-0.16.1, 0.17.0, 0.18.0, 0.19.0-0.19.5, 0.20.0-0.20.1, 0.22.0, 0.23.0-0.23.1, 0.24.0] or uninstalled └─restricted to versions 0.24.0 by an explicit requirement, leaving only versions 0.24.0
Any idea what’s happening and how to avoid these errors? And more importantly, where can one read more about the awesome-if-only-I-can-use-it Pkg3? Any help is appreciated. Thank you.