Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635310 - dev-python/cryptography-2.1.1 Invalid environment marker: python_version < '3'
Summary: dev-python/cryptography-2.1.1 Invalid environment marker: python_version < '3'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 630536 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-24 14:54 UTC by cryptopsy
Modified: 2017-10-30 15:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo,3.15 KB, text/plain)
2017-10-24 14:54 UTC, cryptopsy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cryptopsy 2017-10-24 14:54:14 UTC
Created attachment 499862 [details]
emerge --info

* Package:    dev-python/cryptography-2.1.1
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_6 userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * python3_6: running distutils-r1_run_phase python_configure_all
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
error in cryptography setup command: Invalid environment marker: python_version < '3'
 * ERROR: dev-python/cryptography-2.1.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 4088:  Called distutils-r1_src_compile
 *   environment, line 1137:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  349:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3548:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2643:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2641:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  698:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1128:  Called distutils-r1_python_compile
 *   environment, line 1003:  Called esetup.py 'build'
 *   environment, line 1688:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/cryptography-2.1.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/cryptography-2.1.1::gentoo'`.
 * The complete build log is located at '/tmp/.portage/dev-python:cryptography-2.1.1:20171024-174528.log'.
 * For convenience, a symlink to the build log is located at '/tmp/.portage/portage/dev-python/cryptography-2.1.1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/.portage/portage/dev-python/cryptography-2.1.1/temp/environment'.
 * Working directory: '/tmp/.portage/portage/dev-python/cryptography-2.1.1/work/cryptography-2.1.1'
 * S: '/tmp/.portage/portage/dev-python/cryptography-2.1.1/work/cryptography-2.1.1'
Comment 1 Mike Gilbert gentoo-dev 2017-10-24 15:47:17 UTC
You probably have some other broken package installed. Try grepping for that string in /usr/lib64/python2.7/site-packages/*/requires.txt.
Comment 2 cryptopsy 2017-10-24 15:56:54 UTC
grep python_version /usr/lib64/python2.7/site-packages/*/requires.txt

/usr/lib64/python2.7/site-packages/requests-2.18.4-py2.7.egg-info/requires.txt:[socks:sys_platform == "win32" and (python_version == "2.7" or python_version == "2.6")]
Comment 3 cryptopsy 2017-10-24 16:02:20 UTC
 eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7
Comment 4 Mike Gilbert gentoo-dev 2017-10-24 16:19:43 UTC
What version of python:2.7 and setuptools do you have installed? If they are out of date, please try upgrading to the latest ~arch versions.
Comment 5 cryptopsy 2017-10-25 17:01:53 UTC
dev-lang/python
     (2.7)  2.7.14
     (3.6)  (~)3.6.3(3.6/3.6m)
dev-python/setuptools
     (~)36.6.0
     PYTHON_TARGETS="python2_7 python3_6"
Comment 6 cryptopsy 2017-10-26 08:16:16 UTC
cryptography-2.0.3 builds no problems
Comment 7 Mike Gilbert gentoo-dev 2017-10-26 14:11:53 UTC
Sorry, but I am unable to reproduce this.
Comment 8 cryptopsy 2017-10-29 16:12:32 UTC
The same for the now released 2.1.2
Comment 9 Mike Gilbert gentoo-dev 2017-10-29 16:36:05 UTC
*** Bug 630536 has been marked as a duplicate of this bug. ***
Comment 10 Mike Gilbert gentoo-dev 2017-10-29 16:39:14 UTC
Perhaps you have some other version of setuptools installed via a method outside of portage's control. Look for setuptools*.egg-info in /usr/lib64/python2.7/site-packages.
Comment 11 cryptopsy 2017-10-30 09:38:03 UTC
There was a setuptools-15.2-py2.7.egg , what do these egg files do?
Comment 12 Mike Gilbert gentoo-dev 2017-10-30 15:10:53 UTC
It's a zip file containing an old version of setuptools. I suggest removing it.