I am experiencing difficulties while attempting to run the Image Filtering source code. Despite diligently following the instructions provided here (README.md · zama-fhe/encrypted_image_filtering at main), I continue to encounter the following error.
Do you have any suggestions or ideas on how to resolve this issue?
~/encrypted_image_filtering$ python3 app.py
INFO: Started server process 
INFO: Waiting for application startup.
INFO: Application startup complete.
ERROR: [Errno 98] error while attempting to bind on address (‘127.0.0.1’, 8000): address already in use
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
Starting the demo…
Running on local URL: http://127.0.0.1:7860
Traceback (most recent call last):
File “~/encrypted_image_filtering/.venv/lib/python3.9/site-packages/gradio/routes.py”, line 292, in run_predict
output = await app.blocks.process_api(
File “~/encrypted_image_filtering/.venv/lib/python3.9/site-packages/gradio/blocks.py”, line 1007, in process_api
result = await self.call_function(fn_index, inputs, iterator, request)
File “~/encrypted_image_filtering/.venv/lib/python3.9/site-packages/gradio/blocks.py”, line 848, in call_function
prediction = await anyio.to_thread.run_sync(
File “~/encrypted_image_filtering/.venv/lib/python3.9/site-packages/anyio/to_thread.py”, line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File “~/encrypted_image_filtering/.venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py”, line 877, in run_sync_in_worker_thread
return await future
File “~/encrypted_image_filtering/.venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py”, line 807, in run
result = context.run(func, *args)
File “~/encrypted_image_filtering/app.py”, line 156, in keygen
client = get_client(user_id, filter_name)
File “~/encrypted_image_filtering/app.py”, line 86, in get_client
File “~/encrypted_image_filtering/client_server_interface.py”, line 101, in init
self.client = cnp.Client.load(self.path_dir / “client.zip”, self.key_dir)
File “~/encrypted_image_filtering/.venv/lib/python3.9/site-packages/concrete/numpy/compilation/client.py”, line 90, in load
shutil.unpack_archive(path, tmp_dir, “zip”)
File “/usr/lib/python3.9/shutil.py”, line 1236, in unpack_archive
func(filename, extract_dir, **dict(format_info))
File “/usr/lib/python3.9/shutil.py”, line 1140, in _unpack_zipfile
raise ReadError(“%s is not a zip file” % filename)
shutil.ReadError: ~/encrypted_image_filtering/filters/blur/deployment/client.zip is not a zip file
so this seems to be the issue:
" ~/encrypted_image_filtering/filters/blur/deployment/client.zip is not a zip file"