napkinXC icon indicating copy to clipboard operation
napkinXC copied to clipboard

Trouble installing napkinxc

Open Mahhos opened this issue 1 year ago • 1 comments

Hi! Thanks for the great repo. I'm having trouble installing napkinxc using pip, both on Databricks and my local machine. Do you have any advice on how to resolve this?

`%pip install napkinxc Collecting napkinxc Downloading napkinxc-0.6.2.tar.gz (43.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/43.6 MB ? eta -:--:-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.1/43.6 MB 3.2 MB/s eta 0:00:14 ━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/43.6 MB 31.8 MB/s eta 0:00:02 ━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/43.6 MB 31.8 MB/s eta 0:00:02 ━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/43.6 MB 31.8 MB/s eta 0:00:02 ━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/43.6 MB 20.6 MB/s eta 0:00:02 ━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/43.6 MB 23.4 MB/s eta 0:00:02 ━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/43.6 MB 23.4 MB/s eta 0:00:02 ━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.6/43.6 MB 19.9 MB/s eta 0:00:02 ━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.3/43.6 MB 22.1 MB/s eta 0:00:02 ━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/43.6 MB 21.9 MB/s eta 0:00:02 ━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/43.6 MB 21.9 MB/s eta 0:00:02 ━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/43.6 MB 21.9 MB/s eta 0:00:02 ━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/43.6 MB 21.9 MB/s eta 0:00:02 ━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.4/43.6 MB 18.2 MB/s eta 0:00:02 ━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.4/43.6 MB 18.5 MB/s eta 0:00:02 ━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.4/43.6 MB 18.5 MB/s eta 0:00:02 ━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.5/43.6 MB 19.2 MB/s eta 0:00:02 ━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.5/43.6 MB 19.2 MB/s eta 0:00:02 ━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.5/43.6 MB 19.2 MB/s eta 0:00:02 ━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.6/43.6 MB 19.7 MB/s eta 0:00:02 ━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.6/43.6 MB 19.7 MB/s eta 0:00:02 ━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.6/43.6 MB 19.7 MB/s eta 0:00:02 ━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.6/43.6 MB 17.0 MB/s eta 0:00:02 ━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.7/43.6 MB 18.4 MB/s eta 0:00:02 ━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.7/43.6 MB 18.4 MB/s eta 0:00:02 ━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.2/43.6 MB 16.2 MB/s eta 0:00:02 ━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━ 15.7/43.6 MB 16.2 MB/s eta 0:00:02 ━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━ 17.8/43.6 MB 20.1 MB/s eta 0:00:02 ━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━ 17.8/43.6 MB 20.1 MB/s eta 0:00:02 ━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━ 17.8/43.6 MB 20.1 MB/s eta 0:00:02 ━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━ 17.8/43.6 MB 20.1 MB/s eta 0:00:02 ━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━ 18.9/43.6 MB 17.2 MB/s eta 0:00:02 ━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━ 20.3/43.6 MB 18.0 MB/s eta 0:00:02 ━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━ 23.1/43.6 MB 25.5 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━ 23.1/43.6 MB 25.5 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━ 23.1/43.6 MB 25.5 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━ 23.1/43.6 MB 25.5 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━ 24.1/43.6 MB 20.7 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━ 24.1/43.6 MB 20.7 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━ 27.2/43.6 MB 23.5 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━ 28.3/43.6 MB 33.1 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━ 28.3/43.6 MB 33.1 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━ 29.4/43.6 MB 29.1 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━ 29.4/43.6 MB 29.1 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━ 31.5/43.6 MB 24.7 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━ 32.2/43.6 MB 22.7 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━ 32.5/43.6 MB 22.6 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━ 34.6/43.6 MB 33.9 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━ 34.6/43.6 MB 33.9 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━ 35.7/43.6 MB 27.6 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━ 36.7/43.6 MB 27.5 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━ 37.7/43.6 MB 24.5 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━ 37.7/43.6 MB 24.5 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━ 38.8/43.6 MB 27.1 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━ 38.8/43.6 MB 27.1 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━ 38.8/43.6 MB 27.1 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━ 39.0/43.6 MB 20.1 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━ 40.9/43.6 MB 22.4 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━ 40.9/43.6 MB 22.4 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━ 41.9/43.6 MB 21.1 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸ 43.6/43.6 MB 22.0 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸ 43.6/43.6 MB 21.9 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸ 43.6/43.6 MB 21.9 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸ 43.6/43.6 MB 21.9 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸ 43.6/43.6 MB 21.9 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸ 43.6/43.6 MB 21.9 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸ 43.6/43.6 MB 21.9 MB/s eta 0:00:01 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.6/43.6 MB 14.3 MB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [114 lines of output] running dist_info egg_info (cmake) creating /tmp/pip-modern-metadata-u2r5yobw/napkinxc.egg-info writing /tmp/pip-modern-metadata-u2r5yobw/napkinxc.egg-info/PKG-INFO writing dependency_links to /tmp/pip-modern-metadata-u2r5yobw/napkinxc.egg-info/dependency_links.txt writing requirements to /tmp/pip-modern-metadata-u2r5yobw/napkinxc.egg-info/requires.txt writing top-level names to /tmp/pip-modern-metadata-u2r5yobw/napkinxc.egg-info/top_level.txt writing manifest file '/tmp/pip-modern-metadata-u2r5yobw/napkinxc.egg-info/SOURCES.txt' -- The C compiler identification is GNU 11.4.0 -- The CXX compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found Python: /local_disk0/.ephemeral_nfs/envs/pythonEnv-4bac07b2-e5e8-402e-a37b-2f49e88ed42b/bin/python3.11 (found suitable exact version "3.11.0") found components: Interpreter Development.Module CMake Deprecation Warning at pybind11/CMakeLists.txt:8 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake.

    Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    to tell CMake that the project requires at least <min> but has been updated
    to work with policies introduced by <max> or earlier.
  
  
  -- pybind11 v2.9.2
  CMake Error at pybind11/CMakeLists.txt:200 (include):
    include could not find requested file:
  
      /tmp/pip-install-p3ynczcg/napkinxc_ce7dde03bb904afea3a59e12eda91ca3/pybind11/tools/pybind11Common.cmake
  
  
  CMake Error at python/napkinxc/_napkinxc/CMakeLists.txt:12 (pybind11_add_module):
    Unknown CMake command "pybind11_add_module".
  
  
  -- Configuring incomplete, errors occurred!
  [git] .gitmodules found. Cloning the submodules if necessary
  [git] submodule pybind11 is already present.
  
  [cmake] configuring CMake project...
  
  Traceback (most recent call last):
    File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-4bac07b2-e5e8-402e-a37b-2f49e88ed42b/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-4bac07b2-e5e8-402e-a37b-2f49e88ed42b/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-4bac07b2-e5e8-402e-a37b-2f49e88ed42b/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
      return hook(metadata_directory, config_settings)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/databricks/python/lib/python3.11/site-packages/setuptools/build_meta.py", line 380, in prepare_metadata_for_build_wheel
      self.run_setup()
    File "/databricks/python/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup
      self).run_setup(setup_script=setup_script)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/databricks/python/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 40, in <module>
    File "/tmp/pip-build-env-2n7g715b/overlay/lib/python3.11/site-packages/cmaketools/__init__.py", line 98, in setup
      _setup(**setup_args)
    File "/databricks/python/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/databricks/python/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/databricks/python/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/databricks/python/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/databricks/python/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/databricks/python/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/databricks/python/lib/python3.11/site-packages/setuptools/command/dist_info.py", line 99, in run
      self.egg_info.run()
    File "/databricks/python/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 314, in run
      self.find_sources()
    File "/tmp/pip-build-env-2n7g715b/overlay/lib/python3.11/site-packages/cmaketools/cmakecommands.py", line 72, in find_sources
      mm.run()
    File "/databricks/python/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 551, in run
      self.add_defaults()
    File "/databricks/python/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
      sdist.add_defaults(self)
    File "/databricks/python/lib/python3.11/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
      super().add_defaults()
    File "/databricks/python/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
      self._add_defaults_ext()
    File "/databricks/python/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 335, in _add_defaults_ext
      build_ext = self.get_finalized_command('build_ext')
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/databricks/python/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 305, in get_finalized_command
      cmd_obj.ensure_finalized()
    File "/databricks/python/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
      self.finalize_options()
    File "/tmp/pip-build-env-2n7g715b/overlay/lib/python3.11/site-packages/cmaketools/cmakecommands.py", line 452, in finalize_options
      self.cmake.configure(self.build_base, **cmake_settings)
    File "/tmp/pip-build-env-2n7g715b/overlay/lib/python3.11/site-packages/cmaketools/cmakebuilder.py", line 321, in configure
      cmakeutil.configure(".", build_dir, *args, **kwargs)
    File "/tmp/pip-build-env-2n7g715b/overlay/lib/python3.11/site-packages/cmaketools/cmakeutil.py", line 120, in configure
      sp.run(args, env=env, check=True).check_returncode()
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.11/subprocess.py", line 569, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['cmake', '.', '-B', 'build', '-DPYTHON=ON', '-DPYTHON_VERSION=3.11', '-DEXE=OFF', '-DBACKWARD=OFF', '-DCMAKE_BUILD_TYPE:STRING=Release']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.`

Mahhos avatar Feb 17 '25 16:02 Mahhos

Hi @Mahhos, thank you for your interest in my small library and your kind words. I have quite a long break in maintaining it, and the current pip release only supports Python 3.7 - 3.10. I plan to release new version support for 3.11 and 3.12 soon (maybe even this week), but before that, on Linux, you can install a new "work in progress" version from the repo using pip install git+https://github.com/mwydmuch/napkinXC.git. If you want to use a previous release you should downgrade to Python 3.10.

mwydmuch avatar Feb 17 '25 22:02 mwydmuch