@sanoy414
Please try the below steps:
Create a folder as c:\app, and copy example.py(attached) to c:\app
Now, open your command prompt, type the below commands in the prompt.
-
cd c:\app
-
pyinstaller example.py
-
copy the jars(aspose-cells-23.1.jar, bcprov-jdk15on-160.jar, bcpkix-jdk15on-1.60.jar, JavaClassBridge.jar. They exist in C:\Python311\Lib\site-packages\asposecells\lib folder) to c:\app
-
edit example.spec to add datas section like below (attached)
mydatas = [(’./aspose-cells-22.11.jar’, ‘.’),
('./bcprov-jdk15on-160.jar', '.'),
('./bcpkix-jdk15on-1.60.jar', '.'),
('./JavaClassBridge.jar', '.') ]
a = Analysis(
['example.py'],
pathex=[],
binaries=[],
datas=mydatas,
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
- pyinstaller example.spec
- cd c:\app\dist\example
- example.exe
I use the same versions of python aspose-cells jpype1 as you.example.zip (1.1 KB)