Skip to content

Error: No module named 'PyFlow.Packages.PyFlowFreeCAD' #15

@SuzanneSoy

Description

@SuzanneSoy

Hi!

I followed the installation instructions in the README (cd ~/apps/freecad/.FreeCAD/Mod; git clone https://github.com/microelly2/PyFlow; suzanne git clone https://github.com/mottosso/Qt.py; git clone https://github.com/microelly2/NodeEditor). The check for the imports seems good:

image

but when I click create all Nodes for Test from the menu tests, I get the following error:

Running the Python command 'Micro_createAllNodesforTests' failed:
Traceback (most recent call last):
  File "<string>", line 199, in Activated
  File "<string>", line 1, in <module>
  File "/home/suzanne/apps/freecad/.FreeCAD/Mod/NodeEditor/nodeeditor/Commands.py", line 1202, in createAllNodesforTests
    from PyFlow.Packages.PyFlowFreeCAD.Nodes.FreeCAD_Coin import nodelist

No module named 'PyFlow.Packages.PyFlowFreeCAD'

image

Just in case the instructions were supposed to be followed to the letter, I tried without the implicit step of creating a new document, and get an error because there is no FreeCAD.ActiveDocument.

I noticed I have a folder .FreeCAD/Mod/NodeEditor/PyFlowPackages but not .FreeCAD/Mod/NodeEditor/PyFlow/Packages (notice the slash before Packages), so I tried making a copy with (cd ~/apps/freecad/.FreeCAD/Mod/NodeEditor && mkdir PyFlow && touch PyFlow/__init__.py && cp -ai PyFlowPackages PyFlow/Packages). That seemed to help, and it fails much later:

image

I was able to create some nodes by clicking, but it seems I can't get any constant to work nor any FreeCAD nodes to work.

image

I'm running the latest FreeCAD AppImage:

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23546 (Git) AppImage
Build type: Release
Branch: master
Hash: 6b017f9a16b15b0e628c8d874c4058442dee5548
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United Kingdom (en_GB)

The three cloned repos are at these commits:

PyFlow/
commit d13453357e3d58e54f9c240a5639efdfaafe18ec (HEAD -> master7, origin/master7, origin/HEAD)
Merge: 6c610942 bdc66711
Author: microelly2 <thomas@freecadbuch.de>
Date:   Sat Apr 11 15:36:51 2020 +0200

    Merge branch 'master' of https://github.com/wonderworks-software/PyFlow into master7
Qt.py/
commit 8a8953bc672b75a157a6c2a9b49e48985bb3e8a7 (HEAD -> master, tag: 1.3.2, origin/master, origin/HEAD)
Merge: 6ea602a defede1
Author: Marcus Ottosson <konstruktion@gmail.com>
Date:   Sat Oct 3 10:39:59 2020 +0100

    Merge pull request #350 from blurstudio/import_error_warning_improvement
    
    Include the module name that failed to import in warning
NodeEditor/
commit 7e1826b1f80879f7eb5f35857582b5e13212a80a (HEAD -> master, origin/master, origin/HEAD)
Author: microelly2 <thomas@freecadbuch.de>
Date:   Thu Apr 30 10:02:04 2020 +0200

    fix bug force recompute input nodes for lists

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