Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed building wheel for cloud-identification #15

Open
am-thyst opened this issue Aug 19, 2024 · 0 comments
Open

Failed building wheel for cloud-identification #15

am-thyst opened this issue Aug 19, 2024 · 0 comments

Comments

@am-thyst
Copy link

Hi Leif, having some problems with a fresh install on Linux.

Inside a conda environment, python -m pip install cloud-genesis runs successfully until the following errors:

Building wheels for collected packages: cloud-identification, pystan
  Building wheel for cloud-identification (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [59 lines of output]
      running bdist_wheel
      running build
      running build_ext
      CMake Warning:
        Ignoring extra path from command line:

         "/glade/derecho/scratch/amethystj/tmp/pip-install-n_1tnpsa/cloud-identification_7c25ae190e1f4fd9ac0fee20bf4405b3"


      CMake Error: The source directory "/glade/derecho/scratch/amethystj/tmp/pip-install-n_1tnpsa/cloud-identification_7c25ae190e1f4fd9ac0fee20bf4405b3" does not appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/glade/derecho/scratch/amethystj/tmp/pip-install-n_1tnpsa/cloud-identification_7c25ae190e1f4fd9ac0fee20bf4405b3/setup.py", line 122, in <module>
          setup(
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/__init__.py", line 104, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
          dist.run_commands()
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command
          super().run_command(command)
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/wheel/bdist_wheel.py", line 368, in run
          self.run_command("build")
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command
          super().run_command(command)
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 132, in run
          self.run_command(cmd_name)
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command
          super().run_command(command)
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 91, in run
          _build_ext.run(self)
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
          self.build_extensions()
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
          self._build_extensions_serial()
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
          self.build_extension(ext)
        File "/glade/derecho/scratch/amethystj/tmp/pip-install-n_1tnpsa/cloud-identification_7c25ae190e1f4fd9ac0fee20bf4405b3/setup.py", line 115, in build_extension
          subprocess.check_call(
        File "/glade/u/home/amethystj/miniconda3/envs/wrfenv/lib/python3.12/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '/glade/derecho/scratch/amethystj/tmp/pip-install-n_1tnpsa/cloud-identification_7c25ae190e1f4fd9ac0fee20bf4405b3', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/glade/derecho/scratch/amethystj/tmp/pip-install-n_1tnpsa/cloud-identification_7c25ae190e1f4fd9ac0fee20bf4405b3/build/lib.linux-x86_64-cpython-312/', '-DPYTHON_EXECUTABLE=/glade/u/home/amethystj/miniconda3/envs/wrfenv/bin/python', '-DCMAKE_BUILD_TYPE=Release', '-DEXAMPLE_VERSION_INFO=0.3.0']' 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: Failed building wheel for cloud-identification
  Running setup.py clean for cloud-identification
  Building wheel for pystan (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      /glade/derecho/scratch/amethystj/tmp/pip-install-n_1tnpsa/pystan_ac7f2aa0cbc1476598ba0d4d263afba5/setup.py:61: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
        self.version = node.value.s
      Cython>=0.22 and NumPy are required.
      [end of output]

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

cmake=3.26.4
python=3.12
cython=3.0.11
numpy=1.26.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant