Giter VIP home page Giter VIP logo

Comments (11)

R4v3nl0 avatar R4v3nl0 commented on September 24, 2024

啊我解决了。。是我服务器的问题,不过我碰到了一个新的问题。我在执行python3 setup.py install后,一直卡在这里
16062890814595133463535932054650

from seal-python.

Huelse avatar Huelse commented on September 24, 2024

抱歉回复晚了,先尝试使用build_ext -i试下呢?

from seal-python.

R4v3nl0 avatar R4v3nl0 commented on September 24, 2024

抱歉回复晚了,先尝试使用build_ext -i试下呢?

emmm这个方式我也尝试了,两个命令都是卡在了同一个地方。在发出第二条问题时只使用了install,在之后又使用了python3 setup.py build_ext -i

from seal-python.

R4v3nl0 avatar R4v3nl0 commented on September 24, 2024

输出如下:
root@iZuf6i8o07kxfsz3l093trZ:~/pyseal# python setup.py build_ext -i
running build_ext
building 'seal' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/root/.pyenv/versions/3.7.0/include/python3.7m -I./pybind11/include -I./SEAL/native/src -I/root/.pyenv/versions/3.7.0/include/python3.7m -c src/base64.cpp -o build/temp.linux-x86_64-3.7/src/base64.o -std=c++17
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/root/.pyenv/versions/3.7.0/include/python3.7m -I./pybind11/include -I./SEAL/native/src -I/root/.pyenv/versions/3.7.0/include/python3.7m -c src/wrapper.cpp -o build/temp.linux-x86_64-3.7/src/wrapper.o -std=c++17

from seal-python.

Huelse avatar Huelse commented on September 24, 2024

可能和docker有关,在本地环境编译试试呢?只需要build_ext -i生成到当前目录即可。

from seal-python.

R4v3nl0 avatar R4v3nl0 commented on September 24, 2024

可能和docker有关,在本地环境编译试试呢?只需要build_ext -i生成到当前目录即可。

emmmm您好,我并没有使用docker。。直接在本地环境中编译也是卡在了这里。。

from seal-python.

R4v3nl0 avatar R4v3nl0 commented on September 24, 2024

您好,我通过重新安装环境成功install了,可能是因为我之前环境太过于驳杂导致卡住的。
我现在又遇到了一个新问题,在import seal时,发生错误ImportError: /SEAL-Python/seal.cpython-37m-x86_64-linux-gnu.so: undefined symbol: deflateInit_
请问我需要为setup.py做一些修改来使得它可以成功被import吗?

from seal-python.

R4v3nl0 avatar R4v3nl0 commented on September 24, 2024

根据网上的内容说需要在g++编译时加上-Xlinker -export-dynamic选项,但是我不知如何为它加上该选项。我可以自己手动运行一次g++并加上该选项来编译生成seal.cpython-37m-x86_64-linux-gnu.so吗?

from seal-python.

Huelse avatar Huelse commented on September 24, 2024

FAQ

from seal-python.

R4v3nl0 avatar R4v3nl0 commented on September 24, 2024

FAQ

好的谢谢,我刚才没有注意到这一点,十分感谢

from seal-python.

R4v3nl0 avatar R4v3nl0 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.