Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 516434

Summary: dev-python/pygame-1.9.2_pre20120101-r2 - python3.3 setup.py build: TypeError: unorderable types: NoneType() < str()
Product: Gentoo Linux Reporter: Markus Walter <gentoo>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: pacho, paolo.pedroni
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info
patch to remove problematic nop

Description Markus Walter 2014-07-05 12:04:28 UTC
Created attachment 380226 [details]
build log

On my hardened ~amd64 box I see the following error.

>>> Compiling source in /var/tmp/portage/dev-python/pygame-1.9.2_pre20120101-r2/work/pygame-1.9.2_pre20120101 ...
 * python3_3: running distutils-r1_run_phase python_compile
 * python2_7: running distutils-r1_run_phase python_compile
/usr/bin/python3.3 setup.py build
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 104, in <module>
    import bdist_mpkg_support
  File "/var/tmp/portage/dev-python/pygame-1.9.2_pre20120101-r2/work/pygame-1.9.2_pre20120101-python3_3/bdist_mpkg_support.py", line 4, in <module>
    pkg_resources.require('bdist_mpkg>=0.4.2')
  File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 742, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 624, in resolve
    env = Environment(self.entries)
  File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 799, in __init__
    self.scan(search_path)
  File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 829, in scan
    self.add(dist)
  File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 849, in add
    dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
TypeError: unorderable types: NoneType() < str()
Comment 1 Markus Walter 2014-07-05 12:04:38 UTC
Created attachment 380228 [details]
emerge --info
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2014-07-07 02:01:32 UTC
~/cvsPortage/gentoo-x86/dev-python/pygame $ ebuild pygame-1.9.2_pre20120101-r2.ebuild clean compile

>>> Source compiled.

So could not replicate and it's not a bug but something different in your system.  You have the same Python 3.3.5, not that, so perhaps some other version conflict or outside chance a gcc flag setting but I doubt it.
Comment 3 Markus Walter 2014-10-19 15:03:05 UTC
Created attachment 386956 [details, diff]
patch to remove problematic nop

I just ran into this issue again on a new setup. I applied the attached patch which fixed the issue for me. The affected functionality is for Mac/Darwin, so I think it would be safe to apply this patch in general.
Comment 4 Mike Gilbert gentoo-dev 2014-10-19 18:21:24 UTC
What version of dev-python/setuptools do you have installed?
Comment 5 Markus Walter 2014-10-19 18:29:36 UTC
(In reply to Mike Gilbert from comment #4)
> What version of dev-python/setuptools do you have installed?

I have setuptools-6.1 installed.
Comment 6 Pacho Ramos gentoo-dev 2015-02-04 22:34:21 UTC
I confirm this
Comment 7 Pacho Ramos gentoo-dev 2015-02-28 18:06:25 UTC
+  28 Feb 2015; Pacho Ramos <pacho@gentoo.org>
+  +files/pygame-1.9.2_pre20120101-import-bdist.patch,
+  -pygame-1.9.2_pre20120101-r1.ebuild, pygame-1.9.2_pre20120101-r2.ebuild:
+  Workaround bug #516434 until a better fix is found (thanks to Markus Oehme),
+  drop old.
+
Comment 8 Tim Harder gentoo-dev 2017-04-27 07:26:21 UTC
This should be fixed in 1.9.3 now in the tree.