FlatCAM and bCNC on Linux¶
I have always wanted to try FlatCAM and bCNC running LINUX I found this guide online. Let’s see if I can get FlatCAM to work this time in linux with my Nomad 3 CNC mill that seems to only work well via windows 10.
https://www.chriskohlhardt.com/small-double-sided-pcb-traces-on-nomad-cnc
I install FlatCAM 8.994 beta for Linux by follwing the inctructions at: FlatCAM 2. Installation
After downloading the FlatCAM_beta_8.994_sources.zip file I unzipped it. Next I went into that folder and right clicked the setup_ubuntu.sh file and selected the permissions tab and then checked the box by Execute: Allow executing file as a program. Next I right clicked the folder and selected “open in terminal” the I ran the setup_ubuntu.sh shell script with the following command:
./setup_ubuntu.sh
Some error were reported:
ERROR: launchpadlib 1.10.13 requires testresources, which is not installed. ERROR: reportlab 3.6.11 has requirement pillow>=9.0.0, but you’ll have pillow 7.0.0 which is incompatible.
To fix the pillow error Pillow: Installation
python3 -m pip install --upgrade pip python3 -m pip install --upgrade Pillow
Then I ran again:
./setup_ubuntu.sh
It seemed like that worked well. Time to try running FlatCAM
python FlatCAM.py
It did not work :( hmmmm.
I looked at the 2.4 Requirements section and looked up all of them in my package manager.
What a pain in the ass!
But this is what I found
Requirement already satisfied: matplotlib in /usr/local/lib/python3.8/dist-packages (3.6.0)
Requirement already satisfied: pip in /usr/local/lib/python3.8/dist-packages (22.2.2)
Requirement already satisfied: numpy in /home/meistertek/.local/lib/python3.8/site-packages (1.19.4)
Requirement already satisfied: Shapely in /usr/local/lib/python3.8/dist-packages (1.8.4)
‘apt install python3-pyqt5’
python3-pyqt5 is already the newest version (5.14.1+dfsg-3build1). 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
See (https://unix.stackexchange.com/questions/148684/failed-installation-32-bit-python-on-64-bit-linux-mint)
pip install rtree
Requirement already satisfied: rtree in /usr/local/lib/python3.8/dist-packages (1.0.0)
Try running again:
python FlatCAM.py
ImportError: cannot import name ‘TypeAlias’ from ‘typing_extensions’ (/usr/lib/python3/dist-packages/typing_extensions.py)
pip install typing-extensions --upgrade
ModuleNotFoundError: No module named ‘ezdxf.math.vector
Making progress!
See: (https://muut.com/i/flatcam/usage:install-on-ubuntu-2004-fai?page=2)
sudo pip3 uninstall ezdxf
Successfully uninstalled ezdxf-0.18.1
pip3 install ezdxf==0.14.2
Successfully installed ezdxf-0.14.2
python FlatCAM.py
Traceback (most recent call last):
File “FlatCAM.py”, line 58, in
See fix from fab academy student: (https://fabacademy.org/2022/labs/sorbonne/students/chloe-laurent/cheatsheets/flatcam/#installation-on-ubuntu-2004)
Try again!
python FlatCAM.py
Holy shit it worked! Thanks Chloé Laurent
This took a lot of time so I am going to make my adapter board using using windows 10 and return to getting the Nomad 3 Mill running in Linux later.