Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    toolbox not working in colab

    Support
    4
    5
    163
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alexeigor last edited by

      Hey,
      got error
      https://colab.research.google.com/drive/1ZOLbnAsEzPdD_zd3iU-AiVQnLqyTa5go
      "ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject"

      O 1 Reply Last reply Reply Quote 0
      • O
        omohyoid @alexeigor last edited by

        @alexeigor I got the same error on kaggle too
        螢幕擷取畫面 2025-04-18 232604.png

        A 1 Reply Last reply Reply Quote 0
        • A
          antinomy @omohyoid last edited by antinomy

          I got the same error after installing qnt locally with pip.
          There is indeed a circular import in the current Github repo for the toolbox, introduced by this commit:
          https://github.com/quantiacs/toolbox/commit/78beafa93775f33606156169b3e6b8f995804151#diff-89350fe373763b439e4697f9b11cceb811b4a3f0adc7a655707a936ce5646c01R6-R10
          when some of the imports in output.py which were inside of fuctions before were moved to the top level.
          Now output imports from stats and stats imports from output.

          @support Can you please have a look?

          @alexeigor @omohyoid
          The conda version of qnt doesn't seem to be affected, so if that's an option for you install that one instead.
          Otherwise we can use the git version previous to the commit above:

          pip uninstall qnt
          pip install git+https://github.com/quantiacs/toolbox.git@a1e6351446cd936532af185fb519ef92f5b1ac6d
          
          1 Reply Last reply Reply Quote 1
          • A
            alexeigor last edited by

            Another issue is that the toolbox relies on a NumPy version older than 2.0, which is incompatible with the current environment in Colab: https://colab.research.google.com/drive/1N0xxcVUdZr3m179XeS_OyK1y_d90M0EW

            1 Reply Last reply Reply Quote 0
            • support
              support last edited by

              Hi,
              thanks for pointing this out, we are working on refactoring the code, qnt is reverted to previous version. Sorry for late answer.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB | Contributors
              • Documentation
              • About
              • Career
              • My account
              • Privacy policy
              • Terms and Conditions
              • Cookies policy
              Home
              Copyright © 2014 - 2021 Quantiacs LLC.
              Powered by NodeBB | Contributors