Package update on new Python version called from wrong thread, with wrong Python exe

Open
#510 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

The error occurs in /Users/osh/Library/Application Support/FreeCAD/v26-3/Mod/Telemetry/InitGui.py. Start by examining that file to see how it checks for the Posthog package. Look at the Pixi changes that might have affected dependency management. Check if the Telemetry module's dependencies are correctly specified and if the environment setup is missing posthog. Run FreeCAD with the Telemetry mod enabled to reproduce the error and verify the fix.

Written by the indexing model from the issue text.

Description

After the major Pixi updates this week, noticed the following messages when I launch FreeCAD.

09:47:37  During initialization the error "Posthog Python package is not installed: pip install posthog" occurred in /Users/osh/Library/Application Support/FreeCAD/v26-3/Mod/Telemetry/InitGui.py
09:47:37  Look into the log file for further information
09:47:37  During initialization the error "Posthog Python package is not installed: pip install posthog" occurred in /Users/osh/Library/Application Support/FreeCAD/v26-3/Mod/Telemetry/InitGui.py
09:47:37  Look into the log file for further information
OS: macOS 27.0
Architecture: arm64
Version: 26.3.0dev.20260922 (Git shallow)
Build date: 2026/09/22 20:26:30
Build type: Release
Branch: (HEAD detached at 019f5c50a)
Hash: 019f5c50a945743b89cabf422ac5f5f1e297d890
Python 3.13.15, Qt 6.11.2, Coin 4.0.10 (bundled), Pivy 0.6.11 (bundled), Vtk 9.7.0, boost 1_90, Eigen3 5.0.1, PySide 6.11.2
shiboken 6.11.2, xerces-c 3.3.0, Clipper2 , IfcOpenShell 0.8.5, OCC 8.0.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: OpenDark.qss/OpenDark/
QPA/File dialog/Color dialog: cocoa/via Qt/via Qt
Navigation Style/Orbit Style/Rotation Mode: Touchpad/Rounded Arcball/Window center
Logical DPI/Physical DPI/Pixel Ratio: 72/127.5/2
OpenGL version/vendor/renderer: 2.1 Metal - 91.7/Apple/Apple M5
Installed mods:
  * OpenTheme 2025.5.20
  * Telemetry 1.0.7
Dominant language
Python
Stars
24
Forks
36
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from FreeCAD/AddonManager

All issues in FreeCAD/AddonManager

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.