Huelse / SEAL-Python

Microsoft SEAL 4.X For Python
MIT License
310 stars 66 forks source link

Not found the seal lib file, check the `SEAL/build/lib` #108

Closed Haonan009 closed 1 year ago

Haonan009 commented 1 year ago

Type Problem when setup with python.

Descripe I have built SEAL in my PC, problem occured when I try to run the second command on CMD, which is "python setup.py build_ext -i". It said "Not found the seal lib file, check the SEAL/build/lib", although two files of "lib" were contained in my folder. Anyone met the same problem?

Huelse commented 1 year ago

Have you build the SEAL like this?

Haonan009 commented 1 year ago

Have you build the SEAL like this?

Yes, I built SEAL through "VS 17 2022" generator. Should I select the "build" folder under "SEAL", or the one under "SEAL-Python", problem might occur in the path selection.

Huelse commented 1 year ago

Checkout the SEAL/build/lib/*.lib.

Haonan009 commented 1 year ago

Checkout the SEAL/build/lib/*.lib.

It worked, seal was now in my site-packages. But it reported an error that "Cannot find reference 'scheme_type' in 'seal.py" when I ran "seal_helper.py". Please help me figure it.

Huelse commented 1 year ago

It haven't install yet, move the seal.*.pyd generated file to the examples folder.

Haonan009 commented 1 year ago

Didn't work, sorry but what do you mean "It haven't install yet".

It haven't install yet, move the seal.*.pyd generated file to the examples folder.

Haonan009 commented 1 year ago

It haven't install yet, move the seal.*.pyd generated file to the examples folder.

What should I do to install it?

Huelse commented 1 year ago

Can you show me your workspace? you don't need to install it as developing.

Haonan009 commented 1 year ago

Already emailed.

Huelse commented 1 year ago

Copy the seal.cp37...pyd to yout workdir like examples and run the python3.7(py37) in same workdir will be work.

Huelse commented 1 year ago

Because you build the lib by the Python3.7, not 3.9 or else.

Huelse commented 1 year ago

This kind of basic programing problem I can't help you.

Haonan009 commented 1 year ago

Sorry, I tried as you said, and it worked in the "examples" folder you've provided, but failed in my own folder whose .py file requied seal.

Haonan009 commented 1 year ago

47 met the same question