Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1382

macOS packaging script ignores all errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.1.2
    • None
    • Packaging & Deployment
    • None

      I managed to break the packaging script for macOS on travis (https://travis-ci.org/mineo/picard/jobs/444023724). The build was still successful.

      if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash scripts/package-osx.sh; fi
      Download error on https://pypi.org/simple/pytest-runner/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) – Some packages may not be found!
      Couldn't find index page for 'pytest-runner' (maybe misspelled?)
      Download error on https://pypi.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) – Some packages may not be found!
      No local packages or working download links found for pytest-runner
      Traceback (most recent call last):
      File "setup.py", line 632, in <module>
      setup(**args)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/_init_.py", line 139, in setup
      _install_setup_requires(attrs)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/_init_.py", line 134, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
      replace_conflicting=True,
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 777, in resolve
      replace_conflicting=replace_conflicting
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 1060, in best_match
      return self.obtain(req, installer)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 1072, in obtain
      return installer(requirement)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
      return cmd.easy_install(req)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 670, in easy_install
      raise DistutilsError(msg)
      distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
      Download error on https://pypi.org/simple/pytest-runner/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) – Some packages may not be found!
      Couldn't find index page for 'pytest-runner' (maybe misspelled?)
      Download error on https://pypi.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) – Some packages may not be found!
      No local packages or working download links found for pytest-runner
      Traceback (most recent call last):
      File "setup.py", line 632, in <module>
      setup(**args)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/_init_.py", line 139, in setup
      _install_setup_requires(attrs)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/_init_.py", line 134, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
      replace_conflicting=True,
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 777, in resolve
      replace_conflicting=replace_conflicting
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 1060, in best_match
      return self.obtain(req, installer)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 1072, in obtain
      return installer(requirement)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
      return cmd.easy_install(req)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 670, in easy_install
      raise DistutilsError(msg)
      distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
      Download error on https://pypi.org/simple/pytest-runner/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) – Some packages may not be found!
      Couldn't find index page for 'pytest-runner' (maybe misspelled?)
      Download error on https://pypi.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) – Some packages may not be found!
      No local packages or working download links found for pytest-runner
      Traceback (most recent call last):
      File "setup.py", line 632, in <module>
      setup(**args)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/_init_.py", line 139, in setup
      _install_setup_requires(attrs)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/_init_.py", line 134, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
      replace_conflicting=True,
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 777, in resolve
      replace_conflicting=replace_conflicting
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 1060, in best_match
      return self.obtain(req, installer)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 1072, in obtain
      return installer(requirement)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
      return cmd.easy_install(req)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 670, in easy_install
      raise DistutilsError(msg)
      distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
      Download error on https://pypi.org/simple/pytest-runner/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) – Some packages may not be found!
      Couldn't find index page for 'pytest-runner' (maybe misspelled?)
      Download error on https://pypi.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) – Some packages may not be found!
      No local packages or working download links found for pytest-runner
      Traceback (most recent call last):
      File "setup.py", line 632, in <module>
      setup(**args)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/_init_.py", line 139, in setup
      _install_setup_requires(attrs)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/_init_.py", line 134, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
      replace_conflicting=True,
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 777, in resolve
      replace_conflicting=replace_conflicting
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 1060, in best_match
      return self.obtain(req, installer)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/pkg_resources/_init_.py", line 1072, in obtain
      return installer(requirement)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
      return cmd.easy_install(req)
      File "/Users/travis/build/mineo/picard/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 670, in easy_install
      raise DistutilsError(msg)
      distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
      Collecting PyInstaller==3.4 (from -r requirements-build.txt (line 1))
      Downloading https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz (3.5MB)
      100% |████████████████████████████████| 3.5MB 3.8MB/s
      Installing build dependencies ... done
      Requirement already satisfied: setuptools in ./lib/python3.6/site-packages (from PyInstaller==3.4->-r requirements-build.txt (line 1)) (40.4.3)
      Collecting pefile>=2017.8.1 (from PyInstaller==3.4->-r requirements-build.txt (line 1))
      Downloading https://files.pythonhosted.org/packages/ed/cc/157f20038a80b6a9988abc06c11a4959be8305a0d33b6d21a134127092d4/pefile-2018.8.8.tar.gz (62kB)
      100% |████████████████████████████████| 71kB 7.5MB/s
      Collecting macholib>=1.8 (from PyInstaller==3.4->-r requirements-build.txt (line 1))
      Downloading https://files.pythonhosted.org/packages/41/f1/6d23e1c79d68e41eb592338d90a33af813f98f2b04458aaf0b86908da2d8/macholib-1.11-py2.py3-none-any.whl
      Collecting altgraph (from PyInstaller==3.4->-r requirements-build.txt (line 1))
      Downloading https://files.pythonhosted.org/packages/0a/cc/646187eac4b797069e2e6b736f14cdef85dbe405c9bfc7803ef36e4f62ef/altgraph-0.16.1-py2.py3-none-any.whl
      Collecting future (from pefile>=2017.8.1->PyInstaller==3.4->-r requirements-build.txt (line 1))
      Downloading https://files.pythonhosted.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz (824kB)
      100% |████████████████████████████████| 829kB 6.7MB/s
      Building wheels for collected packages: PyInstaller, pefile, future
      Running setup.py bdist_wheel for PyInstaller ... done
      Stored in directory: /Users/travis/Library/Caches/pip/wheels/09/ee/0a/94ef5d39074625f49e2e9cf97ac30cb7a87e1a7458ed195b8d
      Running setup.py bdist_wheel for pefile ... done
      Stored in directory: /Users/travis/Library/Caches/pip/wheels/d9/c6/56/a372ee1059440413d55d13f78adfd16c8719553a5b4efdd0c1
      Running setup.py bdist_wheel for future ... done
      Stored in directory: /Users/travis/Library/Caches/pip/wheels/bf/c9/a3/c538d90ef17cf7823fa51fc701a7a7a910a80f6a405bf15b1a
      Successfully built PyInstaller pefile future
      Installing collected packages: future, pefile, altgraph, macholib, PyInstaller
      Successfully installed PyInstaller-3.4 altgraph-0.16.1 future-0.16.0 macholib-1.11 pefile-2018.8.8
      69 INFO: PyInstaller: 3.4
      70 INFO: Python: 3.6.6
      74 INFO: Platform: Darwin-15.6.0-x86_64-i386-64bit
      78 INFO: UPX is not available.
      85 INFO: Extending PYTHONPATH with paths
      ['/Users/travis/build/mineo/picard', '/Users/travis/build/mineo/picard/picard']
      86 INFO: checking Analysis
      86 INFO: Building Analysis because Analysis-00.toc is non existent
      87 INFO: Initializing module dependency graph...
      89 INFO: Initializing module graph hooks...
      91 INFO: Analyzing base_library.zip ...
      4399 INFO: running Analysis Analysis-00.toc
      4409 INFO: Caching module hooks...
      4415 INFO: Analyzing tagger.py
      7172 INFO: Loading module hooks...
      7173 INFO: Loading module hook "hook-encodings.py"...
      7254 INFO: Loading module hook "hook-pydoc.py"...
      7255 INFO: Loading module hook "hook-PyQt5.py"...
      7370 WARNING: Hidden import "sip" not found!
      7371 INFO: Loading module hook "hook-PyQt5.QtCore.py"...
      7393 INFO: Loading module hook "hook-PyQt5.QtGui.py"...
      7428 INFO: Loading module hook "hook-PyQt5.QtNetwork.py"...
      7489 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...
      7535 INFO: Loading module hook "hook-xml.py"...
      7917 INFO: Looking for ctypes DLLs
      7957 INFO: Analyzing run-time hooks ...
      7966 INFO: Including run-time hook 'pyi_rth_qt5.py'
      7982 INFO: Looking for dynamic libraries
      8288 INFO: Looking for eggs
      8288 INFO: Using Python library /Users/travis/build/mineo/picard/bin/../.Python
      8295 INFO: Warnings written to /Users/travis/build/mineo/picard/build/picard/warn-picard.txt
      8372 INFO: Graph cross-reference written to /Users/travis/build/mineo/picard/build/picard/xref-picard.html
      8396 INFO: Appending 'binaries' from .spec
      8396 INFO: Appending 'datas' from .spec
      Unable to find "build/locale/af/LC_MESSAGES/picard.mo" when adding binary and data files.
      ditto: can't get real path for source 'MusicBrainz Picard.app'
      rm: MusicBrainz Picard.app: No such file or directory
      mv: rename MusicBrainz Picard.tmp to MusicBrainz Picard.app: No such file or directory
      hdiutil: create failed - No such file or directory

            outsidecontext Philipp Wolfer
            mineo Wieland Hoffmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2.1.2