pip3 install distribusi breaks #7

Open
opened 3 years ago by mb · 4 comments
mb commented 3 years ago
Installing collected packages: python-magic, pillow, distribusi
    Running setup.py install for pillow ... error
    ERROR: Command errored out with exit status 1:
     command: /srv/distribusi/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jjexve5f/pillow_b8ab994d8df94126b21a37897b76451e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jjexve5f/pillow_b8ab994d8df94126b21a37897b76451e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-4d7jnw7y/install-record.txt --single-version-externally-managed --compile --install-headers /srv/distribusi/venv/include/site/python3.9/pillow
         cwd: /tmp/pip-install-jjexve5f/pillow_b8ab994d8df94126b21a37897b76451e/

Pillow is causing trouble!

``` Installing collected packages: python-magic, pillow, distribusi Running setup.py install for pillow ... error ERROR: Command errored out with exit status 1: command: /srv/distribusi/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jjexve5f/pillow_b8ab994d8df94126b21a37897b76451e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jjexve5f/pillow_b8ab994d8df94126b21a37897b76451e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-4d7jnw7y/install-record.txt --single-version-externally-managed --compile --install-headers /srv/distribusi/venv/include/site/python3.9/pillow cwd: /tmp/pip-install-jjexve5f/pillow_b8ab994d8df94126b21a37897b76451e/ ``` Pillow is causing trouble!
mb commented 3 years ago
Poster

It seems that the latest versions of Python only work with recent versions of the Pillow library, see: https://pillow.readthedocs.io/en/stable/installation.html#basic-installation

It seems that the latest versions of Python only work with recent versions of the Pillow library, see: https://pillow.readthedocs.io/en/stable/installation.html#basic-installation
mb commented 3 years ago
Poster

With Python 3.9 and Pillow 8.0, the pip3 install -e . command returns:

Requirement already satisfied: pillow<9.0,>=6.1.0 in /home/friend/.local/lib/python3.9/site-packages (from distribusi==0.0.10) (8.0.0)
Requirement already satisfied: python-magic<1.0,>=0.4.15 in /home/friend/.local/lib/python3.9/site-packages (from distribusi==0.0.10) (0.4.25)
Installing collected packages: distribusi
  Running setup.py develop for distribusi
    error: subprocess-exited-with-error
    
    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [32 lines of output]
        running develop
        WARNING: The user site-packages directory is disabled.
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/srv/distribusi/distribusi/setup.py", line 8, in <module>
            setup(
          File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
            return distutils.core.setup(**attrs)
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 148, in setup
            dist.run_commands()
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 967, in run_commands
            self.run_command(cmd)
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 985, in run_command
            cmd_obj.ensure_finalized()
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized
            self.finalize_options()
          File "/usr/lib/python3/dist-packages/setuptools/command/develop.py", line 52, in finalize_options
            easy_install.finalize_options(self)
          File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 293, in finalize_options
            self.set_undefined_options(
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 287, in set_undefined_options
            src_cmd_obj.ensure_finalized()
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized
            self.finalize_options()
          File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 17, in finalize_options
            self.set_undefined_options('install',('install_layout','install_layout'))
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options
            setattr(self, dst_option, getattr(src_cmd_obj, src_option))
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__
            raise AttributeError(attr)
        AttributeError: install_layout
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
    running develop
    WARNING: The user site-packages directory is disabled.
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/srv/distribusi/distribusi/setup.py", line 8, in <module>
        setup(
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 967, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 985, in run_command
        cmd_obj.ensure_finalized()
      File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized
        self.finalize_options()
      File "/usr/lib/python3/dist-packages/setuptools/command/develop.py", line 52, in finalize_options
        easy_install.finalize_options(self)
      File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 293, in finalize_options
        self.set_undefined_options(
      File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 287, in set_undefined_options
        src_cmd_obj.ensure_finalized()
      File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized
        self.finalize_options()
      File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 17, in finalize_options
        self.set_undefined_options('install',('install_layout','install_layout'))
      File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options
        setattr(self, dst_option, getattr(src_cmd_obj, src_option))
      File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__
        raise AttributeError(attr)
    AttributeError: install_layout
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
With Python 3.9 and Pillow 8.0, the `pip3 install -e .` command returns: ``` Requirement already satisfied: pillow<9.0,>=6.1.0 in /home/friend/.local/lib/python3.9/site-packages (from distribusi==0.0.10) (8.0.0) Requirement already satisfied: python-magic<1.0,>=0.4.15 in /home/friend/.local/lib/python3.9/site-packages (from distribusi==0.0.10) (0.4.25) Installing collected packages: distribusi Running setup.py develop for distribusi error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [32 lines of output] running develop WARNING: The user site-packages directory is disabled. Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/srv/distribusi/distribusi/setup.py", line 8, in <module> setup( File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 967, in run_commands self.run_command(cmd) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 985, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "/usr/lib/python3/dist-packages/setuptools/command/develop.py", line 52, in finalize_options easy_install.finalize_options(self) File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 293, in finalize_options self.set_undefined_options( File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 287, in set_undefined_options src_cmd_obj.ensure_finalized() File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 17, in finalize_options self.set_undefined_options('install',('install_layout','install_layout')) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [32 lines of output] running develop WARNING: The user site-packages directory is disabled. Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/srv/distribusi/distribusi/setup.py", line 8, in <module> setup( File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 967, in run_commands self.run_command(cmd) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 985, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "/usr/lib/python3/dist-packages/setuptools/command/develop.py", line 52, in finalize_options easy_install.finalize_options(self) File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 293, in finalize_options self.set_undefined_options( File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 287, in set_undefined_options src_cmd_obj.ensure_finalized() File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 17, in finalize_options self.set_undefined_options('install',('install_layout','install_layout')) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__ raise AttributeError(attr) AttributeError: install_layout [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ```
Owner

e291e7497e I did this a while ago and fixed similar issues since I am on a newer python anyway

https://git.vvvvvvaria.org/crunk/distribusi/commit/e291e7497e40211c2ebd54ca32a1f4bdaed71230 I did this a while ago and fixed similar issues since I am on a newer python anyway
rra commented 3 years ago

Yes, it seems the boundaries for library versions in setup.py no longer play nice with whatever is installed by default with debian stable.

So if you feel like researching what the appropriate ones are and sharing it back here, the setup.py file could be edited and a new release could be made.

Yes, it seems the boundaries for library versions in `setup.py` no longer play nice with whatever is installed by default with debian stable. So if you feel like researching what the appropriate ones are and sharing it back here, the setup.py file could be edited and a new release could be made.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.