Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A aisdb
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • public_projects
  • aisdb
  • Issues
  • #11

Closed
Open
Created Jun 30, 2022 by Gabriel Spadon@gabrielspadon

Building Docker Package

Jay and I tried installing the package from the source files (aisdb-1.3.46) using Docker. We had a few problems in the process, and even after building the package successfully, we haven't been able to install the package from the wheels file due to a version mismatch.

System Information:

  • Gabriel: PopOS! 22.04 - Kernel: Linux 5.17.5-76051705-generic #202204271406~1653440576~20.04~6277a18~dev-Ubuntu SMP PREEMPT Th x86_64 x86_64 x86_64 GNU/Linux; and,
  • Jay: Ubuntu 18.04.06 LTS - Kernel: Linux 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux.

Steps we followed:

  1. Both of us are running Conda virtual envs. (specs at the end);
  2. We installed docker-compose from the APT repository;
  3. Then, we got an error while building due to a mismatched version of the docker-compose file, which is 3.9 and seems to support from 2.2 to 3.3;
  4. Changing that manually in the file didn't help, even having installed the last docker version (Docker version 20.10.14, build a224086349);
  5. Then we purged the docker installation and tried to install it from the SNAP package manager;
  6. I got it installed and working, but Jay couldn't. In this case probably because SNAP is better supported in newer Ubuntu releases.
  7. Using the Docker from SNAP, the error was gone, and the package was built after installing rust manually (from the website .sh file) and pysqlite3 on conda and python-SQLite libsqlite3-dev system-wide using APT.
  8. The wheels file could not be installed due to the following installation errors:
  • ERROR: aisdb-1.3.45-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl is not a supported wheel on this platform.
  • Note that we are building version 1.3.46 and we got 1.3.45 from Docker.
  1. Jay and I purged the files again and installed the docker-engine (last version) from the official website.
  2. We started getting the version mismatch error again.

Workaround:

  1. Clone the repository from git;
  2. Install from pip install. (without the editable tag due to failing to build);
  3. The package will complain about missing dependencies.
  4. Each problematic package was re-installed from the available website and APT sources.
  5. After this, the AISDB works for me but still does not work for Jay.

Errors from Jay's build:

This one was fixed: Jay-PIP-E1 This one also: Jay-PIP-E2 This is the current issue: Jay-PIP-E3

Jay's venv details: conda-jay.txt

Gabriel's venv details: conda-gabriel.txt

Comments about the docs:

  • There are no details about the docker installation, which could have helped avoid the previous problems we reported in the "installing from the source" section.
  • The command for installing the package from the source uses version 1.2.0, so the command is not for copy-paste; maybe using a generic string and highlighting fields that might change will make things easier for the user.
  • Lastly, there might be a way to adapt the manylinux2014 target. If so, that would be very beneficial to some users.
Edited Jun 30, 2022 by Gabriel Spadon
Assignee
Assign to
Time tracking