Unable to use beta on ubuntu 18.04 and up

Issue #378 resolved
Kees Hessels created an issue

When switching to the Beta branche and execute ./setup_ ubuntu.sh (after pip3 install -r requirements.txt
)Somewhere down the line it generates the following:

Package python3-imaging is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it:  python3-pil:i386 python3-pil E: Package 'python3-imaging' has no installation candidate

I did previously install the python3-pil.

The configuration ends with:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python3-pil:i386 : Depends: python3:i386 (< 3.7) but it is not going to be installed
Depends: python3:i386 (>= 3.6~) but it is not going to be installed
Recommends: python3-olefile:i386 but it is not installable
E: Unable to correct problems, you have held broken packages.

I think that the python3-imaging package is no longer available after 16.04, and the dependencies don't look for the python3-pil package or something to that effect. Since i am neither an apt nor a python practiced person, i'm kinda stuck here (except for spinning up a vm with a 16.04 ubuntu version rrrr). I use the Beta versions, because of the extra functionality it gives me and tbh.., you are kind of slow when it comes to bumping up your release version .. 😉 It would be great if you could share to us a workaround, because quite likely you have encountered this issue yourself as well at some point i guess…
Any way, Regards, Kees.

p.s.
The master branch is functioning correctly

Comments (5)

  1. Marius Stanciu

    Hi Kees,

    Since I am responsible (and developer) for the Beta branch I will give you an answer although it is unclear to whom you were addressing to.

    For Ubuntu there is a file named: setup_ubuntu.sh
    Make it executable with:

    chmod +x setup_ubuntu.sh
    

    and then run it with:

    ./setup_ubuntu.sh
    

    Some of the packages are not available under pip and they need to be installed with apt_get which the file named above is doing. It may require sudo to be able to run it.

    After everything is installed. make sure you run the program with the command:

    python3 FlatCAM.py
    

    But know that there are some issues (at least for Windows and MacOS) with PyQt version > 5.12.1.

    You may need to downgrade this package because apt_get will take the latest from the repositories. Nevertheless it should work even with the latest version of PyQt5.

    pip3 install --upgrade PyQt5==5.12.1
    

    I do not advice you to GIT clone the Beta branch right now (I develop in Windows and testing for Linux is done when I remember or if somebody is asking for it or reporting some bugs), please use the latest sources bundle (FlatCAM beta 8.991) found here:
    https://bitbucket.org/jpcgt/flatcam/downloads/FlatCAM_beta_8.991_sources.zip

  2. Kees Hessels reporter

    Hei Marius, I have it up and running according to your instructions (and using your supplied zip) I had to do that downgrade thing you mentioned and install pip3 and tkinter after that it was working great. Thanks for you help.

  3. Log in to comment