Sun 08/30/2026 17:50:56.65 [INFO] REQ-015: Appending standard ignores to .gitignore. Sun 08/30/2026 17:50:56.69 [INFO] REQ-015: Appending standard attributes to .gitattributes. Sun 08/30/2026 17:50:58.99 [INFO] Environment name: _pyvisa Sun 08/30/2026 17:50:59.02 [INFO] Host OS: Microsoft Windows [Version 10.0.26100.33296] Sun 08/30/2026 17:50:59.29 [INFO] Host PowerShell: 5.1.26100.33296 Sun 08/30/2026 17:50:59.33 [INFO] Python file count: 1 Sun 08/30/2026 17:50:59.39 [INFO] uv: UV_PYTHON_PREFERENCE=only-managed (orchestration uses managed Python). Sun 08/30/2026 17:50:59.41 [INFO] uv: downloading to ~uv_bin... Sun 08/30/2026 17:50:59.43 [INFO] Downloading uv from https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-pc-windows-msvc.zip... Sun 08/30/2026 17:51:00.64 [INFO] uv: acquired at ~uv_bin\uv.exe Sun 08/30/2026 17:51:01.03 [INFO] uv-first: Miniconda download skipped. Sun 08/30/2026 17:51:01.07 [INFO] Workspace: D:\a\Python_vs_Windows\Python_vs_Windows\tests\~pyvisa Sun 08/30/2026 17:51:01.09 [INFO] Env name: _pyvisa Sun 08/30/2026 17:51:01.11 [INFO] Log: ~setup.log Sun 08/30/2026 17:51:01.14 [INFO] uv: creating venv at .uv_env... Sun 08/30/2026 17:51:01.60 [INFO] uv: venv created at .uv_env Sun 08/30/2026 17:51:01.62 [INFO] HP_ENV_MODE=uv Sun 08/30/2026 17:51:01.64 [BOOT] REQ-009: Selected Python provider: UV. Sun 08/30/2026 17:51:02.04 [INFO] runtime.txt written: python-3.14.7 *** [INFO] Using requirements.txt for dependencies *** [INFO] Dependency accuracy depends on file correctness Sun 08/30/2026 17:51:02.37 [INFO] DEP_LAYER_REQUIREMENTS=1 Interpreter: D:\a\Python_vs_Windows\Python_vs_Windows\tests\~pyvisa\.uv_env\Scripts\python.exe Sun 08/30/2026 17:51:02.52 [INFO] Host Python: 3.14.7 Sun 08/30/2026 17:51:03.38 [INFO] pipreqs 0.4.13 installed successfully; using it for dependency discovery. Sun 08/30/2026 17:51:03.41 [INFO] pipreqs (direct) command: pipreqs . --force --mode compat --savepath \"D:\a\Python_vs_Windows\Python_vs_Windows\tests\~pyvisa\requirements.auto.txt\" --ignore \".git Pipreqs command (direct): pipreqs . --force --mode compat --savepath \"D:\a\Python_vs_Windows\Python_vs_Windows\tests\~pyvisa\requirements.auto.txt\" --ignore \".git,.github,.venv,venv,env,.uv_env,build,dist,__pycache__,tests\" Sun 08/30/2026 17:51:04.01 [INFO] DEP_RESOLUTION_STRATEGY=layered Sun 08/30/2026 17:51:04.03 [INFO] DEP_FINAL_COUNT=1 [INFO] requirements.txt differs from the auto-detected dependency scan; details below: Comparing files requirements.txt and REQUIREMENTS.AUTO.TXT ***** requirements.txt pyvisa ***** REQUIREMENTS.AUTO.TXT pyvisa~=1.16.2 ***** Sun 08/30/2026 17:51:04.08 [INFO] REQ-005.5: dependency source diff computed -- ~pipreqs.diff.txt Sun 08/30/2026 17:51:04.75 [INFO] REQ-005.12: autopep723 discovery merge complete. Sun 08/30/2026 17:51:05.10 [INFO] DEP_RESOLVED_FILE written: ~dependency_resolved.txt Sun 08/30/2026 17:51:05.12 [INFO] DEP_RESOLVED_FROM=requirements.txt Sun 08/30/2026 17:51:05.14 [INFO] DEP_INSTALL_SOURCE=requirements.txt Sun 08/30/2026 17:51:05.17 [INFO] Installing dependencies -- this may take a few minutes... Sun 08/30/2026 17:51:05.52 [INFO] UV_USED=1 Sun 08/30/2026 17:51:05.57 [INFO] DEP_INSTALLED_CAPTURED=1 Sun 08/30/2026 17:51:05.59 [INFO] Environment snapshot written: ~environment.lock.txt Sun 08/30/2026 17:51:05.97 [INFO] REQ-005.11: PEP 723 header write-back succeeded via uv add --script. Sun 08/30/2026 17:51:06.32 [INFO] Detected pyvisa/visa import; NI-VISA install may be required. Sun 08/30/2026 17:51:06.53 [VISA] download method: curl Sun 08/30/2026 17:51:06.55 [VISA] installer file size: 6769400 bytes Sun 08/30/2026 17:51:06.76 [VISA] installer PE check: PE_OK Sun 08/30/2026 17:51:07.08 [INFO] Launching NI-VISA installer (timeout ceiling: 5400000 ms). Sun 08/30/2026 17:51:28.11 [VISA] installer exit code: -125202 Sun 08/30/2026 17:51:28.15 [VISA] post-check waiting; retry 1/3 (installer_rc=-125202) Sun 08/30/2026 17:51:33.25 [VISA] post-check waiting; retry 2/3 (installer_rc=-125202) Sun 08/30/2026 17:51:38.34 [VISA] install_failed (post_check_timeout) installer_rc=-125202 Sun 08/30/2026 17:51:38.70 [INFO] Env state written: ~env.state.json Chosen entry: main.py Sun 08/30/2026 17:51:39.13 [BOOT] REQ-002: Entry selected: main.py Sun 08/30/2026 17:51:39.28 [INFO] Entry smoke breadcrumb exists: ~entry1_bootstrap.log Sun 08/30/2026 17:51:39.66 [INFO] Building standalone executable -- this may take a minute or two... Sun 08/30/2026 17:51:39.67 [INFO] (A stray one-line Windows message about a missing drive may appear next -- that is a known side effect from an unrelated background process, unrelated to your app; safe to ignore.) The system cannot find the drive specified. The system cannot find the drive specified. Sun 08/30/2026 17:51:53.23 [INFO] PyInstaller produced dist\_pyvisa.exe Sun 08/30/2026 17:51:53.25 [INFO] warnfix: some modules could not be automatically bundled (full list in ~warnfile.txt / ~setup.log); modules such as posix, fcntl, grp, pwd, resource, _scproxy, _posixsubprocess, collections.abc, and _frozen_importlib_external are expected on Windows and are filtered out automatically; cStringIO and StringIO (Python-2-only compatibility shims some packages still reference) are filtered out automatically too. Sun 08/30/2026 17:51:53.69 [REPAIR] missing modules detected; installing and rebuilding. Sun 08/30/2026 17:51:53.74 [INFO] Attempting to install: multiprocessing Sun 08/30/2026 17:51:55.29 [WARN] Repair failed: multiprocessing Sun 08/30/2026 17:51:55.30 [INFO] Attempting to install: pyimod02_importers Sun 08/30/2026 17:51:55.50 [WARN] Repair failed: pyimod02_importers Sun 08/30/2026 17:51:55.51 [INFO] Attempting to install: vms_lib Sun 08/30/2026 17:51:55.68 [WARN] Repair failed: vms_lib Sun 08/30/2026 17:51:55.69 [INFO] Attempting to install: java Sun 08/30/2026 17:51:55.80 [WARN] Repair failed: java Sun 08/30/2026 17:51:55.81 [WARN] One or more repair attempts failed Sun 08/30/2026 17:51:55.82 [INFO] Rebuilding standalone executable after warnfix -- this may take a minute or two... Sun 08/30/2026 17:52:07.55 [REPAIR] rebuild complete after warnfix. Sun 08/30/2026 17:52:07.57 [INFO] REQ-005.11: PEP 723 write-back skipped (one or more warnfix repairs failed). Sun 08/30/2026 17:52:07.91 [WARN] REQ-009: warnfix left modules unresolved under provider uv. Sun 08/30/2026 17:52:07.92 [INFO] REQ-009: cascade candidate detected. *** Some dependencies could not be installed under the current Python provider. *** Sun 08/30/2026 17:52:07.94 [INFO] REQ-009: cascade consent: declined. Sun 08/30/2026 17:52:07.95 [INFO] REQ-009: cascade declined; keeping current build. Sun 08/30/2026 17:52:07.96 [WARN] REQ-009: dependencies for this provider may still be incomplete. If the run below fails or behaves unexpectedly, re-run and accept the cascade prompt to try a different provider, or check/edit requirements.txt yourself if you believe the automatic install missed something it shouldn't have. Sun 08/30/2026 17:52:07.98 [INFO] PyInstaller build artifacts cleaned up. Sun 08/30/2026 17:52:08.32 [INFO] EXE smokerun: testing dist\_pyvisa.exe Sun 08/30/2026 17:52:08.33 [INFO] Running entry script smoke test via packaged EXE. Sun 08/30/2026 17:52:08.36 [WARN] Verifying the built standalone EXE (PyInstaller) now: if it stays completely silent for about 30 seconds it will be force-stopped, but any output (including a prompt waiting on your input) keeps it running as long as needed. If your program is interactive, try answering its prompts through to its own quit/exit option now so we can confirm it exits cleanly. Either way, do not start real work in it yet or any unsaved work will be lost. Sun 08/30/2026 17:52:08.37 [WARN] Note: dependency installation for this run may be incomplete (see the earlier warning above) -- unexpected behavior below could stem from that rather than a bug in your own code. [INFO] Process ID 8328. If it seems stuck: Task Manager > Details tab > find this PID > End Task (this window stays open). Sun 08/30/2026 17:52:10.00 [INFO] EXE smokerun: exited 0 (ok) Sun 08/30/2026 17:52:10.00 [INFO] Entry smoke exit=0 Sun 08/30/2026 17:52:10.01 [STATUS] Run Status: SUCCESS (Exit Code: 0) *** Verification finished -- see the Run Status above. *** *** You can run your program again now via the interpreter as an extra diagnostic check. (Optional) *** Sun 08/30/2026 17:52:10.05 [INFO] REQ-018: post-execution checkpoint (exe): declined (run footprint stays at one execution). *** Your app is ready. *** *** Want to build an optimized version too? It takes a bit longer to build right now, *** *** but it starts up more reliably on Windows and runs faster once it is built. (Optional, safe to skip) *** Sun 08/30/2026 17:52:10.08 [INFO] Optimized build: declined. *** [INFO] Dependency source logged to dependency_source.txt ============================================================ SETUP COMPLETE ============================================================ Your standalone application is ready: dist\_pyvisa.exe RUNNING YOUR APP Double-click dist\_pyvisa.exe to run it. You can also run it directly via the interpreter at any time: "D:\a\Python_vs_Windows\Python_vs_Windows\tests\~pyvisa\.uv_env\Scripts\python.exe" "main.py" STARTUP MAY BE SLOW: a one-file .exe unpacks itself each time it starts, so allow 10-15 seconds (longer for big libraries like numpy/scipy/matplotlib, or when extra packages were bundled to fix missing imports) before assuming it has hung. If the window flashes and closes instantly: that's normal if your program finished quickly or hit an error before printing anything. To see what happened, open Command Prompt, cd to this folder, and run: dist\_pyvisa.exe This keeps the window open so you can read any messages. A progress indicator that updates in place may appear all at once instead of live when run as the .exe -- that is a stdout buffering difference between the .exe and the script, not an error. Does your program need launch arguments (e.g. --input file.csv)? Run this bootstrapper again with them added after the entry file, e.g. run_setup.bat "main.py" --input file.csv and they will be forwarded to your program during THIS setup run (up to 8 extra arguments). This does not change how a plain double-click of dist\_pyvisa.exe launches it afterward -- for that, make a Windows shortcut to the .exe and add the arguments to its Target field, or launch it yourself from a Command Prompt. KEEP these files with your project: requirements.txt -- packages your app depends on runtime.txt -- Python version pin SAFE TO DELETE to reclaim disk space: .*_env\ folders -- environment directories ~* files -- tilde-prefix work files (e.g. ~setup.log) build\ -- PyInstaller build cache ============================================================ Sun 08/30/2026 17:52:10.19 [INFO] REQ-016: Post-flight briefing printed.