Kubuntu 22.04 & 22.10 - howto

Issue #626 new
Christian Seitner-Stadik created an issue

Following setup did the job for me with both Kubuntu 22.04 and 22.10 using FlatCAM attached below (flatcam-b4619d5.tar.gz) 8.994 BETA also worked for me except CNC-Job.

1. Replace original “requirements.txt” by attached “requirements.txt”
2. sudo pip3 install -r requirements.txt
3. sudo apt install libgdal-dev
4. pip3 uninstall PyQt5

By the way: Sometimes running from console (in case of FlatCAM I had to type: python3 ./FlatCAM.py )
is a good idea, because you get a lot of extra information reading startup messages including error messages.

Type in or just copy and paste error messages at GOOGLE.COM for example. In most cases I got information about what to install, or what to do to eliminate error messages.

Comments (17)

  1. BEAMER

    Got it running under Ubuntu 22.04 with many workarounds, but it failed to do the CNC-Gcode. Windows .exe with WINE under Ubuntu 22.04 seems to work.

  2. Vasily Olekhov

    I’ve applied pyqt4toqt5 transformation tool and manually patched multiple sources. It looks half-working.

    G-Code is not generated.

    GUI is broken, wine+windows version looks the better way

  3. Danylo Ulianych

    Ah, such a pity nobody has picked this project up to maintain for the recent OSes.

    Having the same issues on Ubuntu 22.04.

  4. Danylo Ulianych

    Sorry, my bad. I missed the Beta keyword. That’s great!

    [~]Is Beta being developed in this repository under the beta branch?[~] All right, I’ve got it. I’ve seen your intro on Youtube. Would be great to see if there are any features and fixes in Beta compared to the old version.

  5. Éttore Leandro Tognoli

    Hello,

    I’m trying to run it on fedora 37, I had some issues, and I’m not sure if everything is working yet
    I’m using pipenv to create an environment with python3.10 ( 3.10.9) and here is my pip freeze.

    absl-py==1.4.0
    affine==2.3.1
    attrs==22.2.0
    certifi==2022.12.7
    click==8.1.3
    click-plugins==1.1.1
    cligj==0.7.2
    contourpy==1.0.7
    cssselect2==0.7.0
    cycler==0.11.0
    dill==0.3.6
    ezdxf==1.0.1
    fonttools==4.38.0
    freetype-py==2.3.0
    GDAL==3.2.2.1
    hsluv==5.0.3
    kiwisolver==1.4.4
    lxml==4.9.2
    matplotlib==3.6.3
    numpy==1.24.1
    ortools==9.5.2237
    packaging==23.0
    Pillow==8.4.0
    protobuf==4.21.12
    PyOpenGL==3.1.6
    pyparsing==3.0.9
    PyQt5==5.15.6
    PyQt5-Qt5==5.15.2
    PyQt5-sip==12.10.1
    pyserial==3.5
    python-dateutil==2.8.2
    qrcode==7.3.1
    rasterio==1.3.4
    reportlab==3.5.68
    Rtree==1.0.1
    Shapely==1.7.1
    simplejson==3.18.1
    six==1.16.0
    snuggs==1.4.7
    svg.path==6.2
    svglib==1.5.1
    tinycss2==1.2.1
    typing_extensions==4.4.0
    vispy==0.8.1
    webencodings==0.5.1
    

    I had to install some extra packages on fedora to be able to install the python libraries, like python3.10-devel and gdal-devel.
    I wrote some details on the comments of this commit.
    Hope that it can help

  6. Sergey Yatsuk

    Flatcam 8.994 (latest commit in Beta branch) on Ubuntu 22.10.
    I had problems with gerber files not displayed and somehow I fixed it trying different lib versions.
    Now I have error when I’m trying to generate drill CNCjob.
    In UI it says: An internal error has occurred. See shell.
    In shell it says:

    [DEBUG][MainThread] ToolDrilling().run() was launched ...
    [DEBUG][MainThread] ToolDrilling.build_tool_ui()
    [DEBUG][MainThread] ToolDrilling.on_object_changed()
    [DEBUG][MainThread] ToolDrilling.build_tool_ui()
    [DEBUG][MainThread] Tools sorted are: [1, 2]
    [DEBUG][MainThread] Found 2 TOOLS with drills.
    [DEBUG][MainThread] Found 2 TOOLS with drills after converting slots to drills.
    [DEBUG][MainThread] Object TPS63061-PTH.drl_cnc has been promised.
    [DEBUG][Dummy-4] AppObject.new_object()
    [DEBUG][Dummy-4] Calling object constructor...
    [DEBUG][Dummy-4] Creating CNCJob object...
    [DEBUG][Dummy-4] FlatCAMObj.visible()
    [DEBUG][Dummy-4] FlatCAMCNCJob.gcode_header()
    [DEBUG][Dummy-4] 0.068552 seconds before initialize().
    [DEBUG] Creating CNC Job from Excellon for tool: 1
    [DEBUG] Using OR-Tools Basic drill path optimization.
    

    What could be the problem? I’m totally stuck now.
    Also it says that Tools DB empty

  7. Marius Stanciu

    Hi, in Preferences → Excellon, change the path optimization from Or Tools to Rtree or TSA.

  8. Marius Stanciu

    Questions without content, no details except a very general description. And they also look kind of the same.
    So…. spam.

  9. Federico Conci

    Perhaps, however I kept trying and reading and pip3 install shapely==1.8.4 did the trick for me..

    Thanks anyway!

  10. Log in to comment