[ https://issues.apache.org/jira/browse/AIRAVATA-3376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17201783#comment-17201783 ]
Marcus Christie commented on AIRAVATA-3376: ------------------------------------------- Another error occurs when trying to use Python 3.7. The version of Pillow seems incompatible: {code} Running setup.py install for Pillow: started Running setup.py install for Pillow: finished with status 'error' ERROR: Command errored out with exit status 1: command: /Users/machrist/Airavata/django/django_airavata_gateway/.tox/py37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/mx/qr54v1710vlflx2p8xs59g0mlpz0ml/T/pip-install-3f8_43ie/pillow/setup.py'"'"'; __file__='"'"'/private/var/folders/mx/qr54v1710vlflx2p8xs59g0mlpz0ml/T/pip-install-3f8_43ie/pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/mx/qr54v1710vlflx2p8xs59g0mlpz0ml/T/pip-record-aks2lval/install-record.txt --single-version-externally-managed --compile --install-headers /Users/machrist/Airavata/django/django_airavata_gateway/.tox/py37/include/site/python3.7/Pillow cwd: /private/var/folders/mx/qr54v1710vlflx2p8xs59g0mlpz0ml/T/pip-install-3f8_43ie/pillow/ Complete output (173 lines): running install running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.7 creating build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/MpoImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageMode.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PngImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/XbmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PcxImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/SunImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageFile.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/SpiderImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/TarIO.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/MpegImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/BdfFontFile.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/GribStubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageStat.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PixarImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/GimpPaletteFile.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/version.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageColor.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ContainerIO.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/MspImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/MicImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImtImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/GifImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PalmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageQt.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageMath.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PaletteFile.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/FontFile.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ExifTags.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageCms.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/FpxImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageChops.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PSDraw.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PcdImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageFilter.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageDraw2.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImagePath.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/DcxImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/JpegPresets.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/features.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageDraw.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/GimpGradientFile.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageWin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/IcoImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/_tkinter_finder.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/EpsImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/TgaImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageMorph.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/WalImageFile.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PcfFontFile.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageTk.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/GbrImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageOps.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PdfImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageShow.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageEnhance.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/WmfImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageGrab.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/WebPImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/FliImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/TiffTags.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/CurImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/_util.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/GdImageFile.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/TiffImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/IptcImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImagePalette.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/BmpImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageTransform.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/IcnsImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/McIdasImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/XpmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/OleFileIO.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/DdsImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageSequence.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PyAccess.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/_binary.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/Image.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/SgiImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PsdImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/JpegImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/ImageFont.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/PpmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL copying PIL/FtexImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.7/PIL running egg_info writing Pillow.egg-info/PKG-INFO writing dependency_links to Pillow.egg-info/dependency_links.txt writing requirements to Pillow.egg-info/requires.txt writing top-level names to Pillow.egg-info/top_level.txt reading manifest file 'Pillow.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.sh' no previously-included directories found matching 'docs/_static' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.landscape.yaml' warning: no previously-included files found matching '.travis' warning: no previously-included files found matching '.travis/*' warning: no previously-included files found matching 'appveyor.yml' warning: no previously-included files found matching 'build_children.sh' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files matching '.git*' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution writing manifest file 'Pillow.egg-info/SOURCES.txt' running build_ext The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html Traceback (most recent call last): File "/private/var/folders/mx/qr54v1710vlflx2p8xs59g0mlpz0ml/T/pip-install-3f8_43ie/pillow/setup.py", line 787, in <module> zip_safe=not (debug_build() or PLATFORM_MINGW), ) File "/Users/machrist/Airavata/django/django_airavata_gateway/.tox/py37/lib/python3.7/site-packages/setuptools/__init__.py", line 163, in setup return distutils.core.setup(**attrs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/machrist/Airavata/django/django_airavata_gateway/.tox/py37/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run self.run_command('build') File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/private/var/folders/mx/qr54v1710vlflx2p8xs59g0mlpz0ml/T/pip-install-3f8_43ie/pillow/setup.py", line 577, in build_extensions raise RequiredDependencyException(f) __main__.RequiredDependencyException: zlib During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/mx/qr54v1710vlflx2p8xs59g0mlpz0ml/T/pip-install-3f8_43ie/pillow/setup.py", line 799, in <module> raise RequiredDependencyException(msg) __main__.RequiredDependencyException: The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html ---------------------------------------- ERROR: Command errored out with exit status 1: /Users/machrist/Airavata/django/django_airavata_gateway/.tox/py37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/mx/qr54v1710vlflx2p8xs59g0mlpz0ml/T/pip-install-3f8_43ie/pillow/setup.py'"'"'; __file__='"'"'/private/var/folders/mx/qr54v1710vlflx2p8xs59g0mlpz0ml/T/pip-install-3f8_43ie/pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/mx/qr54v1710vlflx2p8xs59g0mlpz0ml/T/pip-record-aks2lval/install-record.txt --single-version-externally-managed --compile --install-headers /Users/machrist/Airavata/django/django_airavata_gateway/.tox/py37/include/site/python3.7/Pillow Check the logs for full command output. {code} > Wagtail: Problem installing fixtures: no such table: wagtailcore_page__old, > Python 3.7 incompatibility > ------------------------------------------------------------------------------------------------------ > > Key: AIRAVATA-3376 > URL: https://issues.apache.org/jira/browse/AIRAVATA-3376 > Project: Airavata > Issue Type: Improvement > Reporter: Marcus Christie > Assignee: Marcus Christie > Priority: Major > > The version of Django (1.11.29) and Wagtail (2.0) are not compatible with > Python 3.7+. Newer versions of Django have the fix but 1.11.x didn't get the > fix. > Workaround: > - use Python 3.6 > See also: > https://code.djangoproject.com/ticket/29182 > https://github.com/wagtail/wagtail/issues/4941 > Stack trace: > {code} > Traceback (most recent call last): > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/db/backends/utils.py", > line 62, in execute > return self.cursor.execute(sql) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", > line 326, in execute > return Database.Cursor.execute(self, query) > sqlite3.OperationalError: no such table: wagtailcore_page__old > The above exception was the direct cause of the following exception: > Traceback (most recent call last): > File "manage.py", line 22, in <module> > execute_from_command_line(sys.argv) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/core/management/__init__.py", > line 364, in execute_from_command_line > utility.execute() > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/core/management/__init__.py", > line 356, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/core/management/base.py", > line 283, in run_from_argv > self.execute(*args, **cmd_options) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/core/management/base.py", > line 330, in execute > output = self.handle(*args, **options) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/django_airavata/wagtailapps/base/management/commands/load_cms_data.py", > line 36, in handle > call_command('loaddata', fixture_file, verbosity=0) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/core/management/__init__.py", > line 131, in call_command > return command.execute(*args, **defaults) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/core/management/base.py", > line 330, in execute > output = self.handle(*args, **options) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", > line 69, in handle > self.loaddata(fixture_labels) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/core/management/commands/loaddata.py", > line 115, in loaddata > connection.check_constraints(table_names=table_names) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", > line 286, in check_constraints > column_name, referenced_column_name, > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/db/backends/utils.py", > line 79, in execute > return super(CursorDebugWrapper, self).execute(sql, params) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/db/backends/utils.py", > line 64, in execute > return self.cursor.execute(sql, params) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/db/utils.py", > line 94, in __exit__ > six.reraise(dj_exc_type, dj_exc_value, traceback) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/utils/six.py", > line 685, in reraise > raise value.with_traceback(tb) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/db/backends/utils.py", > line 62, in execute > return self.cursor.execute(sql) > File > "/Users/akilaishani/Code/US/eroma/airavata-django-portal/venv/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", > line 326, in execute > return Database.Cursor.execute(self, query) > django.db.utils.OperationalError: Problem installing fixtures: no such table: > wagtailcore_page__old > {code} > h5. TODO > - [ ] integrate tox for running Python unittests against multiple Python > versions > - [ ] Upgrade to more recent and supported Django and Wagtail > - [ ] Upgrade to more recent and supported Python -- This message was sent by Atlassian Jira (v8.3.4#803005)