Cannot compile the taxhub container again #54

Closed
opened 2024-01-08 14:20:23 +00:00 by juminet · 2 comments
Owner

The DockerFile for taxhub must be updated. Here are the errors

7.72 Building wheels for collected packages: itsdangerous, MarkupSafe, psycopg2, pypnusershub, bcrypt
17.72 Running setup.py bdist_wheel for itsdangerous: started
17.85 Running setup.py bdist_wheel for itsdangerous: finished with status 'error'
17.85 Complete output from command /home/appuser/taxhub/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-5gp7qq7h/itsdangerous/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-p1lomigk --python-tag cp37:
17.85 usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
17.85 or: -c --help [cmd1 cmd2 ...]
17.85 or: -c --help-commands
17.85 or: -c cmd --help
17.85
17.85 error: invalid command 'bdist_wheel'

28.87 running build_rust
28.87
28.87 =============================DEBUG ASSISTANCE=============================
28.87 If you are seeing a compilation error please try the following steps to
28.87 successfully install bcrypt:
28.87 1) Upgrade to the latest pip and try again. This will fix errors for most
28.87 users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
28.87 2) Ensure you have a recent Rust toolchain installed. bcrypt requires
28.87 rustc >= 1.64.0. (1.63 may be used by setting the BCRYPT_ALLOW_RUST_163
28.87 environment variable)
28.87
28.87 Python: 3.7.3
28.87 platform: Linux-6.2.0-39-generic-x86_64-with-debian-10.13
28.87 pip: 18.1
28.87 setuptools: 68.0.0
28.87 setuptools_rust: 1.7.0
28.87 rustc: n/a
28.87 =============================DEBUG ASSISTANCE=============================
28.87
28.87 error: can't find Rust compiler

The DockerFile for taxhub must be updated. Here are the errors > 7.72 Building wheels for collected packages: itsdangerous, MarkupSafe, psycopg2, pypnusershub, bcrypt > 17.72 Running setup.py bdist_wheel for itsdangerous: started > 17.85 Running setup.py bdist_wheel for itsdangerous: finished with status 'error' > 17.85 Complete output from command /home/appuser/taxhub/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-5gp7qq7h/itsdangerous/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-p1lomigk --python-tag cp37: > 17.85 usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] > 17.85 or: -c --help [cmd1 cmd2 ...] > 17.85 or: -c --help-commands > 17.85 or: -c cmd --help > 17.85 > 17.85 error: invalid command 'bdist_wheel' > > 28.87 running build_rust > 28.87 > 28.87 =============================DEBUG ASSISTANCE============================= > 28.87 If you are seeing a compilation error please try the following steps to > 28.87 successfully install bcrypt: > 28.87 1) Upgrade to the latest pip and try again. This will fix errors for most > 28.87 users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip > 28.87 2) Ensure you have a recent Rust toolchain installed. bcrypt requires > 28.87 rustc >= 1.64.0. (1.63 may be used by setting the BCRYPT_ALLOW_RUST_163 > 28.87 environment variable) > 28.87 > 28.87 Python: 3.7.3 > 28.87 platform: Linux-6.2.0-39-generic-x86_64-with-debian-10.13 > 28.87 pip: 18.1 > 28.87 setuptools: 68.0.0 > 28.87 setuptools_rust: 1.7.0 > 28.87 rustc: n/a > 28.87 =============================DEBUG ASSISTANCE============================= > 28.87 > 28.87 error: can't find Rust compiler
Author
Owner

Tried:

  • apt-get install -y rustc added, but other problem arise
  • RUN pip install setuptools_rust, but no

A good solution would be to take some inspiration from https://github.com/PnX-SI/TaxHub/blob/master/requirements.txt

Tried: - apt-get install -y rustc added, but other problem arise - RUN pip install setuptools_rust, but no A good solution would be to take some inspiration from https://github.com/PnX-SI/TaxHub/blob/master/requirements.txt
Author
Owner

Fixed.

From https://github.com/PnX-SI/TaxHub/blob/master/Dockerfile, I've added this:

RUN pip install --upgrade pip setuptools wheel

Fixed. From https://github.com/PnX-SI/TaxHub/blob/master/Dockerfile, I've added this: `RUN pip install --upgrade pip setuptools wheel`
juminet added the
bug
label 2024-01-08 15:12:14 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: champs-libres/biommap#54
No description provided.