Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

Install pillow package -> Error Traceback

  • 1.  Install pillow package -> Error Traceback

    Posted Fri September 01, 2023 03:17 AM

    I got following error message when install pillow package. Can AIX expert help to resolve it?

    " Traceback (most recent call last):

        File "/tmp/pip-install-cfavpvyg/pillow/setup.py", line 996, in <module>

          zip_safe=not (debug_build() or PLATFORM_MINGW),

        File "/opt/freeware/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup

          return distutils.core.setup(**attrs)

        File "/opt/freeware/lib64/python3.7/distutils/core.py", line 148, in setup

          dist.run_commands()

        File "/opt/freeware/lib64/python3.7/distutils/dist.py", line 966, in run_commands

          self.run_command(cmd)

        File "/opt/freeware/lib64/python3.7/distutils/dist.py", line 985, in run_command

          cmd_obj.run()

        File "/opt/freeware/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 299, in run

          self.run_command('build')

        File "/opt/freeware/lib64/python3.7/distutils/cmd.py", line 313, in run_command

          self.distribution.run_command(command)

        File "/opt/freeware/lib64/python3.7/distutils/dist.py", line 985, in run_command

          cmd_obj.run()

        File "/opt/freeware/lib64/python3.7/distutils/command/build.py", line 135, in run

          self.run_command(cmd_name)

        File "/opt/freeware/lib64/python3.7/distutils/cmd.py", line 313, in run_command

          self.distribution.run_command(command)

        File "/opt/freeware/lib64/python3.7/distutils/dist.py", line 985, in run_command

          cmd_obj.run()

        File "/opt/freeware/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run

          _build_ext.run(self)

        File "/opt/freeware/lib64/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run

          _build_ext.build_ext.run(self)

        File "/opt/freeware/lib64/python3.7/distutils/command/build_ext.py", line 340, in run

          self.build_extensions()

        File "/tmp/pip-install-cfavpvyg/pillow/setup.py", line 804, in build_extensions

          raise RequiredDependencyException(f)

      __main__.RequiredDependencyException: jpeg

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):

        File "<string>", line 1, in <module>

        File "/tmp/pip-install-cfavpvyg/pillow/setup.py", line 1009, in <module>

          raise RequiredDependencyException(msg)

      __main__.RequiredDependencyException:

      The headers or library files could not be found for jpeg,

      a required dependency when compiling Pillow from source. "



    ------------------------------
    Bruce Turgeon
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Install pillow package -> Error Traceback

    Posted Wed September 06, 2023 05:17 AM

    Hi

    Do you have jpeg development package installed in your system ?

    Check using the output of 'rpm -qa | grep -i jpeg'.

    # rpm -qa | grep -i jpeg
    libjpeg-devel-9e-1.ppc
    libjpeg-9e-1.ppc

    Install the libjpeg-devel package and give a try.

    Thanks



    ------------------------------
    Ranjit Ranjan
    ------------------------------