LGro / PyAPSI

Python wrapper for labeled and unlabeled asymmetric private set intersection (APSI).
MIT License
14 stars 6 forks source link

Build has recently broken #20

Open jbates-duality opened 11 months ago

jbates-duality commented 11 months ago

Hello:

Thank you in advance for any help.

I've been working with PyAPSI for a little while now, and things were working well.

Within the last week, however, the build has broken within the execution of the docker script py.Dockerfile.

At the bottom of this message, I am including a trace of the final bits before the error. This is being executed on a fresh install of Ubuntu 22, using the command specified in the README.md, specifically: task wheel PYTHON_VERSION=3.10.4

Prior to running task, on top of the fresh install, I am executing the following precursor steps, in order to have a working environment for the build:

sudo apt install python3-pip sudo snap install task --classic sudo snap install docker pip install poetry

I am also setting some permissions for docker, as below:

sudo groupadd docker sudo usermod -aG docker $USER sudo chown root.docker /var/run/docker.sock

[then I re-login to get docker group permissions].

Prior to last week, this was working. I have tried a few things I've found regarding making sure that the wheel Python package is installed [it is, always has been]. However, it seems likely that some repository's packages have updated, and we end up with the following error trace, per below, during the py.Dockerfile portion of the build:

Step 12/16 : RUN poetry install ---> Running in 2b812b584760 Creating virtualenv pyapsi-s1QCMSlm-py3.10 in /root/.cache/pypoetry/virtualenvs Installing dependencies from lock file

Package operations: 22 installs, 0 updates, 0 removals

• Installing pyparsing (3.0.9) • Installing tomli (2.0.1) • Installing attrs (21.4.0) • Installing click (8.1.3) • Installing iniconfig (1.1.1) • Installing mypy-extensions (0.4.3) • Installing packaging (21.3) • Installing pathspec (0.9.0) • Installing pep517 (0.12.0) • Installing platformdirs (2.5.2) • Installing pluggy (1.0.0) • Installing py (1.11.0) • Installing pyelftools (0.28) • Installing snowballstemmer (2.2.0) • Installing auditwheel (5.1.2) • Installing black (22.3.0) • Installing isort (5.10.1) • Installing build (0.8.0) • Installing pybind11 (2.9.2) • Installing pydocstyle (6.1.1) • Installing pytest (7.1.2) • Installing toml (0.10.2)

Installing the current project: pyapsi (0.1.2)

The current project could not be installed: No file/folder found for package pyapsi If you do not want to install the current project use --no-root Removing intermediate container 2b812b584760 ---> c5d4e85b1e45 Step 13/16 : RUN poetry run python setup.py bdist_wheel ---> Running in ca24f11fffa5 usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

error: invalid command 'bdist_wheel' The command '/bin/sh -c poetry run python setup.py bdist_wheel' returned a non-zero code: 1 exit status 1

LGro commented 6 months ago

Apologies for the delay, did you figure it out by now? My suggestion would be to try and install python3-wheel as a system dependency or wheel as a build dependency.

jbates-duality commented 6 months ago

Hi there. I discovered that by removing poetry from that command line, and just running it straight out of python, that things work.

So, I'm all good.

Thank you for providing this wrapper. It has been very helpful.

On Fri, Apr 12, 2024 at 1:28 PM Lukas Großberger @.***> wrote:

Apologies for the delay, did you figure it out by now? My suggestion would be to try and install python3-wheel as a system dependency or wheel as a build dependency.

— Reply to this email directly, view it on GitHub https://github.com/LGro/PyAPSI/issues/20#issuecomment-2052405223, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYHEHZ6N6UWXVSPBIEI4QOTY5AYUPAVCNFSM6AAAAAA7FDH7SCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJSGQYDKMRSGM . You are receiving this because you authored the thread.Message ID: @.***>

--

Jack Bates

Principal Software Engineer

www.dualitytech.com http://www.dualitytech.com/