Skip to content

Failed to install leveldbΒ #1

@JasinYip

Description

@JasinYip

Thank you for this nice tool.

But now it looks like it required a old version of leveldb, it cannot be installed successfully.

I tried to let Cursor to figure out, but it still not working.

What else I can do? I need to recover my wallet 😒

Thank you so much

➜  PhantomKeyRetriever git:(main) βœ— pip install -r requirements.txt
Collecting leveldb==0.201 (from -r requirements.txt (line 1))
  Using cached leveldb-0.201.tar.gz (236 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: base58==2.1.1 in /Users/jasinyip/.pyenv/versions/3.12.0/lib/python3.12/site-packages (from -r requirements.txt (line 2)) (2.1.1)
Requirement already satisfied: PyNaCl==1.5.0 in /Users/jasinyip/.pyenv/versions/3.12.0/lib/python3.12/site-packages (from -r requirements.txt (line 3)) (1.5.0)
Requirement already satisfied: mnemonic==0.21 in /Users/jasinyip/.pyenv/versions/3.12.0/lib/python3.12/site-packages (from -r requirements.txt (line 4)) (0.21)
Requirement already satisfied: cffi>=1.4.1 in /Users/jasinyip/.pyenv/versions/3.12.0/lib/python3.12/site-packages (from PyNaCl==1.5.0->-r requirements.txt (line 3)) (2.0.0)
Requirement already satisfied: pycparser in /Users/jasinyip/.pyenv/versions/3.12.0/lib/python3.12/site-packages (from cffi>=1.4.1->PyNaCl==1.5.0->-r requirements.txt (line 3)) (2.23)
Building wheels for collected packages: leveldb
  Building wheel for leveldb (pyproject.toml) ... error
  error: subprocess-exited-with-error

  Γ— Building wheel for leveldb (pyproject.toml) did not run successfully.
  β”‚ exit code: 1
  ╰─> [167 lines of output]
      /private/var/folders/vs/b1nkfqbj7kjg5zh_w08tc6y80000gp/T/pip-build-env-hb90ml76/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: BSD License

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_ext
      building 'leveldb' extension
      creating build/temp.macosx-15.0-arm64-cpython-312/snappy
      creating build/temp.macosx-15.0-arm64-cpython-312/leveldb/db
      creating build/temp.macosx-15.0-arm64-cpython-312/leveldb/port
      creating build/temp.macosx-15.0-arm64-cpython-312/leveldb/table
      creating build/temp.macosx-15.0-arm64-cpython-312/leveldb/util
      clang++ -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -I/Users/jasinyip/.pyenv/versions/3.12.0/include/python3.12 -c ./snappy/snappy-c.cc -o build/temp.macosx-15.0-arm64-cpython-312/snappy/snappy-c.o -I./leveldb/include -I./leveldb -I./snappy -I. -fno-builtin-memcmp -O2 -fPIC -DNDEBUG -DSNAPPY -DOS_MACOSX -DLEVELDB_PLATFORM_POSIX -Wno-error=unused-command-line-argument-hard-error-in-future
      warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:12:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/comp.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_integral.h:13:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/integral_constant.h:35:1: error: cannot template a using declaration
      using _BoolConstant _LIBCPP_NODEBUG = integral_constant<bool, _Val>;
      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/integral_constant.h:35:21: error: expected expression
      using _BoolConstant _LIBCPP_NODEBUG = integral_constant<bool, _Val>;
                          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1191:28: note: expanded from macro '_LIBCPP_NODEBUG'
      #  define _LIBCPP_NODEBUG [[__gnu__::__nodebug__]]
                                 ^
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:12:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/comp.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_integral.h:13:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/integral_constant.h:35:37: error: expected unqualified-id
      using _BoolConstant _LIBCPP_NODEBUG = integral_constant<bool, _Val>;
                                          ^
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:12:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/comp.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_integral.h:14:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/remove_cv.h:22:9: error: using declaration requires a qualified name
        using type _LIBCPP_NODEBUG = __remove_cv(_Tp);
              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/remove_cv.h:22:13: error: expected ';' after using declaration
        using type _LIBCPP_NODEBUG = __remove_cv(_Tp);
                  ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/remove_cv.h:30:1: error: cannot template a using declaration
      using __remove_cv_t _LIBCPP_NODEBUG = __remove_cv(_Tp);
      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/remove_cv.h:30:21: error: expected expression
      using __remove_cv_t _LIBCPP_NODEBUG = __remove_cv(_Tp);
                          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1191:28: note: expanded from macro '_LIBCPP_NODEBUG'
      #  define _LIBCPP_NODEBUG [[__gnu__::__nodebug__]]
                                 ^
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:12:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/comp.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_integral.h:14:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/remove_cv.h:30:37: error: expected unqualified-id
      using __remove_cv_t _LIBCPP_NODEBUG = __remove_cv(_Tp);
                                          ^
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:12:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/comp.h:14:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_integral.h:53:70: error: no template named '_BoolConstant'
      struct _LIBCPP_TEMPLATE_VIS _LIBCPP_NO_SPECIALIZATIONS is_integral : _BoolConstant<__is_integral(_Tp)> {};
                                                                           ^
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:13:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/comp_ref_type.h:12:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__assert:13:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__assertion_handler:18:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__verbose_abort:29:2: error: expected expression
      [[__noreturn__]] _LIBCPP_AVAILABILITY_VERBOSE_ABORT _LIBCPP_OVERRIDABLE_FUNC_VIS _LIBCPP_ATTRIBUTE_FORMAT(
       ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__verbose_abort:29:18: error: expected unqualified-id
      [[__noreturn__]] _LIBCPP_AVAILABILITY_VERBOSE_ABORT _LIBCPP_OVERRIDABLE_FUNC_VIS _LIBCPP_ATTRIBUTE_FORMAT(
                       ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__configuration/availability.h:350:44: note: expanded from macro '_LIBCPP_AVAILABILITY_VERBOSE_ABORT'
      #define _LIBCPP_AVAILABILITY_VERBOSE_ABORT _LIBCPP_INTRODUCED_IN_LLVM_15_ATTRIBUTE
                                                 ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__configuration/availability.h:208:5: note: expanded from macro '_LIBCPP_INTRODUCED_IN_LLVM_15_ATTRIBUTE'
          __attribute__((availability(macos, strict, introduced = 13.3)))                                               \
          ^
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:13:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/comp_ref_type.h:62:1: error: cannot template a using declaration
      using __comp_ref_type _LIBCPP_NODEBUG = _Comp&;
      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/comp_ref_type.h:62:23: error: expected expression
      using __comp_ref_type _LIBCPP_NODEBUG = _Comp&;
                            ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1191:28: note: expanded from macro '_LIBCPP_NODEBUG'
      #  define _LIBCPP_NODEBUG [[__gnu__::__nodebug__]]
                                 ^
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:13:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/comp_ref_type.h:62:39: error: expected unqualified-id
      using __comp_ref_type _LIBCPP_NODEBUG = _Comp&;
                                            ^
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max_element.h:15:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator_traits.h:13:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/arithmetic.h:13:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_floating_point.h:31:41: error: use of undeclared identifier '__remove_cv_t'
          : public __libcpp_is_floating_point<__remove_cv_t<_Tp> > {};
                                              ^
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max_element.h:15:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator_traits.h:13:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/arithmetic.h:15:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_signed.h:26:68: error: no template named '_BoolConstant'
      struct _LIBCPP_TEMPLATE_VIS _LIBCPP_NO_SPECIALIZATIONS is_signed : _BoolConstant<__is_signed(_Tp)> {};
                                                                         ^
      In file included from ./snappy/snappy-c.cc:29:
      In file included from ./snappy/snappy.h:43:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:592:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/max_element.h:15:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/iterator_traits.h:14:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/constructible.h:13:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/destructible.h:13:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_nothrow_destructible.h:15:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_destructible.h:15:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:22:71: error: no template named '_BoolConstant'
      struct _LIBCPP_TEMPLATE_VIS _LIBCPP_NO_SPECIALIZATIONS is_reference : _BoolConstant<__is_reference(_Tp)> {};
                                                                            ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:32:78: error: no template named '_BoolConstant'
      struct _LIBCPP_TEMPLATE_VIS _LIBCPP_NO_SPECIALIZATIONS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> {
                                                                                   ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:36:78: error: no template named '_BoolConstant'
      struct _LIBCPP_TEMPLATE_VIS _LIBCPP_NO_SPECIALIZATIONS is_rvalue_reference : _BoolConstant<__is_rvalue_reference(_Tp)> {
                                                                                   ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      1 warning and 20 errors generated.
      error: command '/usr/bin/clang++' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for leveldb
Failed to build leveldb
ERROR: Could not build wheels for leveldb, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions