Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/test_integration.py test_jupyter_appnope_env_markers fails with ipykernel 5.0.0 release #561

Closed
jsirois opened this issue Sep 27, 2018 · 2 comments
Assignees
Labels

Comments

@jsirois
Copy link
Member

jsirois commented Sep 27, 2018

As seen in CI:

=================================== FAILURES ===================================
_______________________ test_jupyter_appnope_env_markers _______________________
    @pytest.mark.skipif(NOT_CPYTHON27)
    def test_jupyter_appnope_env_markers():
      res = run_pex_command(['--disable-cache',
                             'jupyter==1.0.0',
                             '-c', 'jupyter',
                             '--',
                             '--version'])
>     res.assert_success()
tests/test_integration.py:882: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = results(output=[], return_code=None, exception=Untranslateable("Package Source...able by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)\n')
    def assert_success(self):
      if not (self.exception is None and self.return_code in [None, 0]):
        raise AssertionError(
          'integration test failed: return_code=%s, exception=%r, output=%s, traceback=%s' % (
>           self.return_code, self.exception, self.output, self.traceback
          )
        )
E       AssertionError: integration test failed: return_code=None, exception=Untranslateable("Package SourcePackage(u'https://files.pythonhosted.org/packages/e1/cb/0129f461e8a4823fe662df4992d6ce8a0b593a5e86c6de78d4b882a0cf44/ipykernel-5.0.0.tar.gz#sha256=3e0ffdf545c0bf80d9dab6523ec6829831408c474772487aeb6eb9f0348b6a1e') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)",), output=[], traceback=Traceback (most recent call last):
E         File "/home/travis/build/pantsbuild/pex/.tox/py27-integration/lib/python2.7/site-packages/pex/testing.py", line 258, in run_pex_command
E           main(args=args)
E         File "/home/travis/build/pantsbuild/pex/.tox/py27-integration/lib/python2.7/site-packages/pex/bin/pex.py", line 737, in main
E           pex_builder = build_pex(reqs, options, resolver_options_builder)
E         File "/home/travis/build/pantsbuild/pex/.tox/py27-integration/lib/python2.7/site-packages/pex/bin/pex.py", line 667, in build_pex
E           for dist in resolveds:
E         File "/home/travis/build/pantsbuild/pex/.tox/py27-integration/lib/python2.7/site-packages/pex/resolver.py", line 527, in resolve_multi
E           use_manylinux=use_manylinux):
E         File "/home/travis/build/pantsbuild/pex/.tox/py27-integration/lib/python2.7/site-packages/pex/resolver.py", line 453, in resolve
E           return resolver.resolve(resolvables_from_iterable(requirements, builder))
E         File "/home/travis/build/pantsbuild/pex/.tox/py27-integration/lib/python2.7/site-packages/pex/resolver.py", line 248, in resolve
E           dist = self.build(package, resolvable.options)
E         File "/home/travis/build/pantsbuild/pex/.tox/py27-integration/lib/python2.7/site-packages/pex/resolver.py", line 206, in build
E           raise Untranslateable('Package %s is not translateable by %s' % (package, translator))
E       Untranslateable: Package SourcePackage(u'https://files.pythonhosted.org/packages/e1/cb/0129f461e8a4823fe662df4992d6ce8a0b593a5e86c6de78d4b882a0cf44/ipykernel-5.0.0.tar.gz#sha256=3e0ffdf545c0bf80d9dab6523ec6829831408c474772487aeb6eb9f0348b6a1e') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
.tox/py27-integration/lib/python2.7/site-packages/pex/testing.py:229: AssertionError
========= 1 failed, 41 passed, 3 skipped, 1 xfailed in 344.62 seconds ==========
ERROR: InvocationError for command '/home/travis/build/pantsbuild/pex/.tox/py27-integration/bin/py.test tests/test_integration.py -vvs' (exited with code 1)
___________________________________ summary ____________________________________
ERROR:   py27-integration: commands failed
@jsirois
Copy link
Member Author

jsirois commented Sep 27, 2018

Nice:

**** Failed to install ipykernel-5.0.0 (caused by: NonZeroExit("received exit code 1 during execution of `['/home/jsirois/dev/pantsbuild/jsirois-pex/.tox/py27-integration/bin/python2.7', '-', 'bdist_wheel', '--dist-dir=/tmp/tmpFNtBhu']` while trying to execute `['/home/jsirois/dev/pantsbuild/jsirois-pex/.tox/py27-integration/bin/python2.7', '-', 'bdist_wheel', '--dist-dir=/tmp/tmpFNtBhu']`",)
):
stdout:

stderr:
ERROR: ipykernel requires Python version 3.4 or above.

@jsirois
Copy link
Member Author

jsirois commented Sep 27, 2018

Super nice, after pinning ipykernel<5:

pex: Building pex :: Resolving distributions :: Translating /tmp/tmp0DCqUV/ipython-7.0.1.tar.gz into distribution                                                                                                                                                                             **** Failed to install ipython-7.0.1 (caused by: NonZeroExit("received exit code 1 during execution of `['/home/jsirois/dev/pantsbuild/jsirois-pex/.tox/py27-integration/bin/python2.7', '-', 'bdist_wheel', '--dist-dir=/tmp/tmpxTWsyR']` while trying to execute `['/home/jsirois/dev/pantsbuild/jsirois-pex/.tox/py27-integration/bin/python2.7', '-', 'bdist_wheel', '--dist-dir=/tmp/tmpxTWsyR']`",)
):
stdout:

stderr:

IPython 7.0+ supports Python 3.5 and above.
When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
Python 3.3 and 3.4 were supported up to IPython 6.x.

See IPython `README.rst` file for more information:

    https://github.com/ipython/ipython/blob/master/README.rst

Python sys.version_info(major=2, minor=7, micro=15, releaselevel='final', serial=0) detected.




pex: Failed to install package at /tmp/tmpY15L8F/ipython-7.0.1: Failed to install /tmp/tmpY15L8F/ipython-7.0.1

jsirois added a commit to jsirois/pex that referenced this issue Sep 27, 2018
jsirois added a commit that referenced this issue Sep 27, 2018
stuhood pushed a commit to pantsbuild/pants that referenced this issue Sep 28, 2018
### Problem

As described in pex-tool/pex#561, jupyter's transitive deps float. Today that caused breakage.

### Solution

Pin the relevant deps (ht John in pex-tool/pex#562).
stuhood pushed a commit to pantsbuild/pants that referenced this issue Sep 28, 2018
### Problem

As described in pex-tool/pex#561, jupyter's transitive deps float. Today that caused breakage.

### Solution

Pin the relevant deps (ht John in pex-tool/pex#562).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant