First thank you.
I think i have done it correctly, the adding of the path that you
suggested. You can see the file.
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['PC.py'],
pathex=['D:\\Python\\Novo\\Point Cloud Ver2','C:\\Program
Files\\CARIS\\BASE Editor\\5.3\\python\\3.5'],
binaries=[],
datas=[('ReadAPointCloudFromAPLYFileExample_01.png', '.')],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=['caris'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[('v', None, 'OPTION')],
exclude_binaries=True,
name='Point Cloud',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True , icon='Point_Cloud.ico')
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='Point Cloud')
After running it the result was the same. I have to had that the
path C:\\Program Files\\CARIS\\BASE Editor\\5.3\\python\\3.5 is a variable
path since it corresponds to the install directory and I retrieve it using
a class.
In a way i have also to refer that the caris module has DLL hidden in the
pyd, do not know if this is the reason for having this error. It's clear
when running without the
--exclude-module=caris
command.
If i do it i get the DLL list that pyinstaller sees but does not finds it.
Any ideas?
terça-feira, 21 de Abril de 2020 às 00:02:54 UTC+2, bwoodsend escreveu:
>
> I take it you are putting the sys.path.insert in your PC.py? In which
> case that isn't enough for PyInstaller to find and bundle it properly.
>
> I believe you can't do this using the command line. Run your bat file
> once. It should create a file called *PC.spec*. In it is all the
> information you would normally pass via command line arguments. To build
> you can just call
> PyInstaller PC.spec
> rather than running your bat file in future.
>
> Now to modify the build you should modify the spec file. In your spec
> there should be an argument `pathex=["folder/containing/your/script"]`. Add
> "C:/Program Files/CARIS/BASE Editor/5.3/python/3.5/" to that list noting
> the use of /s rather than \s in the path.
>
> That should do it.
>
> Brénainn
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/55520d2c-2428-4db0-aed7-297e6706bafb%40googlegroups.com.