Even if I have dev-python/python-augeas-0.4.2_pre131218 I get: $ blocks Traceback (most recent call last): File "/usr/lib64/python3.4/site-packages/pkg_resources.py", line 432, in _build_master ws.require(__requires__) File "/usr/lib64/python3.4/site-packages/pkg_resources.py", line 741, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib64/python3.4/site-packages/pkg_resources.py", line 632, in resolve raise VersionConflict(tmpl % args) pkg_resources.VersionConflict: python-augeas 0.4.1 is installed but python-augeas>=0.4.2a0 is required by ['blocks'] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python-exec/python3.4/blocks", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib64/python3.4/site-packages/pkg_resources.py", line 2880, in <module> working_set = WorkingSet._build_master() File "/usr/lib64/python3.4/site-packages/pkg_resources.py", line 434, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib64/python3.4/site-packages/pkg_resources.py", line 447, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib64/python3.4/site-packages/pkg_resources.py", line 798, in __init__ self.scan(search_path) File "/usr/lib64/python3.4/site-packages/pkg_resources.py", line 828, in scan self.add(dist) File "/usr/lib64/python3.4/site-packages/pkg_resources.py", line 848, in add dists.sort(key=operator.attrgetter('hashcmp'), reverse=True) TypeError: unorderable types: NoneType() < str() Looks like it's like older python-augeas still, maybe newer snapshot could help :/ Thanks
pacho. I don't know the 1st. thing about this blocks however, archtester testuser # eix dev-python/python-augeas [I] dev-python/python-augeas Available versions: (~)0.4.1 (~)0.4.2_pre131218 (~)0.5.0 {PYTHON_TARGETS="python2_7 python3_3 python3_4"} Installed versions: 0.5.0(12:41:13 01/04/15)(PYTHON_TARGETS="python2_7 python3_3 python3_4") Homepage: http://augeas.net/ Description: Python bindings for Augeas archtester testuser # eix dev-python/pyparted [I] dev-python/pyparted Available versions: 3.10 (~)3.10-r1 (~)3.10.2^t (~)3.10.3^t 3.10.3-r1 {test PYTHON_TARGETS="python2_7 python3_3 python3_4"} Installed versions: 3.10.3-r1(12:40:18 01/04/15)(-test PYTHON_TARGETS="python2_7 python3_3 python3_4") Homepage: https://github.com/dcantrell/pyparted/ Description: Python bindings for sys-block/parted <You have called the exe script blocks (/usr/bin/blocks) Even if I have dev-python/python-augeas-0.4.2_pre131218 I get: $ blocks > [3] python3.2 [4] python3.3 * [5] python3.4 Traceback (most recent call last): File "/usr/lib/python-exec/python3.3/blocks", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib64/python3.3/site-packages/pkg_resources/__init__.py", line 3018, in <module> working_set = WorkingSet._build_master() File "/usr/lib64/python3.3/site-packages/pkg_resources/__init__.py", line 612, in _build_master ws.require(__requires__) File "/usr/lib64/python3.3/site-packages/pkg_resources/__init__.py", line 918, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib64/python3.3/site-packages/pkg_resources/__init__.py", line 805, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: maintboot [4] python3.3 [5] python3.4 * ditto py3.3 --------------------------------------------------------- however testuser@archtester ~/cvsPortage/gentoo-x86/sys-block/blocks $ python3.3 -m blocks usage: __main__.py [-h] [--debug] command ... positional arguments: command to-lvm (lvmify) Convert to LVM to-bcache Convert to bcache optional arguments: -h, --help show this help message and exit --debug --------------------------------------------------------- testuser@archtester ~/cvsPortage/gentoo-x86/sys-block/blocks $ testuser@archtester ~/cvsPortage/gentoo-x86/sys-block/blocks $ python3.4 -m blocks usage: __main__.py [-h] [--debug] command ... positional arguments: command to-lvm (lvmify) Convert to LVM to-bcache Convert to bcache optional arguments: -h, --help show this help message and exit --debug I think the dev-python/python-augeas-0.5.0 has fixed it, or this would always have worked. . Take it from there I think you can also close this one.
With newer python-augeas-0.5.0 now the error is: $ blocks Traceback (most recent call last): File "/usr/lib/python-exec/python3.4/blocks", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 3018, in <module> working_set = WorkingSet._build_master() File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 612, in _build_master ws.require(__requires__) File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 918, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 790, in resolve env = Environment(self.entries) File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 975, in __init__ self.scan(search_path) File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 1005, in scan self.add(dist) File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 1025, in add dists.sort(key=operator.attrgetter('hashcmp'), reverse=True) TypeError: unorderable types: NoneType() < str()
pacho, the bug exists because the ebuild is in fact broken. from setup.py # See requirements.txt for installable versions install_requires=[ 'maintboot', 'python-augeas >= 0.4.2a0', 'pyparted > 3.10a0'], we need >=dev-python/pyparted-3.10[${PYTHON_USEDEP}] >=dev-python/python-augeas-0.4.2[${PYTHON_USEDEP}] and ofc. dev-python/maintboot which doesn't require and [${PYTHON_USEDEP}] since from blocks-0.1.4_pre131210/blocks/__main__.py subprocess.check_call( ['maintboot', '--pkgs'] maintboot is only called as a script, not imported modules: ~/cvsPortage/gentoo-x86/sys-block/blocks $ eix maintboot No matches found. https://pypi.python.org/pypi/maintboot/0.1.0 It could be a quick and easy ebuild
testuser@archtester ~/cvsPortage/gentoo-x86/dev-python $ which maintboot /usr/bin/maintboot testuser@archtester ~/cvsPortage/gentoo-x86/dev-python $ e Available Python interpreters: [1] python2.6 [2] python2.7 [3] python3.2 [4] python3.3 [5] python3.4 * testuser@archtester ~/cvsPortage/gentoo-x86/dev-python $ blocks usage: blocks [-h] [--debug] command ... positional arguments: command to-lvm (lvmify) Convert to LVM to-bcache Convert to bcache optional arguments: -h, --help show this help message and exit --debug
+ 04 Apr 2015; Pacho Ramos <pacho@gentoo.org> blocks-0.1.4_pre131210-r1.ebuild, + blocks-9999.ebuild: + Fix dependencies (#531050 by Ian Delaney), add support for python 3.4 +