octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53841] Could not copy help collection to temp


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #53841] Could not copy help collection to temporary file. Cannot load sqlite database driver!
Date: Mon, 7 May 2018 02:43:01 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #4, bug #53841 (project octave):

OK, that's a little more info.  Well, the code for this is in
./libgui/src/documentation.cc.  Here's the pertinent lines:


    // Get original collection
    QString collection = getenv ("OCTAVE_QTHELP_COLLECTION");
    if (collection.isEmpty ())
      collection = QString::fromStdString (config::oct_doc_dir ()
                                           + sys::file_ops::dir_sep_str ()
                                           + "octave_interpreter.qhc");

    // Setup the help engine with the original collection, use a writable
copy
    // of the original collection and load the help data
    m_help_engine = new QHelpEngine (collection, this);

    QString tmpdir = QDir::tempPath();
    m_collection
      = QString::fromStdString (sys::tempnam (tmpdir.toStdString (),
                                              "oct-qhelp-"));

    if (m_help_engine->copyCollectionFile (m_collection))
      m_help_engine->setCollectionFile (m_collection);
    else
      QMessageBox::warning (this, tr ("Octave Documentation"),
                            tr ("Could not copy help collection to
temporary\n"
                                "file. Search capabilities may be
affected.\n"
                                "%1").arg (m_help_engine->error ()));


First, I'll point out that the warning message is a bit deficient in the sense
it should print out the name m_collection as part of the message.

Second, I see that the latter portion of the error message is generated by Qt
help engine, i.e., the %1 above would be "Cannot load sqlite database driver!"
in your message.  So it may be something as simple as missing the sqlite
database driver on your system.  Open your package manager and search for
something that would handle sqlite support in a Qt framework.  I think most
package managers have a search feature and then a filter search, so search on
"qt5" or "sqlite" or something.  If it isn't installed, then install it.  In
the Synaptic package manager I'm seeing:

libqt5sql5-sqlite
Qt 5 SQLite 3 database driver
Version: 5.5.1+dfsg-16ubuntu7.5

You could try setting environment variable OCTAVE_QTHELP_COLLECTION to point
to the collection (i.e., the 4.4.0 patch), but I doubt that's the (sole)
problem because one would think the Qt message would say it can't find file
XYZ.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53841>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]