Giter VIP home page Giter VIP logo

Comments (14)

Huelse avatar Huelse commented on September 24, 2024 2

@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.

Huelse avatar Huelse commented on September 24, 2024 1

Sorry, #include <pybind11/numpy.h> is needed, add it to the wrapper.cpp head

from seal-python.

Huelse avatar Huelse commented on September 24, 2024 1

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.

Huelse avatar Huelse commented on September 24, 2024 1

@uriariel Thank you, I found it.

from seal-python.

Ailab666666 avatar Ailab666666 commented on September 24, 2024

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.

Ailab666666 avatar Ailab666666 commented on September 24, 2024

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.

Huelse avatar Huelse commented on September 24, 2024

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.

Ailab666666 avatar Ailab666666 commented on September 24, 2024

this file ../SEAL/native/lib/libseal.a in right Path.

from seal-python.

Huelse avatar Huelse commented on September 24, 2024

try to make install the SEAL, and use the absolute path /usr/local/lib/libseal.a

from seal-python.

MarwanNour avatar MarwanNour commented on September 24, 2024

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.

Huelse avatar Huelse commented on September 24, 2024

@Ailab666666 If you don't have any other questions, close this issue please.

from seal-python.

uriariel avatar uriariel commented on September 24, 2024

It seems that the updated Seal code with deleted MemoryManager is in your repository.

from seal-python.

Huelse avatar Huelse commented on September 24, 2024

@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.

uriariel avatar uriariel commented on September 24, 2024

from seal-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.