KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums PyKX Failed to Load KX Insights Core Library error when using pykx in q

Tagged: , ,

  • Failed to Load KX Insights Core Library error when using pykx in q

    Posted by user931206 on April 23, 2024 at 8:56 am

    I have installed pykx

    it seems to work, but I get this error when I load the pykx.q library

    After I run

    \l pykx.q

    I get this warning message :

    WARN: Failed to load KX Insights Core library 'kurl.q'.

    WARN: Failed to load KX Insights Core library 'objstor.q'.

    WARN: Failed to load KX Insights Core library 'qlog.q'.

    WARN: Failed to load KX Insights Core library 's.k'.

    Where can I find the KX Insights Core Library?

    user931206 replied 5 months, 2 weeks ago 3 Members · 11 Replies
  • 11 Replies
  • cmccarthy1

    Member
    April 23, 2024 at 9:19 am

    Hey,

    The Insights Core Libraries are shipped with PyKX directly but should only be executable within a Linux x86 environment. If you set

    export PYKX_DEBUG_INSIGHTS_LIBRARIES=true

    that will provide information on exactly why the library wasn’t loaded. If possible providing the output (redacted if needed) of

    python -c "import pykx;print(pykx.util.debug_environment())"

    will provide us with information which should help us debug further.


  • user931206

    Member
    April 23, 2024 at 9:44 am

    It’s a dev container.

    • cmccarthy1

      Member
      April 23, 2024 at 10:03 am

      Thanks. With the environment variable set (I see you have set it in the process) could you try run the \l pykx.q and return what the output in the q session is now?

      • user931206

        Member
        April 23, 2024 at 10:28 am

        Hi . I did above. I realized that was what you were looking for .

        • cmccarthy1

          Member
          April 23, 2024 at 10:43 am

          Apologies, I don’t see the information I’m expecting. Being more explicit could you start your q session running the following and provide the full output.

          PYKX_DEBUG_INSIGHTS_LIBRARIES=true q pykx.q

  • rocuinneagain

    Member
    April 23, 2024 at 11:50 am

    Did you download q from this link?

    https://kx.com/kdb-personal-edition-download/

    It does not include the cloud libraries.

    Instead the insights edition is needed to have those libraries:

    https://kx.com/kdb-insights-personal-edition-license-download/

    • user931206

      Member
      April 23, 2024 at 12:56 pm

      we have an enterprise licence and I am … fairly sure we should have the insights core installed

      • rocuinneagain

        Member
        April 23, 2024 at 1:06 pm

        Run ‘ls’ on ‘/q’ in the container to see what files are there. The load error output suggests the cloud libraries are not there.

        • user931206

          Member
          June 5, 2024 at 2:32 pm

          That was it . We don’t need those as we don’t have anything in cloud.

          thank you

Log in to reply.