Simple directory problem causing python to look there instead;
example_usage.py is looking in the local directory called "pyheal" in search of BigUInt which does not exist following standard installation instructions. However when moved into ./tests it works fine because it no longer prioritizes that local folder. Not sure there is a particularly fun solution for this other than either renaming the folder (probably not), or moving it into a different directory called examples.
1b8a5fb65e61:/pyheal# python3 example_usage.py
Traceback (most recent call last):
File "example_usage.py", line 1, in <module>
from pyheal import wrapper
File "/pyheal/pyheal/__init__.py", line 1, in <module>
import pyheal.ciphertext_op
File "/pyheal/pyheal/ciphertext_op.py", line 5, in <module>
from pyheal import wrapper
File "/pyheal/pyheal/wrapper.py", line 14, in <module>
class BigUInt(seal.BigUInt):
AttributeError: module 'seal_wrapper' has no attribute 'BigUInt'
To reproduce here is a quick dockerfile (may also put in a pull request for docker stuff for convenience):
Dockerfile:
FROM ubuntu:19.10
# Install binary dependencies
RUN apt-get update && \
apt-get install -qqy \
g++ \
git \
make \
cmake \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
python3-wheel \
sudo \
libdpkg-perl \
--no-install-recommends
RUN git --version && \
git clone --recurse-submodules https://github.com/Accenture/pyheal.git && \
cd /pyheal && \
pip3 install .
then run, sudo docker build -t archer/pyheal . -f Dockerfile && sudo docker run -it archer/pyheal python3 /pyheal/example_usage.py
Simple directory problem causing python to look there instead;
example_usage.py is looking in the local directory called "pyheal" in search of BigUInt which does not exist following standard installation instructions. However when moved into ./tests it works fine because it no longer prioritizes that local folder. Not sure there is a particularly fun solution for this other than either renaming the folder (probably not), or moving it into a different directory called examples.
To reproduce here is a quick dockerfile (may also put in a pull request for docker stuff for convenience):
Dockerfile:then run,
sudo docker build -t archer/pyheal . -f Dockerfile && sudo docker run -it archer/pyheal python3 /pyheal/example_usage.py