I am encountering an issue when running PyInstaller via a Bitbucket pipeline on a Windows self-hosted runner. The command I am executing in PowerShell is:
pyinstaller $env:BITBUCKET_CLONE_DIR\XXXX.sprc -- --app_dir $env:BITBUCKET_CLONE_DIR
However, when running PyInstaller from a different folder (not the one it was installed in),
I receive the following error:
Error: Do not run pyinstaller from C:\Windows\System32\temp\XXXXX\build.
cd to where your code is and run pyinstaller from there.
Hint: You can open a terminal where your code is by going to the parent folder in Windows File Explorer and typing cmd into the address bar.
When running the same PyInstaller command manually on the server, it executes without any issues.
The problem occurs only when executing the command via the Bitbucket pipeline.
If I run PyInstaller from the folder where it is installed, the issue does not occur.
Hi Stevedan,
May I know if you are required to run the command from outside the installation folder? Are you cd'ing to a folder that definitely exists within the context of your self-hosted runner build? (hint: adding ls -lah command to your YAML will allow you to to view folders in the build context)
Cheers!
- Ben (Bitbucket Cloud Support)
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.