Giter VIP home page Giter VIP logo

Comments (12)

Huelse avatar Huelse commented on June 17, 2024 1

add /usr/local/lib or the SEAL/native/lib to /etc/ld.so.conf and refresh it sudo ldconfig
it's your interpreter does not find the dynamic link library caused.

from seal-python.

Huelse avatar Huelse commented on June 17, 2024

em, have you tried in python3.7?
I got it, it's a problem

from seal-python.

DreamingRaven avatar DreamingRaven commented on June 17, 2024

I will try it with python3.7 although I expect the result to be the same as this used to work with python3.8 before the ms-seal update to 3.4.5. I expect this may be an issue with ms-seal itself or some quirk we aren't aware of as im not too familiar with binding c++ to python so learning as I go.

from seal-python.

DreamingRaven avatar DreamingRaven commented on June 17, 2024

em, have you tried in python3.7?
I got it, it's a problem

How did you reproduce it? was it on an ubuntu system with more up to date packages or inside an arch docker container as above?

from seal-python.

Huelse avatar Huelse commented on June 17, 2024

you can try to build with the cmake, so there is a ImportError, etc
I remain the CMakeLists.txt in the src folder, change the path before use it.
I'm dealing with it now if you have any idea, please tell me.

from seal-python.

DreamingRaven avatar DreamingRaven commented on June 17, 2024

I will try this in a moment, once I have had lunch. I have no cause in mind as yet, but I will look into it too.

from seal-python.

Huelse avatar Huelse commented on June 17, 2024

OK, Here is a solution.
Before you compile the SEAL lib, change the SEAL/native/src/CMakeLists.txt line 101 Static_PIC to Shared. then you will get the SEAL/native/lib/libseal.so
then change the lib path in setup.py or src/CMakeLists.txt.
But do attention, the path is sensitive now.

from seal-python.

DreamingRaven avatar DreamingRaven commented on June 17, 2024

ok will try it now and let you know if it works on my end too.

from seal-python.

DreamingRaven avatar DreamingRaven commented on June 17, 2024

Hmm not sure I have done this right as im getting

ImportError: libseal.so.3.4: cannot open shared object file: No such file or directory

So I must not have installed it properly.

To confirm the changes I need to make are:
change this to Shared from Static_PIC which Is very specific i'm sure I haven't messed that up:

set(SEAL_DEFAULT_LIB_BUILD_TYPE "Static_PIC")

becomes:
https://github.com/DreamingRaven/SEAL-Python/blob/3eb9654540bdf887376167c22ca8f92da52f7477/SEAL/native/src/CMakeLists.txt#L101

but then for the next one so that it finds seal
from

extra_objects = ['./SEAL/native/lib/libseal-3.4.a']

to
https://github.com/DreamingRaven/SEAL-Python/blob/3eb9654540bdf887376167c22ca8f92da52f7477/setup.py#L15
but after building everything this now does not find seal, instead giving me:

archer@azuran ~/g/seal-python (3.4.5)> sudo docker run --gpus all -it archer/py-seal-arch bash
[root@09e1c8d7edd2 /]# python
Python 3.8.2 (default, Feb 26 2020, 22:21:03) 
[GCC 9.2.1 20200130] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import seal
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: libseal.so.3.4: cannot open shared object file: No such file or directory

from seal-python.

DreamingRaven avatar DreamingRaven commented on June 17, 2024

Hmm thats interesting if I run the exact same source in the ubuntu docker it works fine again ... Hmm not sure what is going on with the differences here but I will look into it. It just seems so bizarre to be acting so differently given the exact same installation steps.

If I find out what is causing this problem between ubuntu and arch I will let you know.
Thanks for all your work thus far.

from seal-python.

DreamingRaven avatar DreamingRaven commented on June 17, 2024

add /usr/local/lib or the SEAL/native/lib to /etc/ld.so.conf and refresh it sudo ldconfig
it's your interpreter does not find the dynamic link library caused.

Ok trying that now

from seal-python.

DreamingRaven avatar DreamingRaven commented on June 17, 2024

Yep that worked, ah yes of course!
Archlinux puts its shared objects in /usr/lib wheras other distros store theirs in /usr/local/lib
And I have confirmed the tests work fine. and you solved the undefined symbol error in the process.
Thanks @Huelse

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.