ofek / ofek/pyapp

possible reasons for termination on installation (Windows)

Open
#173 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2k
Forks
65
PR merge metrics
No merged PRs in 30d

Description

I have users who are experiencing a premature termination of our app installation when using the exe on Windows. The users are able to see the following indicators when opening the exe:

Creating virtual environment
Installing test_app 0.22.0

But after approximately 2 minutes, the command prompt window closes.

Could this possibly be related to administrator permissions for individual machines? The exe is able to complete installation on the Windows machine on which it was built, but not on alternative machines.

The exe is distributed in zip format in an attempt to preserve the file permissions.

Here is the script used to create the binary, first by creating a whl file from the python package:

# create the whl distribution first
SCRIPTPATH=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

python $SCRIPTPATH/setup.py bdist_wheel --dist-dir $SCRIPTPATH/dist
VERSION=$( app -v | cut -d "v" -f 2 )

export PYAPP_PROJECT_NAME="app"
export PYAPP_PROJECT_DEPENDENCY_FILE="$SCRIPTPATH/requirements.txt"
export PYAPP_PROJECT_VERSION=$VERSION
export PYAPP_EXEC_SPEC="app.wsgi:main"
export PYAPP_PROJECT_PATH="$SCRIPTPATH/dist/app-$VERSION-py3-none-any.whl"
export PYAPP_PYTHON_VERSION=3.10
export PYAPP_EXE_NAME="app"

cd ../pyapp-latest && cargo build --release
mv target/release/pyapp.exe app_$VERSION.exe && chmod 777 app_$VERSION.exe && chmod 777

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the setup.py and requirements.txt inputs, the pyapp-latest cargo build, and the app.wsgi:main entry point in the provided build script. Reproduce the packaged app_$VERSION.exe on an alternative Windows machine and capture the installation failure instead of relying on the closing command prompt. Done means the termination cause is identified and a specific packaging or installation change is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, python, rust
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.