sripathikrishnan / redis-rdb-tools

Parse Redis dump.rdb files, Analyze Memory, and Export Data to JSON
https://rdbtools.com
MIT License
5.07k stars 739 forks source link

What versions of Python and python-lzf are supported? #179

Closed ChrisMoriarty closed 2 years ago

ChrisMoriarty commented 2 years ago

I created a fresh conda environment using Python 3.9, and while rdbtools installed successfully, I am unable to pip install python-lzf into it. Neither their repository or this one list the base version requirements for getting everything installed properly. Since it says python-lzf is "optional but highly recommended to speed up parsing", could you provide the base version requirements for everything to play nicely together?

ChrisMoriarty commented 2 years ago

As an update, I was able to successfully install on an RHEL8 machine.

python 3.9.6
python-lzf 0.2.4
rdbtools 0.1.15

My initial error was on my Macbook running Big Sur (11.5.2), and it seems the latest upgrade has messed with the location of xcode developer tools, and subsequently the C headers that python uses to build packages like python-lzf.

ChrisMoriarty commented 2 years ago

Last comment, after many many failed attempts, the fix for my macbook was use to get homebrew fixed, and use it to install llvm.

To fix a path problem for brew, I follow the advice on this comment: https://github.com/httpie/httpie/issues/645#issuecomment-456902997

1)brew doctor 2)sudo chown -R $(whoami) $(brew --prefix)/* 3)sudo install -d -o $(whoami) -g admin /usr/local/Frameworks

After that I used brew to install llvm: brew install llvm

Once llvm installed successfully, I was able to pip install python-lzf with no problem.