-
-
Save natevw/3e6fc929aff358b38c0a to your computer and use it in GitHub Desktop.
brew update | |
brew install pyqt geos spatialindex | |
easy_install pip | |
pip install virtualenv | |
cd Development/Others\'/ | |
mkdir FlatCAM | |
cd FlatCAM | |
virtualenv env | |
source env/bin/activate | |
pip install numpy matplotlib rtree scipy shapely simplejson | |
# copy contents of FlatCAM_8.1.zip into FlatCAM folder | |
python FlatCAM.py |
I'm currently in the process of getting FlatCAM build with MacPorts.
I finally got it all working, but it will still take some time until I got all newly created port files for flatcams dependencies into shape to get them into the upstream macports repo.
One thing I wanted to share here, though: The problem with
AttributeError: module 'vispy.visuals.markers' has no attribute '_marker_dict' error
is due to a "patch" in appGui/VisPyPatches.py
, which has long been available in upstream VisPy. So lines 16-34 in this file can safely be removed and then flatcam also runs with newer (i.e., > 0.9.0) vispy versions.
anyone know about this error ?
Traceback (most recent call last):
File "/Users/isai/Desktop/FlatCAM/FlatCAM.py", line 6, in
from app_Main import App
File "/Users/isai/Desktop/FlatCAM/app_Main.py", line 94, in
from appTools import *
File "/Users/isai/Desktop/FlatCAM/appTools/init.py", line 38, in
from appTools.ToolShell import FCShell
File "/Users/isai/Desktop/FlatCAM/appTools/ToolShell.py", line 19, in
import tclCommands
File "/Users/isai/Desktop/FlatCAM/tclCommands/init.py", line 75, in
module = loader.find_module(name).load_module(name)
^^^^^^^^^^^^^^^^^^
AttributeError: 'FileFinder' object has no attribute 'find_module'
I presume you are trying to run flatcam with python 3.12, because FileFinder.find_module, which has been deprecated since python 3.4 and removed in 3.12 (see https://docs.python.org/3.11/library/importlib.html#importlib.abc.PathEntryFinder.find_module).
So you can either switch to python < 3.12 or try to fix that line by using load_spec
instead.
This was fixed on the Beta branch in this commit
See also this issue