07-12-2014, 10:31 PM | #76 |
creator of calibre
Posts: 44,289
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You shouldn't use QFileDialog directly at all. Instead use the more convenient calibre provided functions
from calibre.gui2 import choose_dir, choose_files, choose_save_file, choose_images and so on. These have the added advantage that they save the last used directory automatically. |
07-12-2014, 11:10 PM | #77 |
Grand Sorcerer
Posts: 27,865
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Well sure. That's one way to go, too.
|
Advert | |
|
07-13-2014, 03:03 AM | #78 |
Ebook-Fan
Posts: 398
Karma: 698564
Join Date: Feb 2011
Device: PRS T1
|
I downloaded the beta version, and it shows up as Version 1.14. Is that correct?
|
07-13-2014, 03:15 AM | #79 |
creator of calibre
Posts: 44,289
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No the current beta version is 1.201.2. What OS are you on?
|
07-13-2014, 05:25 AM | #80 |
Ebook-Fan
Posts: 398
Karma: 698564
Join Date: Feb 2011
Device: PRS T1
|
|
Advert | |
|
07-13-2014, 05:52 AM | #81 |
creator of calibre
Posts: 44,289
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
How are you installing the beta? If you want to overwrite your normal calibre install, follow the instructions for downloading the tarball manually here: http://calibre-ebook.com/download_linux
If you want to install it alongside your normal calibre install, simply untar it in some directory and then run the calibre executable found in that directory. |
07-13-2014, 10:28 AM | #82 |
Grand Sorcerer
Posts: 27,865
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Since the QString method isEmpty() is gone in PyQt5, what would be the equivalent of:
Code:
if QLineEdit.text().isEmpty(); Is it as simple as: Code:
if not unicode(QLineEdit.text()): Or even Code:
if not QLineEdit.text(): Code:
if not len(QLineEdit.text()): Last edited by DiapDealer; 07-13-2014 at 10:39 AM. |
07-13-2014, 10:55 AM | #83 |
creator of calibre
Posts: 44,289
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
if not unicode(QLineEdit.text())
|
07-13-2014, 11:28 AM | #84 |
Grand Sorcerer
Posts: 27,865
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks.
On the beta-testing side of things, I'm having trouble getting either 1.200 or 1.201 (64-bit) working in Mint 15 (works fine on my Mint 16 machine). I'm just running it from the untarred folder--not installing. The weird bit is: I can perform the initial setup just fine, and when done, can use it as long I keep it open/running. I can add books, view books, and just about anything else I can think of. But when I close it for the first time, I get a segfault. I then get a segfault when trying to run it from there on out. If I delete the .config folder, I can of course, start all over. gdb tells me it's something to do with one of the qt platform plugins: libqxcb.so Code:
Program received signal SIGSEGV, Segmentation fault. 0x00007fffe2e8bdf0 in ?? () from /home/d*****/Downloads/calibre-1.201/lib/qt_plugins/platforms/libqxcb.so |
07-13-2014, 11:50 AM | #85 |
creator of calibre
Posts: 44,289
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm I'd expect Qt 5 to have issues on older distros, but I'd still like to track it down and fix it, if possible. I've uploaded a 64-bit build without the symbols stripped which should get us a better backtrace from gdb.
http://download.calibre-ebook.com/be...1.2-x86_64.txz |
07-13-2014, 12:12 PM | #86 |
Ebook-Fan
Posts: 398
Karma: 698564
Join Date: Feb 2011
Device: PRS T1
|
Thank you. It was my fault. The beta version works pretty well under Fedora 20, 64 bit. All plugins I use are allready ported and are working well. Great.
|
07-13-2014, 12:52 PM | #87 | |
Grand Sorcerer
Posts: 27,865
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Code:
Failed to execute binary: /home/d*****/Downloads/calibre-1.201.2/bin/calibre with error: Permission denied My gdb-foo is fledgling. |
|
07-13-2014, 10:56 PM | #88 |
creator of calibre
Posts: 44,289
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
EDIT: never mind, there was a small bug in the build process for unstripped files, I have fixed it an re-uploaded the tarball.
Last edited by kovidgoyal; 07-13-2014 at 11:48 PM. |
07-14-2014, 07:49 AM | #89 |
creator of calibre
Posts: 44,289
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@DiapDealer: I installed Mint 15 in a virtual machine and tried the beta, apart from a few warnings about OpenGL not working (the VM does not have 3D acceleration) I had no problems. I could start calibre multiple times. This was a fresh install of the Cinammon version of Mint 15.
|
07-14-2014, 08:35 AM | #90 |
Grand Sorcerer
Posts: 27,865
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Mine is the Xfce edition of Mint 15 (a virtualbox VM). Perhaps that's the difference. It's not that big of a deal for me, I can always install a different virtual machine for testing. Maybe Xfce is "too" minimal (although I have built some Qt5 and PyQt5 apps on that VM in the past)?
Anyway ... here's gdb's info about the segfault when calibre closes (after the successful initial setup): Code:
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffd9044700 (LWP 2395)] 0x00007ffff7210f94 in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0 Spoiler:
Then the subsequent segfault when trying to start: Code:
Program received signal SIGSEGV, Segmentation fault. 0x00007fffe2e8bdf0 in ?? () from /home/d******/Downloads/calibre-1.201.2/lib/qt_plugins/platforms/libqxcb.so Spoiler:
Let me know it you want anything looked into further. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre-plugins.com: A resource for plugin developers | GRiker | Development | 2 | 11-19-2014 03:52 PM |
Thank you to Calibre Developers | Happy_Reader | Calibre | 1 | 12-17-2013 10:18 PM |
Thanks Calibre Developers! | TechniSol | Kobo Reader | 3 | 11-19-2012 08:34 PM |
Calibre in a Python 3.2 world, attn: Kovid | Kevin McAleavey | Calibre | 8 | 01-09-2012 05:49 PM |
What device do most calibre developers use? | barium | Calibre | 5 | 01-05-2011 07:23 AM |