Skip to content

python console crash after import FreeCAD #1073

@wsteffe

Description

@wsteffe

Is there an existing issue for this?

  • I have searched the existing issues

Version

0.21 (Development)

Full version info

[code]
OS: Ubuntu 24.04.2 LTS (GNOME-Classic:GNOME/gnome-classic)
Word size of FreeCAD: 64-bit
Version: 0.21.0.39068 (Git)
Build type: Unknown
Branch: LinkStable
Hash: 818c5e0401593ee6e91609baa00aa62206a0378b
Python 3.12.3, Qt 5.15.13, Coin 4.0.2, Vtk 9.1.0, OCC 7.7.0
Locale: English/United States (en_US)
Installed mods: 
  * asm3 0.12.0
  * Assembly4 0.50.2
[/code]

Subproject(s) affected?

None

Problem description

$ python3
Python 3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import FreeCAD
Fatal Python error: PyImport_AppendInittab: PyImport_AppendInittab() may not be called after Py_Initialize()
Python runtime state: initialized

Current thread 0x00007a5149f73540 (most recent call first):
File "", line 488 in _call_with_frames_removed
File "", line 1289 in create_module
File "", line 813 in module_from_spec
File "", line 921 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "", line 1 in

Aborted (core dumped)

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions