Python Forum
ModuleNotFoundError: No module named 'Seal' - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: ModuleNotFoundError: No module named 'Seal' (/thread-35140.html)

Pages: 1 2


ModuleNotFoundError: No module named 'Seal' - Anldra12 - Oct-03-2021

I run project for Homographic Encryption Where Microsoft Seal library is needed as i run it from git and install successfully. But i am using Python3.8 I don't know why its not install how i install in Python3.8. I spent my time but it give me an error. Needed your suggestion
pip install seal
Seal pip install Error
Error:
Collecting seal Using cached seal-0.4.0-rc2.tar.gz (3.9 MB) ERROR: Command errored out with exit status 1: command: 'c:\users\dell\pycharmprojects\tree1\venv\scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dell\\AppData\\Lo cal\\Temp\\pip-install-wqhnys2c\\seal_121310caff9b4ea58a5e5b71c2cc6db2\\setup.py'"'"'; __file__='"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-install-wqhnys2c\\seal_12 1310caff9b4ea58a5e5b71c2cc6db2\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools imp ort setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\del l\AppData\Local\Temp\pip-pip-egg-info-bgmlkshd' cwd: C:\Users\dell\AppData\Local\Temp\pip-install-wqhnys2c\seal_121310caff9b4ea58a5e5b71c2cc6db2\ Complete output (9 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\dell\AppData\Local\Temp\pip-install-wqhnys2c\seal_121310caff9b4ea58a5e5b71c2cc6db2\setup.py", line 313, in <module> check_python_version() File "C:\Users\dell\AppData\Local\Temp\pip-install-wqhnys2c\seal_121310caff9b4ea58a5e5b71c2cc6db2\setup.py", line 58, in check_python_version override = ("true" == get_arg("override_version_check")) File "C:\Users\dell\AppData\Local\Temp\pip-install-wqhnys2c\seal_121310caff9b4ea58a5e5b71c2cc6db2\setup.py", line 47, in get_arg for i in xrange(len(sys.argv)): NameError: name 'xrange' is not defined ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/7e/b7/9b3e77d7a04461b3b7a281d1987dca24a516888d62614454016205ada3b3/seal-0.4.0-rc2.tar.gz#sha256=76ecda1a41d76 836531fa135d72411696853d9a541e1faa8d0168eff91701da0 (from https://pypi.org/simple/seal/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement seal (from versions: devel-20120307, 0.4.0rc2) ERROR: No matching distribution found for seal
Code run Error
Error:
Traceback (most recent call last): File "D:\Python3.8.0\Python\lib\unittest\loader.py", line 34, in testFailure raise self._exception ImportError: Failed to import test module: Seal Traceback (most recent call last): File "D:\Python3.8.0\Python\lib\unittest\loader.py", line 154, in loadTestsFromName module = __import__(module_name) ModuleNotFoundError: No module named 'Seal'



RE: ModuleNotFoundError: No module named 'Seal' - snippsat - Oct-03-2021

(Oct-03-2021, 04:24 AM)Anldra12 Wrote: pip install seal
That's this which is a old Python 2 library and wrong one.

Most follow this and build it using Visual Studio 2019
Or docker that may be the easiest option.


RE: ModuleNotFoundError: No module named 'Seal' - Anldra12 - Oct-03-2021

@snippsat Thanks you using docker how it can be done by using in python. because i never used docker


RE: ModuleNotFoundError: No module named 'Seal' - Anldra12 - Oct-03-2021

@snippsat i solved the problem to connect seal with Visual studio but do you know apply seal we can only run our codes in Visual or pycharm because pycharm is not working apply seal that can only connect with Visual studio


RE: ModuleNotFoundError: No module named 'Seal' - snippsat - Oct-03-2021

I don't know what you mean bye connect with Visual studio.
In install so Visual Studio used to build it for Python.
When do this python setup.py build_ext -i you build it for your version of Python.
Also your main version from command line python -V
E:\
λ python -V
Python 3.9.5

E:\
λ python -c "import shutil;print(shutil.which('python'))"
C:\python39\python.EXE
When build this version can be used in PyCharm or VS Code.


RE: ModuleNotFoundError: No module named 'Seal' - Anldra12 - Oct-04-2021

yeah but i have done seal by using this video tutorial https://www.youtube.com/watch?v=oZQ_c89HFU0


RE: ModuleNotFoundError: No module named 'Seal' - snippsat - Oct-04-2021

That's video is the C++ installation using Visual studio.
If want to use from Python as linked before in Thread Microsoft SEAL For Python
Then you also use Visual studio,but now as a tool to build it for usage in Python.
After you have donewhat described here,it's build for Python and do not need need Visual studio anymore.
Now can use from PyChram,VS Code or plain Python from command line.


RE: ModuleNotFoundError: No module named 'Seal' - Anldra12 - Oct-04-2021

Thanks you for your nice suggestion i have done in python too but for python the final option -----> python3 setup.py build_ext -i is not working for me.
Please give me suggestion How can i run this command because i run this same copy + paste and run in git command so its output as no external and internal command.


RE: ModuleNotFoundError: No module named 'Seal' - snippsat - Oct-04-2021

(Oct-04-2021, 10:24 AM)Anldra12 Wrote: i have done in python too but for python the final option -----> python3 setup.py build_ext -i is not working for me
You are on Windows now you run command for Linux,it's python no 3.
Windows
python setup.py build_ext -i



RE: ModuleNotFoundError: No module named 'Seal' - Anldra12 - Oct-06-2021

appreciated I have done but this command not execute python setup.py build_ext -i