Skip to content

FlatCAM

Installation on Ubuntu 20.04

I had some troubles downloading FlatCAM, so here are some links and how I proceeded in case I need to install it again.

See this link for the installation on Ubuntu 20.04.

Sources files can be found here.

  1. Download .zip of beta version here

  2. Extract the folder.

  3. Launch the installation file.

    sh ./setup_ubuntu.py
    

  4. Start the app

    python3 ./FlatCAM.py
    

    I had this error:

    ejoz@ejoz-xps-13:~/Applications/FlatCAM_beta_8.994_sources$ python3 FlatCAM.py 
    Traceback (most recent call last):
    File "FlatCAM.py", line 6, in <module>
        from app_Main import App
    File "/home/ejoz/Applications/FlatCAM_beta_8.994_sources/app_Main.py", line 52, in <module>
        from appDatabase import ToolsDB2
    File "/home/ejoz/Applications/FlatCAM_beta_8.994_sources/appDatabase.py", line 4, in <module>
        from camlib import to_dict
    File "/home/ejoz/Applications/FlatCAM_beta_8.994_sources/camlib.py", line 54, in <module>
        from appParsers.ParseDXF import *
    File "/home/ejoz/Applications/FlatCAM_beta_8.994_sources/appParsers/ParseDXF.py", line 10, in <module>
        from ezdxf.math.vector import Vector as ezdxf_vector
    ModuleNotFoundError: No module named 'ezdxf.math.vector'
    

    I found a solution here.

    So I changed the line 10 of the file appParsers/ParseDXF.py by:

    try:
        from ezdxf.math.vector import Vector as ezdxf_vector
    except ImportError:
        from ezdxf.math import Vec3 as ezdxf_vector
    

    I had this error:

    ejoz@ejoz-xps-13:~/Applications/FlatCAM_beta_8.994_sources$ python3 FlatCAM.py 
    Traceback (most recent call last):
    File "FlatCAM.py", line 58, in <module>
        VisPyPatches.apply_patches()
    File "/home/ejoz/Applications/FlatCAM_beta_8.994_sources/appGUI/VisPyPatches.py", line 32, in apply_patches
        markers._marker_dict['++'] = cross_lines
    AttributeError: module 'vispy.visuals.markers' has no attribute '_marker_dict'
    

    I found a fix here.

    sudo pip uninstall vispy
    pip  install vispy==0.7
    

    And it finally worked 😄


Last update: February 22, 2022
Back to top