-
-
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 |
Did someone manage to pack flatcam in a standalone app with py2app or pyInstaller? I'm trying to get flatcam work on my Mac (OSX 16.x) but I have no luck. I tried with different python versions but had no luck. I would super grateful if someone could compile flatcam to a standalone application. There is also an icon in .icns format I made from the png logo. Feel free to contact me, I'll share it with you.
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.
Has anyone fixed this? the original code line is module = loader.find_module(name).load_module(name)
i've changed to module = loader.find_spec(name).create_module(name)
but it triggers the ModuleSpec Object has no attribute 'create_module'
It likes the find_spec change but not the create_module one
On the off-chance people don't know this:
brew tap tomoyanonymous/flatcam
brew install flatcam-beta
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.