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

Bug report: Can not install cosmpy #341

Closed
4 tasks done
lehieuhust opened this issue Apr 12, 2023 · 2 comments
Closed
4 tasks done

Bug report: Can not install cosmpy #341

lehieuhust opened this issue Apr 12, 2023 · 2 comments

Comments

@lehieuhust
Copy link

lehieuhust commented Apr 12, 2023

Prerequisites

Expected Behavior

Success install cosmpy

Current Behavior

pip3 install cosmpy

To Reproduce

Hello, I have installed cosmpy and faced this error. Can anyone explain to me about this error? How to fix it?

Context

python3 --version                                                                                                                                                                                                      
Python 3.11.2

Mac os version 12.5 Chip Apple M1 pro

Failure Logs

  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/private/var/folders/x5/cp6j19k57ll8bvr0nxjwgscw0000gn/T/pip-install-f8vh8fnh/grpcio_46a95b6e150e45928599ee4f2a5cdbe7/setup.py", line 541, in <module>
      setuptools.setup(
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/dist.py", line 1208, in run_command
      super().run_command(command)
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/command/install.py", line 68, in run
      return orig.install.run(self)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 698, in run
      self.run_command('build')
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/dist.py", line 1208, in run_command
      super().run_command(command)
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 132, in run
      self.run_command(cmd_name)
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/dist.py", line 1208, in run_command
      super().run_command(command)
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 84, in run
      _build_ext.run(self)
    File "/opt/homebrew/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
      self.build_extensions()
    File "/private/var/folders/x5/cp6j19k57ll8bvr0nxjwgscw0000gn/T/pip-install-f8vh8fnh/grpcio_46a95b6e150e45928599ee4f2a5cdbe7/src/python/grpcio/commands.py", line 283, in build_extensions
      support.diagnose_build_ext_error(self, error, formatted_exception)
    File "/private/var/folders/x5/cp6j19k57ll8bvr0nxjwgscw0000gn/T/pip-install-f8vh8fnh/grpcio_46a95b6e150e45928599ee4f2a5cdbe7/src/python/grpcio/support.py", line 117, in diagnose_build_ext_error
      diagnostic(build_ext, error)
    File "/private/var/folders/x5/cp6j19k57ll8bvr0nxjwgscw0000gn/T/pip-install-f8vh8fnh/grpcio_46a95b6e150e45928599ee4f2a5cdbe7/src/python/grpcio/support.py", line 96, in diagnose_attribute_error
      raise commands.CommandError(
  commands.CommandError: We expect a missing `_needs_stub` attribute from older versions of setuptools. Consider upgrading setuptools.
  [end of output]
@lehieuhust lehieuhust changed the title Bug report: <short description> Bug report: Can not install cosmpy Apr 12, 2023
@jrriehl
Copy link
Contributor

jrriehl commented Apr 17, 2023

Due to some downstream dependencies, CosmPy does not yet support Python 3.11. We are hoping to add this support soon: #326.

@jrriehl
Copy link
Contributor

jrriehl commented May 30, 2023

Support for Python 3.11 added here: #350.

@jrriehl jrriehl closed this as completed May 30, 2023
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

2 participants