happy-kitchen-89482
02/24/2022, 7:14 AMbrew install coursier/formulas/coursier
and cs setup
) and then try the raw cs fetch
command I pased abovehappy-kitchen-89482
02/24/2022, 7:14 AM~/Library/Caches/Coursier
happy-kitchen-89482
02/24/2022, 7:14 AMflat-zoo-31952
02/24/2022, 3:52 PMGet
to use this as an input to this calculation?ancient-vegetable-10556
02/24/2022, 4:11 PM~/.cache/pants
in its entirety (just to be certain ;)), using just the two repos you had configured. It might be worth seeing if it produces the same problematic resolve if you only have osgeo in placeancient-vegetable-10556
02/24/2022, 4:31 PMacoustic-librarian-3937
02/24/2022, 4:31 PMERROR: Links are not allowed as constraints
means?ancient-vegetable-10556
02/24/2022, 4:32 PMjai_core
JAR as an explicit jvm_artifact
dependency (using the jar=
field to a JAR in your repo, or the url=
field pointing to the osgeo.org URL for the JAR), and configuring that as an explicit dependency of at least one java/scala source. That will pass the JAR to Coursier explicitly, and it won’t go looking for it from a remote maven repo.happy-kitchen-89482
02/24/2022, 4:47 PMhappy-kitchen-89482
02/24/2022, 4:47 PMancient-vegetable-10556
02/24/2022, 4:48 PMpolite-garden-50641
02/24/2022, 4:49 PMancient-vegetable-10556
02/24/2022, 4:49 PMhappy-kitchen-89482
02/24/2022, 4:49 PMhappy-kitchen-89482
02/24/2022, 4:50 PMcs
and empty caches and it succeededhappy-kitchen-89482
02/24/2022, 4:50 PMancient-vegetable-10556
02/24/2022, 4:50 PMancient-vegetable-10556
02/24/2022, 4:51 PMancient-vegetable-10556
02/24/2022, 4:51 PMancient-vegetable-10556
02/24/2022, 4:51 PMancient-vegetable-10556
02/24/2022, 4:52 PM/private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/process-executionaHl9Ym/.cache/jdk/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.jar
stderr:
+ coursier_exe=__coursier/./cs-x86_64-apple-darwin
+ shift
+ json_output_file=coursier_report.json
+ shift
++ pwd
+ working_dir=/private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/process-executionaHl9Ym
+ __coursier/./cs-x86_64-apple-darwin fetch -r=<https://repo.osgeo.org/repository/geotools-releases> -r=<https://maven-central.storage-download.googleapis.com/maven2> --json-output-file=coursier_report.json org.scala-lang:scala-library:2.13.6 javax.media:jai_core:1.1.3
Downloading <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.pom>
Downloading <https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.pom>
Downloaded <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.pom>
Downloaded <https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.pom>
Downloading <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar>
Downloading <https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.jar>
Downloaded <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar>
Downloading <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar.sha1>
Downloaded <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar.sha1>
Downloaded <https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.jar>
+ /bin/mkdir -p classpath
+ /Users/chrisjrn/.pyenv/versions/3.8.12/bin/python __coursier/coursier_post_processing_script.py coursier_report.json
Traceback (most recent call last):
File "__coursier/coursier_post_processing_script.py", line 13, in <module>
source = PurePath(dep['file'])
File "/Users/chrisjrn/.pyenv/versions/3.8.12/lib/python3.8/pathlib.py", line 651, in __new__
return cls._from_parts(args)
File "/Users/chrisjrn/.pyenv/versions/3.8.12/lib/python3.8/pathlib.py", line 683, in _from_parts
drv, root, parts = self._parse_args(args)
File "/Users/chrisjrn/.pyenv/versions/3.8.12/lib/python3.8/pathlib.py", line 667, in _parse_args
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
That’s is from yesterday — note all the `Downloading`/`Downloaded` lines. Those don’t appear in stderr if Coursier is using its cacheancient-vegetable-10556
02/24/2022, 4:54 PMhappy-kitchen-89482
02/24/2022, 4:55 PMancient-vegetable-10556
02/24/2022, 4:55 PMancient-vegetable-10556
02/24/2022, 4:57 PM<http://osgeo.org|osgeo.org>
that has jai_core
as a dependency with <http://repo1.maven.org|repo1.maven.org>
as the first repo argument, and then re-attempt with <http://osgeo.org|osgeo.org>
as the first repo argument, without blowing away the cachehappy-kitchen-89482
02/24/2022, 4:57 PMhappy-kitchen-89482
02/24/2022, 4:57 PM<https://maven-central.storage-download.googleapis.com/maven2/org/apache/httpcomponents/httpcomponents-core/4.1.4/httpcomponents-core-4.1.4.pom>
100.0% [##########] 9.5 KiB (63.7 KiB / s)
happy-kitchen-89482
02/24/2022, 4:57 PMancient-vegetable-10556
02/24/2022, 4:57 PMhappy-kitchen-89482
02/24/2022, 4:58 PM