I have been using Grasshopper and Rhino from the last 10 years and when I saw this project I felt that I need to collaborate somehow with that.
So, I had some problems when I tried to install here, but I already fixed them, but I still have some problems with some components.
OS: Manjaro Linux (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19274 (Git) AppImage
Build type: Release
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.4.0
Locale: English/Australia (en_AU)
The first problem was the same that @pablogil noticed, then I installed all libraries and set the python "site-packages" manually as described by @pablogil, many thanks @pablogil.
However, I have had another problem because of the python 3.8 version, in which the method time.clock() does not work anymore.
quote=pablogil post_id=360718 time=1579114003 user_id=4517]
I have done some progressions trying to get it to install:
This way I could open the PyFlow workbench and start "playing".
- I had to manually install missing python modules (at least here in macOS):
- blinker: pip install blinker
- numpy: pip install numpy
- docutils: pip install docutils
- nine: pip install nine)
- then I had to manually find the path to the python "site-packages" path: python -m site
- copy the path, open the workbench "InitGui.py" and after line 38 add a new line with the copied path: sys.path.append('path_here')
- close FreeCAD and open it again
If I follow your README.md, you ask run the Script "create all Nodes for Test" from Menu tests, but it partially fails:pyflow.png
Code: Select all
---------get FreeCADPyFlow------------------- getInstance @ ...ablo/Library/Preferences/FreeCAD/Mod/NodeEditor/nodeeditor/pfwrap.py li: 46 <nodeeditor.freecad_pyflowapp.FreeCADPyFlow object at 0x1353510c8> create instance getInstance @ ...ablo/Library/Preferences/FreeCAD/Mod/NodeEditor/nodeeditor/pfwrap.py li: 72 Running the Python command 'Micro_createAllNodesforTests' failed: Traceback (most recent call last): File "<string>", line 195, in Activated File "<string>", line 1, in <module> File "/Users/pablo/Library/Preferences/FreeCAD/Mod/NodeEditor/nodeeditor/Commands.py", line 1198, in createAllNodesforTests from PyFlow.Packages.PyFlowFreeCAD.Nodes.FreeCAD_Logic import nodelist No module named 'PyFlow.Packages.PyFlowFreeCAD'
Now I'm going to play around if I can do something else but it would be nice if you guide me a little, hehehe.
So, I changed all time.clock() in the python scripts in NodeEditor and Pyflow folders to other time method called as described here:
https://www.webucator.com/blog/2015/08/ ... explained/
So, the NodeEditor started work after that, but I had problems with the FreeCad dragger component when I tried to execute the command to start it while I was following @microelly2's introduction tutorial. Anyway, the other components look work properly.
Code: Select all
[bug] File "/home/klixto/.FreeCAD/Mod/PyFlow/PyFlow/Packages/PyFlowBase/Pins/ExecPin.py", line 69, in call super(ExecPin, self).call(*args, **kwargs) File "/home/klixto/.FreeCAD/Mod/PyFlow/PyFlow/Core/PinBase.py", line 608, in call self.onExecute.send(*args, **kwargs) File "/home/klixto/anaconda3/lib/python3.7/site-packages/blinker/base.py", line 266, in send return [(receiver, receiver(sender, **kwargs)) File "/home/klixto/anaconda3/lib/python3.7/site-packages/blinker/base.py", line 266, in <listcomp> return [(receiver, receiver(sender, **kwargs)) File "/home/klixto/.FreeCAD/Mod/NodeEditor/PyFlowPackages/PyFlowFreeCAD/Nodes/FreeCAD_Coin.py", line 114, in start import nodeeditor.dev File "/home/klixto/.FreeCAD/Mod/NodeEditor/nodeeditor/dev.py", line 6, in <module> import matplotlib.pyplot as plt File "/tmp/.mount_freecauGzJuK/usr/lib/python3.8/site-packages/matplotlib/pyplot.py", line 2349, in <module> switch_backend(rcParams["backend"]) File "/tmp/.mount_freecauGzJuK/usr/lib/python3.8/site-packages/matplotlib/__init__.py", line 833, in __getitem__ plt.switch_backend(rcsetup._auto_backend_sentinel) File "/tmp/.mount_freecauGzJuK/usr/lib/python3.8/site-packages/matplotlib/pyplot.py", line 213, in switch_backend switch_backend("agg") File "/tmp/.mount_freecauGzJuK/usr/lib/python3.8/site-packages/matplotlib/pyplot.py", line 221, in switch_backend backend_mod = importlib.import_module(backend_name) File "/tmp/.mount_freecauGzJuK/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/tmp/.mount_freecauGzJuK/usr/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 45, in <module> from PIL import Image File "/home/klixto/anaconda3/lib/python3.7/site-packages/PIL/Image.py", line 90, in <module> from . import _imaging as core ImportError: cannot import name '_imaging' from 'PIL' (/home/klixto/anaconda3/lib/python3.7/site-packages/PIL/__init__.py) [/bug]