Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7830

Migrate the python setup scripts to use cmake

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT10.0.1, 4.4.9, 5.0.3, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: APIs, Build-compile
    • Labels:
      None
    • Environment:
    • 5
    • Storage - Ra 2021-07-26, Storage - Ra 2021-08-09

      Hey, new user here!

      I'm trying to set up WiredTiger in a conda environment (what my team uses for env management). My first attempt looked like this:

      conda create -n wtscratch python=3.9 -c conda-forge
      conda activate wtscratch
      conda install snappy zstd zlib
      export LD_LIBRARY_PATH=$CONDA_PREFIX/lib
      pip install wiredtiger
      

      This fails with the error: "error: WiredTiger requires a 64-bit build." (apparently from here). The OS is 64 bit, but I'm guessing somehow the compiler is only allocating 32 bit pointers? I was unable to figure out how to use CFLAGS to get the compiler to use 64-bit pointers.

      My second attempt was following the full build instructions here:

      conda create -n wtscratch python=3.9 -c conda-forge
      conda activate wtscratch
      conda install snappy zstd zlib
      export LD_LIBRARY_PATH=$CONDA_PREFIX/lib
      git clone git://github.com/wiredtiger/wiredtiger.git
      conda install cmake ninja
      mkdir wiredtiger/build
      cd wiredtiger/build
      cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -G Ninja ../.
      ninja
      ninja install
      

      This seems to succeed, but then I don't have the Python API installed, and when I pip install wiredtiger as above, I run into the same 64-bit issue.

      Is there a way to get around the above issues?

      Thanks for any info!

            Assignee:
            chenhao.qu@mongodb.com Chenhao Qu
            Reporter:
            michael@predata.com Michael Tartre
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: