Package Details: flatcam-qt6 r4043.f3d379e4-1

Git Clone URL: https://aur.archlinux.org/flatcam-qt6.git (read-only, click to copy)
Package Base: flatcam-qt6
Description: Generates CNC gcode from 2D PCB files (Gerber/Excellon/SVG) [QT6 Fork]
Upstream URL: http://flatcam.org
Licenses: MIT
Conflicts: flatcam-qt6
Provides: flatcam
Submitter: Collateral
Maintainer: Collateral
Last Packager: Collateral
Votes: 2
Popularity: 0.065426
First Submitted: 2021-12-19 23:13 (UTC)
Last Updated: 2022-01-24 20:56 (UTC)

Latest Comments

1 2 Next › Last »

HenryJia commented on 2024-07-27 05:46 (UTC)

Flatcam no longer works with the current numpy version it seems. Running it in the terminal yields

ImportError: cannot import name 'Inf' from 'numpy' (/usr/lib/python3.12/site-packages/numpy/init.py). Did you mean: 'inf'?

s-ol commented on 2024-06-10 17:33 (UTC)

Missing dependency "python-darkdetect", also the launcher script tries to launch /opt/flatcam-qt6/FlatCam.py which doesn't exist. Instead need to run /opt/flatcam-qt6/flatcam.py, which is lacking executable permission.

Current python-or-tools from AUR does not build for me.

tijl commented on 2024-03-23 15:54 (UTC) (edited on 2024-03-23 15:58 (UTC) by tijl)

Today it is need add 'python-pyserial', 'python-pyqtdarktheme' to dependencies. FlatCAM started up and works well. I didn't have to change anything in the py code.


Note: For me some of dependency packages has not built for today. As example 'python-or-toools' and 'python-svg.path'. (First can be built success as version 9.5 (from aur snapshot); second can be built with delete of 'check()' in PKGBUILD.) On a clean system, no more fixes were needed.

Farmbot26 commented on 2023-12-13 15:46 (UTC)

For anyone that just wants this package working here's what works for me on Arch/ Manjaro:

$ git clone https://github.com/vispy/vispy.git $ cd vispy $ pip install -e . --break-system-packages

(The above is required because vispy also fails to build from Pamac)

$ pip3 install darkdetect --break-system-packages $ pip3 install svg.path --break-system-packages

Install in Pamac, but click "edit build files". Leave everything as they are for python-vispy, etc but when you get to the files for flatcam-qt6 comment out all the dependencies. Apply/ build and wait for install.

Once installed, go into /opt or wherever it installed to and find appMain.py. Comment out these lines (around line 50):

import qdarktheme
import qdarktheme.themes.dark.stylesheet as qdarksheet
import qdarktheme.themes.light.stylesheet as qlightsheet

Then find appMain.py and comment out these lines (around 625):

if self.options["global_theme"] == 'default':

self.resource_location = 'assets/resources'

elif self.options["global_theme"] == 'light':
self.resource_location = 'assets/resources'
qlightsheet.STYLE_SHEET = light_style_sheet.L_STYLE_SHEET
self.qapp.setStyleSheet(qdarktheme.load_stylesheet('light'))
else:
self.resource_location = 'assets/resources/dark_resources'
qdarksheet.STYLE_SHEET = dark_style_sheet.D_STYLE_SHEET
self.qapp.setStyleSheet(qdarktheme.load_stylesheet())

NOTICE THE SECOND LINE IS NOT COMMENTED OUT AND IS DEDENTED

Next find MainGUI.py and replace the following line (2098 at time of writing):

self.splitter.setSizes([splitter_left, 0])

with

self.splitter.setSizes([int(splitter_left), 0])

Lastly rename flatcam.py to FlatCAM.py and you should be able to run with

$ python3 FlatCAM.py

and make desktop shortcuts or whatever you want to do

Hope that saves someone the time I spent to figure it all out

sdp8483 commented on 2023-04-30 17:21 (UTC)

On a fresh system install I found I was missing python-pyserial, this should be added as a dependency.

Halina20011 commented on 2022-11-06 21:47 (UTC)

Start of flatcam-qt6 failed

Traceback (most recent call last):
  File "/opt/flatcam-qt6/FlatCAM.py", line 8, in <module>
    from appMain import App
  File "/opt/flatcam-qt6/appMain.py", line 43, in <module>
    import qdarktheme
ModuleNotFoundError: No module named 'qdarktheme'

If somebody install additional package with pip install pyqtdarktheme next error will arise:

Traceback (most recent call last):
  File "/opt/flatcam-qt6/FlatCAM.py", line 8, in <module>
    from appMain import App
  File "/opt/flatcam-qt6/appMain.py", line 44, in <module>
    import qdarktheme.themes.dark.stylesheet as qdarksheet
ModuleNotFoundError: No module named 'qdarktheme.themes'

This package is only used when you want to change theme. So flatcam will work when you delete code with qdarktheme You can comment lines that "contains" qdarktheme and run it without any problem.

You can "fix it" by editing /opt/flatcam-qt6/appMain.py with sudo!

Lines that I have commented:

43 #import qdarktheme
44 #import qdarktheme.themes.dark.stylesheet as qdarksheet
45 #import qdarktheme.themes.light.stylesheet as qlightsheet

642         #elif self.options["global_theme"] == 'light':
643         #    self.resource_location = 'assets/resources'
644         #    qlightsheet.STYLE_SHEET = light_style_sheet.L_STYLE_SHEET
645         #    self.qapp.setStyleSheet(qdarktheme.load_stylesheet('light'))
646         #else:
647         #    self.resource_location = 'assets/resources/dark_resources'
648         #    qdarksheet.STYLE_SHEET = dark_style_sheet.D_STYLE_SHEET
649         #    self.qapp.setStyleSheet(qdarktheme.load_stylesheet())

BTW, this is not ideal way to fix this, but it works.

fow0ryl commented on 2022-09-16 11:03 (UTC)

start of flatcam-qt6 failed

Traceback (most recent call last):
  File "/opt/flatcam-qt6/FlatCAM.py", line 8, in <module>
    from appMain import App
  File "/opt/flatcam-qt6/appMain.py", line 43, in <module>
    import qdarktheme
ModuleNotFoundError: No module named 'qdarktheme'

So I assume I have to install an additional package...

sdp8483 commented on 2022-09-14 10:48 (UTC)

I had to install python-darkdetect from the community repo to be able to launch flatcam after a new install.

phantome commented on 2022-01-31 13:44 (UTC) (edited on 2022-01-31 13:45 (UTC) by phantome)

qdarktheme is not resolved. install pyqtdarktheme via pip to solve it. Careful, there is a "t" in there. For some unknown reason though, even with that installed and before you get into the gui, I got this:

/usr/bin/flatcam-qt6: line 3: 182195 Segmentation fault (core dumped) python /opt/flatcam-qt6/FlatCAM.py $@

Took like an hour to compile, so I gave up and moved to another version.

Collateral commented on 2022-01-24 20:55 (UTC)

Fixed the missing dependency. Through the .install file of makepkg, that installs the dependency via the python's pip