Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516434 - dev-python/pygame-1.9.2_pre20120101-r2 - python3.3 setup.py build: TypeError: unorderable types: NoneType() < str()
Summary: dev-python/pygame-1.9.2_pre20120101-r2 - python3.3 setup.py build: TypeError:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-05 12:04 UTC by Markus Walter
Modified: 2017-04-27 07:26 UTC (History)
2 users (show)

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


Attachments
build log (pygame-1.9.2_pre20120101-r2:20140705-115645.log,47.00 KB, text/plain)
2014-07-05 12:04 UTC, Markus Walter
Details
emerge --info (info.txt,5.81 KB, text/plain)
2014-07-05 12:04 UTC, Markus Walter
Details
patch to remove problematic nop (0001-This-fails-with-a-TypeError-but-offers-no-functional.patch,1.57 KB, patch)
2014-10-19 15:03 UTC, Markus Walter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.