Pyfhel icon indicating copy to clipboard operation
Pyfhel copied to clipboard

ModuleNotFoundError: No module named 'Pyfhel.Pyfhel.Pyfhel'

Open lilvmy opened this issue 1 year ago • 6 comments

Description I have installed Pyfhel==3.4.2, but import the Pyfhel leads an error ModuleNotFoundError: No module named 'Pyfhel.Pyfhel.Pyfhel' Code To Reproduce Error from Pyfhel import Pyfhel

Expected behavior Traceback (most recent call last): File "/home/cysren/home/cysren/Desktop/ld_file/Secure-DNN-Inference-with-Adversarial-training/SimpleExample/SimEncryptProcessing.py", line 10, in from Pyfhel import Pyfhel File "/home/cysren/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel/init.py", line 1, in from .Pyfhel import Pyfhel File "/home/cysren/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel/Pyfhel/init.py", line 1, in from .Pyfhel import Pyfhel ModuleNotFoundError: No module named 'Pyfhel.Pyfhel.Pyfhel'

Setup:

  • OS: [e.g. Ubuntu]
  • Python: [e.g. 3.8.19]
  • C compiler version: [e.g. gcc 11.4.0 64 bit (nvida), can be easily found between brackets by running python in a terminal]
  • Pyfhel Version: [e.g. 3.4.2 --> If lower than latest github repo version, please try that one out first!]

lilvmy avatar Jul 08 '24 13:07 lilvmy

Please fill all the details above!

On Mon, Jul 8, 2024, 15:38 lilvmy @.***> wrote:

Description I have installed Pyfhel==3.4.2, but import the Pyfhel leads an error ModuleNotFoundError: No module named 'Pyfhel.Pyfhel.Pyfhel' Code To Reproduce Error from Pyfhel import Pyfhel

Expected behavior Traceback (most recent call last): File "/home/cysren/home/cysren/Desktop/ld_file/Secure-DNN-Inference-with-Adversarial-training/SimpleExample/SimEncryptProcessing.py", line 10, in from Pyfhel import Pyfhel File "/home/cysren/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel/ init.py", line 1, in from .Pyfhel import Pyfhel File "/home/cysren/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel/Pyfhel/ init.py", line 1, in from .Pyfhel import Pyfhel ModuleNotFoundError: No module named 'Pyfhel.Pyfhel.Pyfhel'

Setup:

  • OS: [e.g. Ubuntu]
  • Python: [e.g. 3.8.19]
  • C compiler version: [e.g. gcc 11.4.0 64 bit (nvida), can be easily found between brackets by running python in a terminal]
  • Pyfhel Version: [e.g. 3.4.2 --> If lower than latest github repo version, please try that one out first!]

— Reply to this email directly, view it on GitHub https://github.com/ibarrond/Pyfhel/issues/245, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADF6Z54XDMGSFV6VZ4G5VPTZLKI6ZAVCNFSM6AAAAABKQ3ZJXOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TKNRXGYZDCNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ibarrond avatar Jul 08 '24 15:07 ibarrond

cd .virtualenvs/ld_env/lib/python3.8/site-packages git clone --recursive https://github.com/ibarrond/Pyfhel.git cd Pyfhel 1 vim pyproject.toml SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT="OFF" esc :wq

pip install . -v

2

from Pyfhel import Pyfhel

Traceback (most recent call last): File "/home/cysren/home/cysren/Desktop/ld_file/Secure-DNN-Inference-with-Adversarial-training/SimpleExample/test.py", line 3, in from Pyfhel import Pyfhel File "/home/cysren/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel/init.py", line 1, in from .Pyfhel import Pyfhel File "/home/cysren/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel/Pyfhel/init.py", line 1, in from .Pyfhel import Pyfhel ModuleNotFoundError: No module named 'Pyfhel.Pyfhel.Pyfhel'

lilvmy avatar Jul 09 '24 07:07 lilvmy

@lilvmy You still haven´t filled the details above. What OS? What Python Version? What C compiler version?

ibarrond avatar Jul 09 '24 07:07 ibarrond

Thank you, I will list these information.

system: Linux version 6.5.0-41-generic (buildd@lcy02-amd64-120) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2

Python version: 3.8.19 C compiler version: g++ is already the newest version (4:11.2.0-1ubuntu1). gcc is already the newest version (4:11.2.0-1ubuntu1).

When I use pip install Pyfhel, it does not apper above-mentioned issues

lilvmy avatar Jul 09 '24 07:07 lilvmy

Please run gcc -v to get the gcc version.

On Tue, Jul 9, 2024 at 9:52 AM lilvmy @.***> wrote:

Thank you, I will list these information.

system: Linux version 6.5.0-41-generic @.***) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu122.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #41 https://github.com/ibarrond/Pyfhel/issues/4122.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2

Python version: 3.8.19 C compiler version: g++ is already the newest version (4:11.2.0-1ubuntu1). gcc is already the newest version (4:11.2.0-1ubuntu1).

When I use pip install Pyfhel, it does not apper above-mentioned issues

— Reply to this email directly, view it on GitHub https://github.com/ibarrond/Pyfhel/issues/245#issuecomment-2216859353, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADF6Z53KNV7BPOPEQDZQLJ3ZLOJFPAVCNFSM6AAAAABKQ3ZJXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJWHA2TSMZVGM . You are receiving this because you commented.Message ID: @.***>

ibarrond avatar Jul 09 '24 08:07 ibarrond

Noted with thanks, the gcc version is 11.4.0

(ld_env) (base) cysren@cysren-Precision-3660:~$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)

lilvmy avatar Jul 09 '24 08:07 lilvmy

Hopefully v3.4.3 solved the issue. Otherwise feel free to reopen!

ibarrond avatar Aug 20 '25 19:08 ibarrond