node editor - pyflow

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
FreeCutter
Posts: 93
Joined: Mon Aug 26, 2019 5:52 pm
Location: Germany
Contact:

Re: node editor - pyflow

Post by FreeCutter »

Thanks a lot - got it installed at least according to the system messages.
However, the init error message (No module named 'blinker') still remains.

What's clever to do next?
Where is this log file located the init message is talking about?

Thanks for further support!
FreeCutter
Visit my GitHub profile

Be nice to others! Respect the FreeCAD code of conduct!
Syres
Veteran
Posts: 2898
Joined: Thu Aug 09, 2018 11:14 am

Re: node editor - pyflow

Post by Syres »

This isn't my specialist area but I'm wondering if you're version of pip is the root cause or something else on the Python side of things. Basically unless you can run

Code: Select all

import blinker 
successfully at the Python Console then you won't progress. If I run:

Code: Select all

import pip
pip.__version__
I get '20.1.1' as the output (upgraded today) and when I installed blinker it still worked without wheel being installed which make it suspiciously like the installer is not correct on your system hence my suggestion to upgrade pip first. After that then I'm afraid you'll need @Microelly2 or someone with more experience on this install routine.
Bance
Veteran
Posts: 4249
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: node editor - pyflow

Post by Bance »

Are you running an FC appimage?
I can't get pyflow to work on any version from the repo's.

OS: Linux Mint 18.2 Sonya (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: ee440bea612721e51b5af4c621ce15b1885a6bc0
Python version: 3.5.2
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)
sadoub
Posts: 1
Joined: Mon Jun 15, 2020 4:48 pm

Re: node editor - pyflow

Post by sadoub »

microelly2 wrote: Fri Apr 10, 2020 9:17 pm The interface to csv data
How to load, filter and plot data from csv files
phpBB [video]
Evening! Was looking for new tools for Data science (Machine Learning) and I came saw this video. I could install and I'm learning to use it.
for PyflowWWW and Cypher packages are they available? Is there any solution to use Pyflow with Pandas DataFrame? Thanks
jtm2020hyo
Posts: 594
Joined: Wed Aug 12, 2020 1:24 am

Re: node editor - pyflow

Post by jtm2020hyo »


Postby saso » Fri Apr 10, 2020 7:13 pm

microelly2 wrote: ↑
Fri Apr 10, 2020 4:17 pm
How to load, filter and plot data from csv files

I would leave your node editor for cad stuff and suggest to have a look at https://www.knime.com/ for a more general data science/analytics ;)

https://www.youtube.com/user/KNIMETV/videos
https://hub.knime.com/search?q=covid
why not both?
User avatar
freecadlzh
Posts: 138
Joined: Fri Mar 06, 2020 12:52 pm

Re: node editor - pyflow

Post by freecadlzh »

microelly2 wrote: Thu Jan 16, 2020 9:53 am
pablogil wrote: Thu Jan 16, 2020 9:44 am Is there any video that shows how to do something from scratch so that I can test if everything works as expected?
You may have a look at the pyflow documentation page
https://github.com/wonderworks-software/PyFlow
https://pyflow.readthedocs.io/en/latest/

I will make a FreeCAD example workflow tutorial this afternoon too.
Thanks to microelly2, PyFlow a powerful project. I got the project in url https://github.com/wonderworks-software/PyFlow ,Combined with nodededitor, it can works in freecad, and control the freecad model.It's amazing!!!

However, for me, pyflow is a little too powerful.I need a simple version to learn.By chance, I saw a video of you on YouTube.Pyflow in this video suits me very well.

I need three features:
1.Integration into freecad is similar to the effect of integrating a document into freecad to form a dock form.This effect is shown in the figure below:
2.png
2.png (778.37 KiB) Viewed 2903 times
1.png
1.png (652.68 KiB) Viewed 2903 times
1.png
1.png (652.68 KiB) Viewed 2903 times
2.Pyflow can automatically read all the models of freecad, and automatically convert the models into nodes and display them in pyflow's scene.
I think PyFlow can do it.

3.Pyflow node connection information can be read through Python code.
I think PyFlow can do it.

In video( https://www.youtube.com/watch?v=RO3m7oK ... tKxbGxrmlr )I found your reply in the comments area. There is a link address in it, which seems to be the address of the old version of pyflow (I started my workbench https://github.com/microelly2/PyFlow/tree/freecad
it is a workbench but very alpha at the moment but with the first commands and the first freecad package/node)。 I visited this address, downloaded the zip code directly and put it into freecad for execution,The execution effect of this version of pyflow is inconsistent with that in the video, and an error will be reported when you click the button, as shown in the following figure:
5.png
5.png (145.78 KiB) Viewed 2903 times
So, the help I need is, where can I get an old version of pyflow code, which can achieve the effect I need?

Need suggestions, Thanks a lot.
Attachments
3.png
3.png (710.36 KiB) Viewed 2903 times
User avatar
openfablab
Posts: 62
Joined: Wed Nov 02, 2016 4:42 pm
Contact:

Re: node editor - pyflow

Post by openfablab »

Thanks to all who brought this interesting node editor.

For now I did not understand how to use it with FreeCAD 0.19 Appimage. But my question is about other thing.

Now I am trying to implement MBSE workflow with FreeCAD. Partially this means that while assemblies and parts are stored in separate files, designer often need integrated information structure through them. E.g. technical requirements for some part are derived from requirements of its parent assembly, etc, up to user requirements of a whole product. Other types of information which need to be linked and browsed through multi-file structures are flows, interfaces, lifecycle states, etc.

For today lack of this PLM features is the main disadvantage of FreeCAD against industrial solutions like NX. But I think it is not too hard to implement. E.g. Assembly4 assemblies have links to chilldren files. They can have autoupdated links to parent files. All we need is a node/diagram editor to visualize and edit information through all this hierarchy with connection to FreeCAD objects from files.

I sketched some data model to be used this way. This is low-res preview, one could use free Archi software to open architecture file.

H60lX79YsG8.jpg
H60lX79YsG8.jpg (191.63 KiB) Viewed 2801 times
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: node editor - pyflow

Post by paullee »

microelly2 wrote: Fri May 15, 2020 9:13 pm Ping
Thanks for making this! Following procedures in github, click 'Create All Nodes for Test', getting errors.

Using FreeCAD_0.19-21775-Linux-Conda_glibc2.12-x86_64.AppImage, extracted into folders to run the AppRun to run FC.

Thanks for any idea.

Code: Select all

---------get FreeCADPyFlow------------------- getInstance @ ...12-x86_64_copy/squashfs-root/usr/Mod/NodeEditor/nodeeditor/pfwrap.py li: 46
<nodeeditor.freecad_pyflowapp.FreeCADPyFlow(0x563251266870) at 0x7f2f26f57bc0>
create instance getInstance @ ...12-x86_64_copy/squashfs-root/usr/Mod/NodeEditor/nodeeditor/pfwrap.py li: 72
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/paullee/Downloads/FreeCAD_0.19-21775-Linux-Conda_glibc2.12-x86_64_copy/squashfs-root/usr/Mod/NodeEditor/nodeeditor/Commands.py", line 1202, in createAllNodesforTests
    from PyFlow.Packages.PyFlowFreeCAD.Nodes.FreeCAD_Coin import nodelist

No module named 'PyFlow.Packages.PyFlowFreeCAD'Running the Python command 'Micro_loadGraph' failed:
Traceback (most recent call last):
  File "<string>", line 199, in Activated
  File "<string>", line 1, in <module>
  File "/home/paullee/Downloads/FreeCAD_0.19-21775-Linux-Conda_glibc2.12-x86_64_copy/squashfs-root/usr/Mod/NodeEditor/nodeeditor/Commands.py", line 737, in loadGraph
    data=eval(a.graph)

('unexpected EOF while parsing', ('<string>', 0, 0, ''))
jtm2020hyo
Posts: 594
Joined: Wed Aug 12, 2020 1:24 am

Re: node editor - pyflow

Post by jtm2020hyo »

When will be available this workbench in the add-on manager for test pyflow?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: node editor - pyflow

Post by Kunda1 »

We really need microelly2 to come back and continue developing this. Until then it isn't complete and so we don't want to mislead users to download a broken workbench that isn't under development anymore (we already have a few available in the Addon Manager
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply