Application doesn't even start on Linux Mint 19.2

Issue #337 resolved
Karl Zeilhofer created an issue

Hi,

I tried to run FlatCAM from the sources on a Linux Mint 19.2.

First, the file setup_ubuntu.sh is stored with Windows line endings, which prevents the shell to execute the script. I fixed that and then ran it.

Afterwards I gave FlatCAM.py executable flag and started it.
The mouse cursor changed to a cross, but nothing else happens. No application window appears. When I click then somewhere, I get this error in the command line:

 @ error/constitute.c/WriteImage/1037.

after a second click, following errors appear:

' @ error/constitute.c/WriteImage/1037.
./FlatCAM.py: line 3: $'\r': command not found
from: can't read /var/mail/PyQt5
from: can't read /var/mail/PyQt5.QtCore
from: can't read /var/mail/FlatCAMApp
from: can't read /var/mail/flatcamGUI
./FlatCAM.py: line 8: $'\r': command not found
from: can't read /var/mail/multiprocessing
./FlatCAM.py: line 12: $'\r': command not found
./FlatCAM.py: line 18: syntax error near unexpected token `('
'/FlatCAM.py: line 18: `def debug_trace():

and the process stoppes here, returning to the shell’s prompt.

Did I miss anything in the ‘installation process’?

Greets, Karl

Comments (4)

  1. Karl Zeilhofer reporter

    PS: I used the zip-file for getting the sources.

    I now checked it out with git clone … and checked out the branch Beta.

    The behaviour is now the same, but the messages are a bit different:

    import-im6.q16: not authorized `sys' @ error/constitute.c/WriteImage/1037.
    import-im6.q16: not authorized `os' @ error/constitute.c/WriteImage/1037.
    from: can't read /var/mail/PyQt5
    from: can't read /var/mail/PyQt5.QtCore
    from: can't read /var/mail/FlatCAMApp
    from: can't read /var/mail/flatcamGUI
    from: can't read /var/mail/multiprocessing
    ./FlatCAM.py: line 18: syntax error near unexpected token `('
    ./FlatCAM.py: line 18: `def debug_trace():'
    

    Greets, Karl

  2. Marius Stanciu

    Hi Karl,

    The development is done in Windows so you have the reason for the line endings. I’m not a Linux expert but you may need to run everything as root (su). I mean install, and running the software. It looks like the PyQt5 (al least) did not install correctly. You may have a “read or write rights” problem.

    Best regards,
    Marius

  3. Marius Stanciu

    Also please make sure first that the python and pip is installed on your OS.
    Make sure that the command:

    pip3
    

    launched from the terminal return a meaningful result.

  4. Log in to comment