Skip to content

Installation problem Python 3.11.2 #3

Description

@KristjanESPERANTO

I can't install the module with Python 3.11.2 under Debian 12.

Do you have an idea how to solve it?

$ python -V
Python 3.11.2
$ pip install pyopening_hours      
Defaulting to user installation because normal site-packages is not writeable
Collecting pyopening_hours
  Using cached pyopening_hours-0.3.0.tar.gz (926 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      running egg_info
      creating /tmp/pip-pip-egg-info-sx2y4cwt/pyopening_hours.egg-info
      writing /tmp/pip-pip-egg-info-sx2y4cwt/pyopening_hours.egg-info/PKG-INFO
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-082a71dz/pyopening-hours_bd81c33c0d984e219ca7ef867e8de6d5/setup.py", line 12, in <module>
          setup(
        File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1213, in run_command
          super().run_command(command)
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 305, in run
          writer(self, ep.name, os.path.join(self.egg_info, ep.name))
        File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 687, in write_pkg_info
          metadata.write_pkg_info(cmd.egg_info)
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 1137, in write_pkg_info
          self.write_pkg_file(pkg_info)
        File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 232, in write_pkg_file
          if not long_description.endswith("\n"):
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: 'tuple' object has no attribute 'endswith'
      [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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions