Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in micromamba env and Docker on setup #183

Open
ischlo opened this issue Jun 17, 2024 · 3 comments
Open

Errors in micromamba env and Docker on setup #183

ischlo opened this issue Jun 17, 2024 · 3 comments

Comments

@ischlo
Copy link

ischlo commented Jun 17, 2024

Hi,
When installing on Mac with apple chips, the following errors occur :

micromamba:

  • due to the version of osmium-tool being strictly 1.14.0, installation fails since the current latest version on brew is 1.16.0. Unless this specific version is required, change to a less strict condition to avoid the error. Brew also does not really allow to set up older versions of packages.

Docker:

  • error when reading from osgeo/proj, when looking into it, it turns out that the error comes from the platform requirement, which should be linux. Adding --platform linux/amd64 in the docker build command solves this error.

  • it aborts later on after listing the dependencies with an unclear error message.

@tomalrussell
Copy link
Member

Hi @ischlo thanks for running through these

  • micromamba - where does brew come into this? Micromamba should be looking for osmium-tool on the conda-forge channel, where 1.14.0 is available. The strict version is necessary for testing and reproducibility.

  • docker - the --platform linux/amd64 flag is useful for compatibility on arm machines, this should be added to the documentation. The Dockerfile could likely be simplified or built from a different base package. Can you copy the full error log up?

This markdown snippet might be useful for avoiding a wall of text:

<details><summary>Full Message</summary>

```
... logs go here
```

</details>

@ischlo
Copy link
Author

ischlo commented Jun 17, 2024

Hi @tomalrussell ,

  • I will rerun and see why it does not install osmium-tool locally from conda-forge when the dependency is not met...
  • Here is the log from docker (in the final line, it aborts before being able to reply) :
Full Message

WARNING:apt does not have a stable CLI interface. Use with caution in scripts.

Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1910 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2183 kB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1090 kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2469 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2542 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1391 kB]
Fetched 11.8 MB in 5s (2432 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
1 package can be upgraded. Run 'apt list --upgradable' to see it.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu bzip2 bzip2-doc
cmake-data cpp cpp-11 dh-elpa-helper dirmngr dpkg-dev emacsen-common
fakeroot fontconfig-config fonts-dejavu-core g++ g++-11 gcc gcc-11
gcc-11-base gdal-data gnupg gnupg-l10n gnupg-utils gpg gpg-agent
gpg-wks-client gpg-wks-server gpgconf gpgsm libaec0 libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libaom3 libarchive13
libarmadillo10 libarpack2 libasan6 libassuan0 libatomic1 libbinutils
libblas3 libblosc1 libboost-program-options1.74-dev
libboost-program-options1.74.0 libboost1.74-dev libbsd0 libc-dev-bin
libc-devtools libc6-dev libcc1-0 libcfitsio9 libcharls2 libcrypt-dev
libctf-nobfd0 libctf0 libdav1d5 libde265-0 libdpkg-perl libexpat1
libfakeroot libfile-fcntllock-perl libfontconfig1 libfreetype6 libfreexl1
libfyba0 libgcc-11-dev libgd3 libgdal30 libgdbm-compat4 libgdbm6
libgeos-c1v5 libgeos3.10.2 libgeotiff5 libgfortran5 libgif7 libgomp1
libhdf4-0-alt libhdf5-103-1 libhdf5-hl-100 libheif1 libicu70 libisl23
libitm1 libjson-c5 libjsoncpp25 libkmlbase1 libkmldom1 libkmlengine1
libksba8 liblapack3 liblcms2-2 liblocale-gettext-perl liblsan0 libltdl7
libmd0 libminizip1 libmpc3 libmpdec3 libmpfr6 libmysqlclient21 libnetcdf19
libnpth0 libnsl-dev libnspr4 libnss3 libnuma1 libodbc2 libodbcinst2
libogdi4.1 libopenjp2-7 libperl5.34 libpng16-16 libpoppler118 libpq5
libproj22 libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib
libqhull-r8.0 libquadmath0 libreadline8 librhash0 librttopo1 libsnappy1v5
libspatialite7 libstdc++-11-dev libsuperlu5 libsz2 libtirpc-dev libtsan0
libubsan1 liburiparser1 libuv1 libx11-6 libx11-data libx265-199 libxau6
libxcb1 libxdmcp6 libxerces-c3.2 libxml2 libxpm4 linux-libc-dev
lto-disabled-list make manpages manpages-dev media-types mysql-common
netbase patch perl perl-modules-5.34 pinentry-curses poppler-data proj-bin
proj-data python3 python3-gdal python3-minimal python3-numpy
python3-pkg-resources python3.10 python3.10-minimal readline-common
rpcsvc-proto ucf unixodbc-common xz-utils
Suggested packages:
binutils-doc cmake-doc ninja-build cmake-format cpp-doc gcc-11-locales
dbus-user-session libpam-systemd pinentry-gnome3 tor debian-keyring
g++-multilib g++-11-multilib gcc-11-doc gcc-multilib autoconf automake
libtool flex bison gdb gcc-doc gcc-11-multilib libgdal-grass parcimonie
xloadimage scdaemon lrzip libboost1.74-doc libboost-atomic1.74-dev
libboost-chrono1.74-dev libboost-container1.74-dev libboost-context1.74-dev
libboost-contract1.74-dev libboost-coroutine1.74-dev
libboost-date-time1.74-dev libboost-exception1.74-dev libboost-fiber1.74-dev
libboost-filesystem1.74-dev libboost-graph1.74-dev
libboost-graph-parallel1.74-dev libboost-iostreams1.74-dev
libboost-locale1.74-dev libboost-log1.74-dev libboost-math1.74-dev
libboost-mpi1.74-dev libboost-mpi-python1.74-dev libboost-numpy1.74-dev
libboost-python1.74-dev libboost-random1.74-dev libboost-regex1.74-dev
libboost-serialization1.74-dev libboost-stacktrace1.74-dev
libboost-system1.74-dev libboost-test1.74-dev libboost-thread1.74-dev
libboost-timer1.74-dev libboost-type-erasure1.74-dev libboost-wave1.74-dev
libboost1.74-tools-dev libmpfrc++-dev libntl-dev libboost-nowide1.74-dev
glibc-doc git bzr libgd-tools gdbm-l10n geotiff-bin libgeotiff-epsg
libhdf4-doc libhdf4-alt-dev hdf4-tools liblcms2-utils odbc-postgresql
tdsodbc ogdi-bin libstdc++-11-doc make-doc man-browser ed diffutils-doc
perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl
libtap-harness-archive-perl pinentry-doc poppler-utils ghostscript
fonts-japanese-mincho | fonts-ipafont-mincho fonts-japanese-gothic
| fonts-ipafont-gothic fonts-arphic-ukai fonts-arphic-uming fonts-nanum
python3-doc python3-tk python3-venv gfortran python-numpy-doc python3-dev
python3-pytest python3-setuptools python3.10-venv python3.10-doc
binfmt-support readline-doc
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu build-essential bzip2
bzip2-doc cmake cmake-data cpp cpp-11 dh-elpa-helper dirmngr dpkg-dev
emacsen-common fakeroot fontconfig-config fonts-dejavu-core g++ g++-11 gcc
gcc-11 gcc-11-base gdal-bin gdal-data gnupg gnupg-l10n gnupg-utils gpg
gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libaec0
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libaom3 libarchive13 libarmadillo10 libarpack2 libasan6 libassuan0
libatomic1 libbinutils libblas3 libblosc1 libboost-program-options-dev
libboost-program-options1.74-dev libboost-program-options1.74.0
libboost1.74-dev libbsd0 libbz2-dev libc-dev-bin libc-devtools libc6-dev
libcc1-0 libcfitsio9 libcharls2 libcrypt-dev libctf-nobfd0 libctf0 libdav1d5
libde265-0 libdpkg-perl libexpat1 libexpat1-dev libfakeroot
libfile-fcntllock-perl libfontconfig1 libfreetype6 libfreexl1 libfyba0
libgcc-11-dev libgd3 libgdal30 libgdbm-compat4 libgdbm6 libgeos-c1v5
libgeos3.10.2 libgeotiff5 libgfortran5 libgif7 libgomp1 libhdf4-0-alt
libhdf5-103-1 libhdf5-hl-100 libheif1 libicu70 libisl23 libitm1 libjson-c5
libjsoncpp25 libkmlbase1 libkmldom1 libkmlengine1 libksba8 liblapack3
liblcms2-2 liblocale-gettext-perl liblsan0 libltdl7 libmd0 libminizip1
libmpc3 libmpdec3 libmpfr6 libmysqlclient21 libnetcdf19 libnpth0 libnsl-dev
libnspr4 libnss3 libnuma1 libodbc2 libodbcinst2 libogdi4.1 libopenjp2-7
libperl5.34 libpng16-16 libpoppler118 libpq5 libproj22 libpython3-stdlib
libpython3.10-minimal libpython3.10-stdlib libqhull-r8.0 libquadmath0
libreadline8 librhash0 librttopo1 libsnappy1v5 libspatialite7
libstdc++-11-dev libsuperlu5 libsz2 libtirpc-dev libtsan0 libubsan1
liburiparser1 libuv1 libx11-6 libx11-data libx265-199 libxau6 libxcb1
libxdmcp6 libxerces-c3.2 libxml2 libxpm4 linux-libc-dev lto-disabled-list
make manpages manpages-dev media-types mysql-common netbase patch perl
perl-modules-5.34 pinentry-curses poppler-data proj-bin proj-data python3
python3-gdal python3-minimal python3-numpy python3-pkg-resources python3.10
python3.10-minimal readline-common rpcsvc-proto ucf unixodbc-common xz-utils
zlib1g-dev
0 upgraded, 178 newly installed, 0 to remove and 1 not upgraded.
Need to get 164 MB of archives.
After this operation, 704 MB of additional disk space will be used.
Do you want to continue? [Y/n]Abort.

@ischlo
Copy link
Author

ischlo commented Jun 17, 2024

Here is the log from the local setup when osmium-tool is 1.14.0:

error libmamba Could not solve for environment specs
The following package could not be installed
└─ osmium-tool 1.14.0 does not exist (perhaps a typo or a missing channel).
critical libmamba Could not solve for environment specs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants