View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004397 | FreeCAD | Bug | public | 2020-07-02 14:31 | 2022-02-06 17:50 |
Reporter | Fizik | Assigned To | |||
Priority | low | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | reopened | ||
OS | Windows 10 | OS Version | Build 19041.329 | ||
Product Version | 0.18 | ||||
Target Version | 0.20 | ||||
Summary | 0004397: Extensions module directory lacking from module paths on startup | ||||
Description | Modules installed (by the Extension Manager) in the user Python modules directory %appdata%\FreeCAD\Mod are not accessible by means of the Python console (nor are they available to macros loaded into the workbench) when FreeCAD is started without command line options (e.g. from the start menu after a fresh install). Things work fine when starting with the --module-path option, like
| ||||
Steps To Reproduce | This description is pretty arbitrary, but it is what I stumbled across.
The interpreter reports ModuleNotFoundError on A2plus for the line entered.
The module is now accessible (and can be listed, e.g. dir(A2plus)). | ||||
Tags | No tags attached. | ||||
FreeCAD Information | OS: Windows 10 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.4 (GitTag) Build type: Release Branch: releases/FreeCAD-0-18 Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8 Python version: 3.6.6 Qt version: 5.6.2 Coin version: 4.0.0a OCC version: 7.3.0 Locale: German/Germany (de_DE) | ||||
|
Please delete this. I learned what I did wrong. |
|
@Fizik : please tell us what you did wrong so everybody will take advantage of this. I'll close ticket when done. Thx. |
|
@openBrain The module is accessible by the name FreeCAD.A2plus (instead of A2plus without the prefix), and hence is imported by
(I got myself fooled by the — apparently outdated — example file [A2p_animation-example-script.py](https://forum.freecadweb.org/download/file.php?id=97981) from the [A2+ documentation wiki](https://wiki.freecadweb.org/A2plus_Workbench).) |
|
@openBrain where should we document this? |
|
@Kunda1 : It's purely related to A2plus so we don't really have room for that. At least the information is here. ;) |
|
This ticket has been migrated to GitHub as issue 6086. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-07-02 14:31 | Fizik | New Issue | |
2020-07-02 15:13 | Fizik | Note Added: 0014612 | |
2020-07-07 16:22 | openBrain | Note Added: 0014625 | |
2020-07-07 21:37 | Fizik | Note Added: 0014633 | |
2020-07-07 21:38 | Fizik | Note Edited: 0014633 | |
2021-02-06 06:49 | abdullah | Target Version | => 0.20 |
2022-02-04 18:45 | Kunda1 | Status | new => resolved |
2022-02-04 18:45 | Kunda1 | Resolution | open => no change required |
2022-02-04 18:45 | Kunda1 | Note Added: 0016350 | |
2022-02-06 17:48 | openBrain | Status | resolved => feedback |
2022-02-06 17:48 | openBrain | Resolution | no change required => reopened |
2022-02-06 17:48 | openBrain | Note Added: 0016366 | |
2022-02-06 17:50 | openBrain | Status | feedback => resolved |