Closed stuartlangridge closed 10 years ago
What release are you running? Have you installed the SDK team PPA?
If you don't mind, try editing the TitlelessDialog.qml file to import Ubuntu.Components 1.0, or even 0.1. I don't think there's any reason it needs the more current versions; 1.1 was probably just the version I copied it from.
I'm running 14.04 (thought I'd said that, sorry!). I am... not sure whether I have the SDK team PPA.
TitlelessDialog already does use 0.1:
$ grep Ubuntu.Components /usr/share/beru/ui/BookPage.qml
import Ubuntu.Components 0.1
import Ubuntu.Components.ListItems 0.1
import Ubuntu.Components.Popups 0.1
...so I do not understand the error message complaining about 1.1...
If you do the following:
grep Ubuntu.Components /usr/share/beru/ui/components/TitlelessDialog.qml
you get:
import Ubuntu.Components 1.1 <----
import Ubuntu.Components.Popups 1.0
\inqmlmodule Ubuntu.Components.Popups 1.0
import Ubuntu.Components 1.1 <----
import Ubuntu.Components.Popups 1.0
components are being imported here as 1.1 version.
Yeah, TitlelessDialog is a component we provide, to work around a bug in the default Dialog component. I made it by altering the Dialog.qml file provided by the SDK team PPA. But the only difference between it and the version provided by the default 14.04 is the version numbers of the imports. Switch them both to 0.1, and it should work.
Doh, I was grepping Bookpage instead because I'm dim. I can confirm that changing the imports for Ubuntu.Components and Ubuntu.Components.Popups to both be version 0.1 in TitlelessDialog.qml fixes the problem and Beru runs fine.
Great! I think I've messed up the translations; I'll see about fixing that as well and getting another beta out.
After
sudo add-apt-repository ppa:rschroll/beru; sudo apt-get update; sudo apt-get install beru
(yay!) I get:I suspect the problem is the last line there. Not sure what I need to install to make it work, and in particular since this is a deb, I shouldn't have to install anything else because the Beru deb should depend on whatever it is.