flatcam

Open full view…

FlatCam installation on Debian Testing (Bookworm 12)

Richard
Tue, 05 Jul 2022 10:25:09 GMT

Hello guys, After hours trying to install FlatCam on Debian Testing (Bookworm 12), I finally find a way, and I suppose it could be useful to share. It would be probably the same for other Debian based distributions and versions. The concept is to create a virtual environment Python3.8, which is the version used for development of the Beta release(Ubuntu 20.04 TLS). I compiled the Python 3.8.13 (it works with 3.8.5), but it should work with newer Python versions as well according to the author. I am not a Debian or Python specialist but thanks to internet, I managed to get the things work. And thanks to the time I spent...lol I stressed the procedure reinstalling several times my laptop from scratch in order to identify what are the needed dependencies. SEE THE PROCEDURE BELOW. I hope it could help, now let's work with FlatCam!!! Thanks a lot to Marius Stanciu and Juan Pablo Caram for this software. Regards Richard ###################################################################### ######## ## # 1 Install requirements, download and compile Python 3.8.13 # # Based on the following website to create the virtual environment # https://www.linuxcapable.com/how-to-install-python-3-8-on-debian-11-bullseye/ ###################################################################### ########## sudo apt update && sudo apt upgrade ### Python build requirements ### sudo apt install -y \ build-essential \ zlib1g-dev \ libncurses5-dev \ libgdbm-dev \ libnss3-dev \ libssl-dev \ libsqlite3-dev \ libreadline-dev \ libffi-dev \ curl \ libbz2-dev sudo apt install -y \ tk-dev \ libgdbm-compat-dev sudo apt install -y \ gdal-bin \ libgdal-dev \ python3-venv ### Flatcam requirements ### sudo apt install -y \ libfreetype6 \ libfreetype6-dev \ libgeos-dev \ libpng-dev \ libspatialindex-dev \ qt5-style-plugins \ python3-dev \ python3-gdal \ python3-pip \ python3-pyqt5 \ python3-pyqt5.qtopengl \ python3-simplejson \ python3-tk ### Python3.8.13 build ### cd ~ wget https://www.python.org/ftp/python/3.8.13/Python-3.8.13.tar.xz tar -xf Python-3.8.13.tar.xz Python-3.8.13/ rm Python-3.8.13.tar.xz sudo mv Python-3.8.13 /opt/Python3.8.13 cd /opt/Python3.8.13/ ./configure --enable-optimizations --enable-shared make #make -j 6 # optional sudo make altinstall sudo ldconfig /opt/Python3.8.13 python3.8 --version ########################## # 2 Download FlatCam Beta ########################## cd ~ sudo apt install -y git git clone https://bitbucket.org/jpcgt/flatcam/src/master/ --branch Beta mv master flatcam ################################################# # 3 Create the Python 3.8.13 virtual environment ################################################# cd ~ python3.8 -m venv ./flatcam source ./flatcam/bin/activate ############################################################ # 4 Install Flatcam requirements in the virtual environment ############################################################ cd ./flatcam pip install --upgrade pip pip install -r requirements.txt pip uninstall vispy pip install vispy==0.7 ################### # 5 Launch Flatcam ################### python3 ./FlatCAM.py # In short # Launch from scratch source ./flatcam/bin/activate cd ~/flatcam python3 ./FlatCAM.py # to close the virtual environment deactivate

Richard
Tue, 05 Jul 2022 12:23:58 GMT

I should have mentioned that I was talking about the Beta version of Flatcam...sorry.

Marius Stanciu
Sun, 10 Jul 2022 11:46:42 GMT

Down with spam, up with this.

learningnour
Tue, 27 Jun 2023 02:43:49 GMT

Hello, Is this guide valid with python 3.9? I followed the steps but did not build the mentioned python version but I used python 3.9, do I need to change anything? When I run python3.9 ./FlatCAM.py I got this can't open file './FlatCAM.py': [Errno 2] No such file or directory When I change ./FlatCAM.py to FlatCAMApp.py it gives me this Traceback (most recent call last): File "./FlatCAMApp.py", line 20, in <module> from PyQt4 import Qt, QtCore, QtGui ModuleNotFoundError: No module named 'PyQt4'

Marius Stanciu
Tue, 27 Jun 2023 09:02:25 GMT

Hi, The version in the `master` branch is an older version that needs the PyQt4 framework which is no longer supported by many modern operating systems and it was made obsolete quite some time ago. If you need a branch of the `old` FlatCAM that works in modern OS's then use this branch: https://bitbucket.org/jpcgt/flatcam/branch/old_flatcam_pyqt5 But then the instructions above will not be the ones to follow since.... as it was posted above: >I should have mentioned that I was talking about the Beta version of Flatcam…sorry. those indications in the first post are meant for the `Beta branch` of FlatCAM. I guess for now you should use this: https://bitbucket.org/marius_stanciu/flatcam_beta/branch/Beta It has some fixes which will not be pushed to the Beta branch on JP's bitbucket until the new release will be ready and that who knows how much time will take.

learningnour
Tue, 27 Jun 2023 12:40:55 GMT

I will try to use your last mentioned beta and see how it would behave with me

learningnour
Tue, 27 Jun 2023 12:49:01 GMT

I see you have several branches in the provided link, I would like to do tests for you most recent and official branch. Which one has the most recent updates?

Marius Stanciu
Tue, 27 Jun 2023 19:50:34 GMT

The `Beta_8.995` branch holds what will be at some point in time the new version. Currently the tools database does not work but everything else should be in good shape.

learningnour
Tue, 27 Jun 2023 20:48:31 GMT

ok, I will be testing with python 3.10 on windows, any issues will be reported on the same trucker!

waidla
Thu, 20 Jul 2023 08:44:56 GMT

Flatcam Beta on Debian 12 Bookworm Hello. I want to thank the developers for their impressive work with flatcam. I spent the last two days experimenting with the installation on Debian 12 Bookworm and want to share my experience with others: I followed Richard instructions (thanks a lot for them). I had to use a virtual environment as ortools are not available for Debian 12 so far. I used the latest Python version as of July 2023, which is 3.11.4. I wanted to know whether Flatcam Beta is working with the most current versions of the requirements. Therefore I removed all version numbers from requirements.txt. Only for gdal I had to force a version number, as wheels through an errror: "gdal>=3.6.2" worked for me. You don't have to compile python yourself! Install the system wide required packages for flatcam with apt as recommended by Richard already. Then: --- conda create --name flatcam python=3.11.4 conda activate flatcam --- Change into the directory with the flatcam_beta source. --- pip install -r requirements.txt --- This are the installed versions: Successfully installed --- PyQt5-Qt5-5.15.2 PyQt5-sip-12.12.1 absl-py-1.4.0 affine-2.4.0 attrs-23.1.0 certifi-2023.5.7 click-8.1.6 click-plugins-1.1.1 cligj-0.7.2 contourpy-1.1.0 cssselect2-0.7.0 cycler-0.11.0 dill-0.3.6 ezdxf-1.0.3 fontTools-4.41.0 freetype-py-2.4.0 gdal-3.6.2 hsluv-5.0.3 kiwisolver-1.4.4 lxml-4.9.3 matplotlib-3.7.2 numpy-1.25.1 ortools-9.6.2534 packaging-23.1 pillow-10.0.0 protobuf-4.23.4 pyopengl-3.1.7 pyparsing-3.0.9 pypng-0.20220715.0 pyqt5-5.15.9 pyserial-3.5 python-dateutil-2.8.2 qrcode-7.4.2 rasterio-1.3.8 reportlab-4.0.4 rtree-1.0.1 scipy-1.11.1 shapely-2.0.1 simplejson-3.19.1 six-1.16.0 snuggs-1.4.7 svg.path-6.3 svglib-1.5.1 tinycss2-1.2.1 typing-extensions-4.7.1 vispy-0.13.0 webencodings-0.5.1 --- Start Flatcam with --- python3 FlatCAM.py --- And everything should work! It did not work so easily as I wrote it here as I had to learn a lot about Python, conda etc. Before I found this thread I tried to convert the flatcam code for Python 2.7 myself. Thus I learned which highly sophisticated and elegant program flatcam is! Thanks a lot to all who contributed. Don't try to understand the manual. The tutorials on Youtube are much more helpful. I started with "Gerber to Gcodes using FlatCAM for PCB Milling #FreeEnergy" from Free Energy Space (https://www.youtube.com/watch?v=x85zHnHJypI) Cheers Karl-Heinz PS: One wired error took me a few hours to solve. Everything worked, however, generating a drill file from an Exellon file caused an error (some value with 0.5 from a default setting did not work with the drill path optimizer, I tried a lot. Then, by chance, I hit the button to reset the defaults and everything was fine. Remember this, just in case you experience the same problem.

Marius Stanciu
Mon, 07 Aug 2023 21:59:01 GMT

Up. Down with the spam post by raising current post.

nater
Thu, 19 Oct 2023 07:12:50 GMT

Which specific testing tasks and areas are best suited for automation, and where is it more effective to use manual testing to ensure product quality?

flex7
Thu, 19 Oct 2023 07:13:23 GMT

In my opinion, test automation and manual testing are complementary methods and their choice depends on the specific needs of the project, more on https://www.computertechreviews.com/enhancing-quality-through-manual-testing-and-test-automation/ Automation is ideal for repetitive test cases, regression testing, and scalable applications where you need to quickly execute similar tests. Manual testing, in turn, is indispensable for exploratory testing, user interface testing, user experience evaluation, and identifying unusual problems. It is important to find a balance between these methods to ensure maximum product quality.