Closed ondras12345 closed 1 year ago
Probably not a bug in FlatCAM, and, if I had to guess, would instead just be that we're generating TCL commands that only a different version of FlatCAM understands.
I wonder if you've tried installing directly via the Beta branch here: https://bitbucket.org/jpcgt/flatcam/src/Beta/ instead of downloading the package linked above -- it might be that that the version number 8.994 has been unchanged between the "Beta" branch and some other branch, and that instead you're running the code against a different version of FlatCAM than intended.
I believe the Beta branch is (was) where all development is taking place and the version number 8.994 was left unchanged since the release zip I linked. That's why I wanted to know which version you were running. I will try installing from the tip of the Beta branch (ebf5cb9) and see how it goes. Thank you for your helping me out.
I think it is likely a bug in the version of FlatCAM I am running, as it seems to run most of the script just fine and displays an internal error when trying to run this one command (which is documented in the internal help system). However, it is most likely fixed in the new version.
Almost there. Commit ebf5cb9e
. I needed to patch a few things:
git clone https://bitbucket.org/jpcgt/flatcam.git flatcam-git
cd flatcam-git
git checkout Beta # ebf5cb9e
python3 -m venv venv
. ./venv/bin/activate
# do NOT run setup_ubuntu.sh, it runs pip install with sudo
pip3 install -U pip
sed 's/^gdal/#gdal/' -i requirements.txt # failed to install
sed 's/vispy/vispy==0.7/' -i requirements.txt # AttributeError: module 'vispy.visuals.markers' has no attribute '_marker_dict'
sed 's/shapely>=1.7.0/shapely~=1.7/' -i requirements.txt # fixes gerber drawing
pip3 install -r requirements.txt
However, I am still getting an error when executing drillcncjob
:
https://bitbucket.org/jpcgt/flatcam/issues/599/excellon-object-error
https://bitbucket.org/jpcgt/flatcam/issues/611/internal-error-while-generating-cnc-object
I needed to add -opt_type T
to fix it.
drillcncjob drill -drilled_dias 0.85 -drillz -2.5 -travelz 2 -feedrate_z 50 -spindlespeed 12000 -outname drill_drilled_0 -opt_type T
Since barbari does not generate that flag by default, I assume it is working with the default -opt_type B
for you. Could you please share which exact commit on the Beta branch you installed FlatCAM from?
Hi, I haven't been able to make FlatCAM work with TCL scripts. I have installed from https://bitbucket.org/jpcgt/flatcam/downloads/FlatCAM_beta_8.994_sources.zip I have generated a script for a simple board:
And tried to run it in FlatCAM. However, I got the following output:
Have you encountered this issue before? How did you fix it? I tried to google it, but there were 0 results.
I know this is most likely a bug in FlatCAM and not barbari, feel free to close this issue.