Skip to content

install error #235

@linyuiz

Description

@linyuiz

Dear Developers,
I followed the installation instructions at (https://github.com/KamilSJaron/smudgeplot?tab=readme-ov-file#installation), but it failed.

Collecting pytz>=2020.1 (from pandas>=2.2.3->smudgeplot==0.5.1)
  Downloading https://mirrors.ustc.edu.cn/pypi/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl (509 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 509.2/509.2 kB 165.6 MB/s eta 0:00:00
Collecting tzdata>=2022.7 (from pandas>=2.2.3->smudgeplot==0.5.1)
  Downloading https://mirrors.ustc.edu.cn/pypi/packages/5c/23/c7abc0ca0a1526a0774eca151daeb8de62ec457e77262b66b359c3c7679e/tzdata-2025.2-py2.py3-none-any.whl (347 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 347.8/347.8 kB 256.8 MB/s eta 0:00:00
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib>=3.10.0->smudgeplot==0.5.1)
  Downloading https://mirrors.ustc.edu.cn/pypi/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: smudgeplot
  Building wheel for smudgeplot (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for smudgeplot (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [78 lines of output]
      running bdist_wheel
      running build
      running build_py
      running egg_info
      writing src/smudgeplot.egg-info/PKG-INFO
      writing dependency_links to src/smudgeplot.egg-info/dependency_links.txt
      writing entry points to src/smudgeplot.egg-info/entry_points.txt
      writing requirements to src/smudgeplot.egg-info/requires.txt
      writing top-level names to src/smudgeplot.egg-info/top_level.txt
      reading manifest file 'src/smudgeplot.egg-info/SOURCES.txt'
      adding license file 'LICENSE.md'
      writing manifest file 'src/smudgeplot.egg-info/SOURCES.txt'
      installing to build/bdist.linux-x86_64/wheel
      running install
      gcc -O3 -Wall -Wextra -Wno-unused-result -fno-strict-aliasing -o exec/hetmers src/lib/PloidyPlot.c src/lib/libfastk.c src/lib/matrix.c -lpthread -lm
      src/lib/PloidyPlot.c: In function 'in_core_recursion':
      src/lib/PloidyPlot.c:881:17: warning: storing the address of local variable 'bound' in '*parm.bound' [-Wdangling-pointer=]
        881 |     parm->bound = (int64 *) bound;
            |     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
      src/lib/PloidyPlot.c:852:10: note: 'bound' declared here
        852 | { uint8 *bound[17];
            |          ^~~~~
      src/lib/PloidyPlot.c:851:60: note: 'parm' declared here
        851 | static void in_core_recursion(uint8 **aptr, int level, TP *parm)
            |                                                        ~~~~^~~~
      In file included from src/lib/libfastk.c:12:
      src/lib/gene_core.c:7:10: fatal error: zlib.h: No such file or directory
          7 | #include <zlib.h>
            |          ^~~~~~~~
      compilation terminated.
      make: *** [Makefile:20: exec/hetmers] Error 1
      Traceback (most recent call last):
        File "/pipeline/zgtools/scripts/software/smudgeplot-0.5.1/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/pipeline/zgtools/scripts/software/smudgeplot-0.5.1/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/pipeline/zgtools/scripts/software/smudgeplot-0.5.1/env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 435, in build_wheel
          return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 423, in _build
          return self._build_with_temp_dir(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 404, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 317, in run_setup
          exec(code, locals())
        File "<string>", line 39, in <module>
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 115, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 186, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 1102, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/command/bdist_wheel.py", line 405, in run
          self.run_command("install")
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 1102, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-_7egwecg/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
          cmd_obj.run()
        File "<string>", line 36, in run
        File "<string>", line 30, in compile_and_install_software
        File "/opt/conda/envs/smudgeplot/lib/python3.12/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command 'mkdir -p exec && make exec/hetmers exec/extract_kmer_pairs' returned non-zero exit status 2.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for smudgeplot
Failed to build smudgeplot
ERROR: Could not build wheels for smudgeplot, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

Labels

0.5.0 skylightpotential problemsfor potential problems given different scenarios (How does XXX infulence sumdgeplot?)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions