Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI does not appear #58

Closed
ianrumford opened this issue Dec 30, 2018 · 29 comments

Comments

@ianrumford
Copy link

commented Dec 30, 2018

Hi Thomas,

Thanks for providing the ppa. But cura doesn't work for me.

The install completes successfully.

When I start cura, I see the splash screen and the "I understand and agree" pane but no UI appears. (btw the text box of the "agree" pane is empty)

I've tried on two instances of 18.04, one a completely new 18.04 instance running under VirtualBox.

It looks like cura has started and it talking to the engine ok: ps shows

ian 4451 4398 28 14:44 pts/1 00:00:02 /usr/bin/python3 /usr/bin/cura
ian 4477 4451 0 14:44 pts/1 00:00:00 /usr/bin/CuraEngine connect 127.0.0.1:49674

Starting cura form a bash shell, I see a number of errors, notably about loading the cura-light theme (from /usr/share/cura/resources/themes/cura-light)

ERROR - [MainThread] UM.Qt.Bindings.Theme.load [242]: file:///usr/share/cura/resources/themes/cura-light/styles.qml:4:1: module "QtQuick" version 2.10 is not installed

According to this page QT 5.9 uses QtQuick 2.9 and QtQuick.Controls 2.2. I can find nothing about the Styles version though.

I have edited styles.qml to try these and other values but the UI never appears.

Any light you can throw on this would be most helpful.

Thanks in advance.

btw I have successfully run cura 3.1 from the Canonical repos.

@bmn-m

This comment has been minimized.

Copy link

commented Dec 30, 2018

Same here. Version is 4.0~201812272158~rev3793~pkg293~ubuntu18.04.1

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 30, 2018

Find this again really strange. The version from master works fine.
I really don't understand how it comes. Over the two or three years I'm running this PPA I only had to worry about the master PPA. If everything works well there, I was always good to go for a stable branch.
I prepared for another case a virtual machine. Will test there in the following days the stable PPA there and hopefully fine the reason for this very soon!

Sorry for this!

@bmn-m

This comment has been minimized.

Copy link

commented Dec 30, 2018

Thank you very much for all your efforts. Great Job!!! The cura.appimage is a huge mess and i really like your PPA Version.

@ianrumford

This comment has been minimized.

Copy link
Author

commented Dec 31, 2018

Hi Thomas,

Thanks for the response.

If I can test anything, please do ask: very easy for me to spin up my VirtualBox test machine and try something out.

@kreutpet

This comment has been minimized.

Copy link

commented Dec 31, 2018

same problem here.
i tried both the stable and master .
Both UI are not showing and error is related to qtquick.
ERROR - [MainThread] UM.Qt.Bindings.Theme.load [242]: file:///usr/share/cura/resources/themes/cura-light/styles.qml:4:1: module "QtQuick" version 2.10 is not installed

According qtdiag i get :
Qt 5.9.5 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.3.0) on "xcb"
OS: Ubuntu 18.04.1 LTS [linux version 4.15.0-43-generic]

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 31, 2018

Let me guess.. and all of you are using Ubuntu Bionic?
Using Cosmic here and if I see this, it might be needed to update Qt.

@kreutpet

This comment has been minimized.

Copy link

commented Dec 31, 2018

yes i am using Ubuntu Bionic.

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 31, 2018

Which desktop environment are you using? KDE?

@bmn-m

This comment has been minimized.

Copy link

commented Dec 31, 2018

yes Ubuntu 18.04.1 with GNOME.

@ianrumford

This comment has been minimized.

Copy link
Author

commented Dec 31, 2018

Yep Bionic 18.04.1 with all updates applied

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 31, 2018

Ok, I found PPAs with Qt 5.11, but don't know whether it is risky to upgrade to it or not :(

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 31, 2018

Will try it out in my VM. Give me some time..
Sadly my laptop is busy with building some stuff.

But yeah, Ultimaker is using Qt 5.10 in their downloads. Missed this move they made in cura-build-environment :(

@ianrumford

This comment has been minimized.

Copy link
Author

commented Dec 31, 2018

Thanks! Let us know if we can share the load.

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 31, 2018

Yes, you can! Make a snap in your VBox and try these PPAs:

Try both separately and see whether Cura and (most importantly) other software works still, too.
Don't want to suggest people to add one of these PPAs, which might break their system.
I guess the worst case would be running KDE after such an upgrade since it depends on many Qt modules and libraries..

There might be also other PPAs of course...

@marcusj

This comment has been minimized.

Copy link

commented Dec 31, 2018

Same problem here on 18.04. Silly question, can I just roll back to your penultimate release so I can get slicing again? (If so, some hint, please.)

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 31, 2018

Nope, rolling back is not possible... at least not easily.
What you can do for sure is uninstalling the PPA and installing Ubuntu's older version.
But I guess that using an AppImage temporarily is the fastest solution.

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 31, 2018

@ianrumford Are you investigating on it?

@ianrumford

This comment has been minimized.

Copy link
Author

commented Dec 31, 2018

Just back. Will have a go in next hour.

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 31, 2018

No hurries.. If you don't manage it is no problem.
I will then continue looking for a solution then. 😉

@ianrumford

This comment has been minimized.

Copy link
Author

commented Dec 31, 2018

Thomas,

The first of those ppas (qt-opensource) only has a package for trusty.

Trying the second ...

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 31, 2018

Ok, there is also another PPA by the same guy, but more qt libs and modules:
https://launchpad.net/~panfaust/+archive/ubuntu/qt3

Could you test it, too? 👍

@ianrumford

This comment has been minimized.

Copy link
Author

commented Dec 31, 2018

The 2nd ppa causes Ubuntu to says not all updates can be installed and offers a partial upgrade.

25 no longer needed packages. 1 to be removed (cura!), 28 to be upgraded.
partial upgrade completed ok.

trying to reinstall cura and got:

Reading package lists... Done
Building dependency tree
Reading state information... Done
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.
cura : Depends: python3-uranium but it is not going to be installed
Depends: qml-module-qtquick-controls but it is not going to be installed
Depends: qml-module-qtquick-controls2 but it is not going to be installed
Depends: qml-module-qtquick-dialogs but it is not going to be installed
Recommends: python3-pyqt5 but it is not going to be installed
Recommends: python3-pyqt5.qtwebsockets but it is not going to be installed
Recommends: python3-pyqt5.qtx11extras but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

pass on this one for moment. will try the third one.

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Dec 31, 2018

Hmm. Looks like it breaks something in the PyQt packages then.
Well, as long as it don't break other things I could take this Qt version and rebuild PyQt on top of it. Shouldn't take toooo much time.. 🤔

@ianrumford

This comment has been minimized.

Copy link
Author

commented Dec 31, 2018

Third one (qt3) again causes a partial upgrade.

16 no longer need, 1 to be removed (cura), 35 packages to be upgraded.

partial upgrade completes but get same error trying to reinstall cura:

Reading package lists... Done
Building dependency tree
Reading state information... Done
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.
cura : Depends: python3-uranium but it is not going to be installed
Recommends: python3-pyqt5 but it is not going to be installed
Recommends: python3-pyqt5.qtwebsockets but it is not going to be installed
Recommends: python3-pyqt5.qtx11extras but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

not good.

@ianrumford

This comment has been minimized.

Copy link
Author

commented Jan 3, 2019

Hi Thomas,

Hope you are well.

An update to cura from the ppa came though for me today. The "QtQuck 2.10" error no longer appears in the log but the UI still does not appear.

Still seeing lines like these in the log before the load of the cura-light theme.

QQmlApplicationEngine failed to load component
file:///usr/share/cura/resources/qml/Cura.qml:139 Type MainWindowHeader unavailable
file:///usr/share/cura/resources/qml/MainWindow/MainWindowHeader.qml:119 Type AccountWidget unavailable
file:///usr/share/cura/resources/qml/Account/AccountWidget.qml:57 Type AccountDetails unavailable
file:///usr/share/cura/resources/qml/Account/AccountDetails.qml:61 Type UserOperations unavailable
file:///usr/share/cura/resources/qml/Account/UserOperations.qml:14 Type Cura.SecondaryButton unavailable
file:///usr/share/cura/resources/qml/SecondaryButton.qml:10 Type Cura.ActionButton unavailable
f> ile:///usr/share/cura/resources/qml/ActionButton.qml:92 Type Cura.RoundedRectangle unavailable
file:///usr/share/cura/resources/qml/RoundedRectangle.qml:22 Unexpected token reserved word' file:///usr/share/cura/resources/qml/RoundedRectangle.qml:24 Expected token :'

@ianrumford

This comment has been minimized.

Copy link
Author

commented Jan 3, 2019

A quick follow up.:Tried to install on a fresh VirtualBox snap and it failed:

Reading package lists... Done
Building dependency tree
Reading state information... Done
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.
cura : Depends: qml-module-qtquick-controls (>= 5.10) but it is not going to be installed
Depends: qml-module-qtquick-controls2 (>= 5.10) but it is not going to be installed
Depends: qml-module-qtquick-dialogs (>= 5.10) but 5.9.5-0ubuntu1 is to be installed
Recommends: fonts-open-sans but it is not going to be installed
Recommends: cura-resources-firmware but it is not going to be installed
Recommends: cura-plugins-all but it is not going to be installed
Recommends: python3-numpy-stl
Recommends: python3-pyqt5.qtwebsockets but it is not going to be installed
Recommends: python3-pyqt5.qtx11extras but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Jan 3, 2019

Found a different PPA in the meantime.
Will try it out soon and if it doesn't work, too, then I will remove Cura for Bionic and advertise people to upgrade to Cosmic.
I guess there is no other realistic solution, I see.

@ianrumford

This comment has been minimized.

Copy link
Author

commented Jan 3, 2019

For me upgrading from the Bionic LTS is not an option for my principal system but I can use Cosmic under Virtualbox. Not ideal but good enough.

@thopiekar

This comment has been minimized.

Copy link
Owner

commented Jan 5, 2019

Tried out to use the "Kubuntu CI Stage" PPA. Using this one would result, that most of the KDE desktop would need to be removed. Upgrading Qt+PyQt on Bionic would need a rebuild of all packages, which depend on it, it seems.
On the other hand, rolling back to 3.6 is not possible. The build was broken before, too. So I see no huge benefit in downgrading to the previous code.
In addition to that, I would need to hack the version number of the package to enforce an update to the older version. Therefore I see too few benefits in investing time in a downgrade.

So please remove the PPA via ppa-purge on Ubuntu Bionic and use Canonicals packages with 3.2 (I think). If you really like to keep using the PPA, please upgrade to Cosmic 😉

@thopiekar thopiekar closed this Jan 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.