Closed Kuuuuubrick closed 1 year ago
Description After that, I tried to install on my local Windows PC for more info
Code To Reproduce Error
Likewise, I used git clone --recursive https://github.com/ibarrond/Pyfhel.git
to clone the whole project with submodules.
After that, I have modified the file pyproject.toml
to set the SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
to OFF
, then I tried to install with the command pip install -v .
(pycrcnn) D:\Project\Python\PyCrCNN\Pyfhel>pip install . -v
Using pip 23.1.2 from D:\Environment\Anaconda\envs\pycrcnn\lib\site-packages\pip (python 3.10)
Processing d:\project\python\pycrcnn\pyfhel
Running command pip subprocess to install build dependencies
Collecting setuptools<=60.9
Using cached setuptools-60.9.0-py3-none-any.whl (1.1 MB)
Collecting wheel
Using cached wheel-0.40.0-py3-none-any.whl (64 kB)
Collecting cython==3.0.0b1
Using cached Cython-3.0.0b1-cp310-cp310-win_amd64.whl (2.7 MB)
Collecting numpy>=1.21
Using cached numpy-1.25.0-cp310-cp310-win_amd64.whl (15.0 MB)
Collecting cmake>=3.15
Using cached cmake-3.26.4-py2.py3-none-win_amd64.whl (33.0 MB)
Collecting toml>=0.10
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Installing collected packages: cmake, wheel, toml, setuptools, numpy, cython
Successfully installed cmake-3.26.4 cython-3.0.0b1 numpy-1.25.0 setuptools-60.9.0 toml-0.10.2 wheel-0.40.0
Installing build dependencies ... done
Running command Getting requirements to build wheel
Error compiling Cython file:
------------------------------------------------------------
...
other = np.repeat(other, nslots)
if (other.ndim==1) and \
(np.issubdtype(other.dtype, np.number)):
if self.scheme == Scheme_t.bfv:
return self._pyfhel.encodeInt(other.astype(np.int64)[:nslots])
elig self.scheme == Scheme_t.bgv:
^
------------------------------------------------------------
Pyfhel\PyCtxt.pyx:789:21: Syntax error in simple statement list
Compiling Pyfhel\Pyfhel.pyx because it changed.
Compiling Pyfhel\PyCtxt.pyx because it changed.
Compiling Pyfhel\PyPtxt.pyx because it changed.
Compiling Pyfhel\PyPoly.pyx because it changed.
[1/4] Cythonizing Pyfhel\PyCtxt.pyx
Traceback (most recent call last):
File "D:\Environment\Anaconda\envs\pycrcnn\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "D:\Environment\Anaconda\envs\pycrcnn\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "D:\Environment\Anaconda\envs\pycrcnn\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\kubrick\AppData\Local\Temp\pip-build-env-u39y6m7o\overlay\Lib\site-packages\setuptools\build_meta.py", line 177, in get_requires_for_build_wheel
return self._get_build_requires(
File "C:\Users\kubrick\AppData\Local\Temp\pip-build-env-u39y6m7o\overlay\Lib\site-packages\setuptools\build_meta.py", line 159, in _get_build_requires
self.run_setup()
File "C:\Users\kubrick\AppData\Local\Temp\pip-build-env-u39y6m7o\overlay\Lib\site-packages\setuptools\build_meta.py", line 174, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 660, in <module>
ext_modules=cythonize(
File "C:\Users\kubrick\AppData\Local\Temp\pip-build-env-u39y6m7o\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "C:\Users\kubrick\AppData\Local\Temp\pip-build-env-u39y6m7o\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1301, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: Pyfhel\PyCtxt.pyx
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: 'D:\Environment\Anaconda\envs\pycrcnn\python.exe' 'D:\Environment\Anaconda\envs\pycrcnn\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py' get_requires_for_build_wheel 'C:\Users\kubrick\AppData\Local\Temp\tmpkxjeouz4'
cwd: D:\Project\Python\PyCrCNN\Pyfhel
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
the problem is similar, even happen in the same line, I am wondering if I did everything correct?
Setup:
Hi, I encountered the same problem with the latest version but the previous version installation works without any problem (i did git checkout 02decae
and pip install .)
Thank you so much, I'll try it out!
My fault! I applied a hotfix without testing. I'll be mending the mistake this WE.
On Fri, 23 Jun 2023, 16:17 Kubrick, @.***> wrote:
Thank you so much, I'll try it out!
— Reply to this email directly, view it on GitHub https://github.com/ibarrond/Pyfhel/issues/203#issuecomment-1604349222, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADF6Z5YU6WCPILPPQUCUZN3XMWQOPANCNFSM6AAAAAAZNSFKMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
My fault! I applied a hotfix without testing. I'll be mending the mistake this WE. … On Fri, 23 Jun 2023, 16:17 Kubrick, @.> wrote: Thank you so much, I'll try it out! — Reply to this email directly, view it on GitHub <#203 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADF6Z5YU6WCPILPPQUCUZN3XMWQOPANCNFSM6AAAAAAZNSFKMY . You are receiving this because you are subscribed to this thread.Message ID: @.>
Certainly, I am eagerly looking forward to your work with anticipation.
And it should be correct now!
And it should be correct now!
Thanks! Everything goes well now!
Description Hi there, I have faced some installation problem on my linux server
Code To Reproduce Error First of all, I have followed the prompt you provided to install with the command
git clone --recursive https://github.com/ibarrond/Pyfhel.git
, everything went wellAnd I'm pretty sure that I have installed every submodules.
After that, I have modified the file
pyproject.toml
to set theSEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
toOFF
, then I tried to install with the commandpip install .
In order to obtain more information, I tried to use the command
pip install -v .
, here is the resultSetup: