Skip to content

Conversation

@kinow
Copy link
Owner

@kinow kinow commented Dec 15, 2023

WIP

To build and run

  • docker build -t sunset:latest . (broken)
  • docker run -ti --rm sunset:latest

@kinow
Copy link
Owner Author

kinow commented Dec 15, 2023

The current version is not building due to an issue with matplotlib when resolving the dependencies for the Conda environment.

Building wheels for collected packages: bscearth-utils, cdo, matplotlib
  Building wheel for bscearth-utils (setup.py) ... done
  Created wheel for bscearth-utils: filename=bscearth.utils-0.5.2-py3-none-any.whl size=10127 sha256=da91a78ed51fce9acab44bd2c665ee5e9cfaabc3df776ef93239788bc3ae0234
  Stored in directory: /home/mambauser/.cache/pip/wheels/55/e7/7b/11c2996fd728520b789775328531dfb1fc346478773088c20e
  Building wheel for cdo (setup.py) ... done
  Created wheel for cdo: filename=cdo-1.6.0-py3-none-any.whl size=10646 sha256=33c17c409f4f9fb9822e7e1b3b8830915e0229b3185d4052fcc51dd2ada42225
  Stored in directory: /home/mambauser/.cache/pip/wheels/6b/51/2f/5170a8f5314cb593cf3627abfe0175106610ea6fe81184301a
  Building wheel for matplotlib (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [668 lines of output]
      
      Edit mplsetup.cfg to change the build options; suppress output with --quiet.
      
      BUILDING MATPLOTLIB
            python: yes [3.11.5 | packaged by conda-forge | (main, Aug 27 2023,
...
      checking whether the C compiler works... no
      configure: error: in `/tmp/pip-install-krmw7b9i/matplotlib_8b6111914bf8471e8d3bd6c1a20ca62d/build/freetype-2.6.1/builds/unix':
      configure: error: C compiler cannot create executables
      See `config.log' for more details
      make: *** [builds/unix/detect.mk:85: setup] Error 77
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-krmw7b9i/matplotlib_8b6111914bf8471e8d3bd6c1a20ca62d/setup.py", line 273, in <module>
          setup(  # Finally, pass this all along to setuptools to do the heavy lifting.
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
          super().run_command(command)
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 364, in run
          self.run_command("build")
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
          super().run_command(command)
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
          super().run_command(command)
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 88, in run
          _build_ext.run(self)
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "/tmp/pip-install-krmw7b9i/matplotlib_8b6111914bf8471e8d3bd6c1a20ca62d/setup.py", line 187, in build_extensions
          package.do_custom_build(env)
        File "/tmp/pip-install-krmw7b9i/matplotlib_8b6111914bf8471e8d3bd6c1a20ca62d/setupext.py", line 643, in do_custom_build
          subprocess.check_call(configure, env=env, cwd=src_path)
        File "/opt/conda/envs/condaSUNSET/lib/python3.11/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['./configure', '--with-zlib=no', '--with-bzip2=no', '--with-png=no', '--with-harfbuzz=no', '--enable-static', '--disable-shared', '--host=x86_64-conda_cos6-linux-gnu']' 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 matplotlib
  Running setup.py clean for matplotlib
Successfully built bscearth-utils cdo
Failed to build matplotlib
ERROR: Could not build wheels for matplotlib, which is required to install pyproject.toml-based projects
critical libmamba pip failed to install packages

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

Successfully merging this pull request may close these issues.

2 participants