Comments (14)
@MarwanNour It seemd that you have used the latest SEAL lib(3.4) which this wrapper is not adaptive, right?
You need to complie the SEAL lib(3.3.2) in this project.
from seal-python.
Sorry, #include <pybind11/numpy.h>
is needed, add it to the wrapper.cpp head
from seal-python.
If you have installed pybind11 currently will be no problem,
or try to change the add_subdirectory(pybind11)
to find_package(pybind11)
in CMakeLists.txt
from seal-python.
@uriariel Thank you, I found it.
from seal-python.
Hi ,occur new error, when I execute cmake . in Path SEAL-Python/src.
CMake Error at CMakeLists.txt:13 (add_subdirectory):
add_subdirectory given source "pybind11" which is not an existing
directory.
CMake Error at CMakeLists.txt:15 (pybind11_add_module):
Unknown CMake command "pybind11_add_module".
from seal-python.
Hi, cmake ok. after I make, occur :
/usr/bin/ld: cannot find -l../SEAL/native/lib/libseal.a
collect2: error: ld returned 1 exit status
CMakeFiles/seal.dir/build.make:94: recipe for target 'seal.cpython-36m-x86_64-linux-gnu.so' failed
make[2]: *** [seal.cpython-36m-x86_64-linux-gnu.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/seal.dir/all' failed
make[1]: *** [CMakeFiles/seal.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
from seal-python.
The information has told you cannot find -l../SEAL/native/lib/libseal.a
Build the SEAL 3.3.2 lib first. and make sure that the path is right
Please read the README.md carefully
from seal-python.
this file ../SEAL/native/lib/libseal.a in right Path.
from seal-python.
try to make install the SEAL, and use the absolute path /usr/local/lib/libseal.a
from seal-python.
I'm getting an error as well with this step:
running build_ext
building 'seal' extension
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6 -I../pybind11/include -I../SEAL/native/src -I/usr/include/python3.7m -c wrapper.cpp -o build/temp.linux-x86_64-3.7/wrapper.o -std=c++17
In file included from ../pybind11/include/pybind11/pybind11.h:47,
from wrapper.cpp:1:
../pybind11/include/pybind11/detail/init.h: In instantiation of ‘Class* pybind11::detail::initimpl::construct_or_initialize(Args&& ...) [with Class = seal::MemoryManager; Args = {}; typename std::enable_if<(! std::is_constructible<_Tp, _Args>::value), int>::type <anonymous> = 0]’:
../pybind11/include/pybind11/detail/init.h:174:66: required from ‘static void pybind11::detail::initimpl::constructor<Args>::execute(Class&, const Extra& ...) [with Class = pybind11::class_<seal::MemoryManager>; Extra = {}; typename std::enable_if<(! Class::has_alias), int>::type <anonymous> = 0; Args = {}]’
../pybind11/include/pybind11/pybind11.h:1141:9: required from ‘pybind11::class_<type_, options>& pybind11::class_<type_, options>::def(const pybind11::detail::initimpl::constructor<Args ...>&, const Extra& ...) [with Args = {}; Extra = {}; type_ = seal::MemoryManager; options = {}]’
wrapper.cpp:400:20: required from here
../pybind11/include/pybind11/detail/init.h:63:64: error: use of deleted function ‘seal::MemoryManager::MemoryManager()’
63 | inline Class *construct_or_initialize(Args &&...args) { return new Class{std::forward<Args>(args)...}; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../SEAL/native/src/seal/biguint.h:9,
from ../SEAL/native/src/seal/seal.h:6,
from wrapper.cpp:5:
../SEAL/native/src/seal/memorymanager.h:448:9: note: declared here
448 | MemoryManager() = delete;
| ^~~~~~~~~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
from seal-python.
@Ailab666666 If you don't have any other questions, close this issue please.
from seal-python.
It seems that the updated Seal code with deleted MemoryManager is in your repository.
from seal-python.
@uriariel You mean the class MemoryPoolHandle? Yes it is, this bind is support to SEAL3.3.2, we haven't update to fit the latest SEAL lib. Both are similar.
from seal-python.
from seal-python.
Related Issues (20)
- "relinearize_inplace" doesn‘t work HOT 1
- Problem recreating 5_CKKS_Basics.py HOT 1
- How to calculate Polynomial Multiplication? HOT 10
- TypeError: cannot pickle 'seal.Ciphertext' object HOT 4
- encrypted1 and encrypted2 parameter mismatch HOT 7
- Not found the seal lib file, check the `SEAL/build/lib` HOT 14
- AttributeError: module 'seal' has no attribute 'EncryptionContext' HOT 2
- NameError: name 'EncryptionParameters' is not defined HOT 1
- Multiplication Depth analysis HOT 3
- LNK2001 with LNK1120: 88 unresolved externals
- seal-python docs HOT 3
- how to conda install after build HOT 1
- IntegerEncoder HOT 1
- 为什么样例文件夹中没有ckks方案的例子呢?如何快速上手此库呢? HOT 1
- 'seal.Ciphertext' object attribute 'scale' is read-only HOT 5
- Logistic Regression over Encrypted Data with BFV Scheme HOT 6
- How to get the coefficient of ciphertext? HOT 5
- I/O Error when trying to decrypt a loaded cipher text HOT 1
- Encountered problems during setup HOT 2
- Getting logs of errors from SEAL HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seal-python.