Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] dev-python/astor-0.7.1 fails no attribute 'split'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
soparla
n00b
n00b


Joined: 21 Aug 2018
Posts: 72
Location: Florida

PostPosted: Fri Nov 01, 2019 3:46 am    Post subject: [SOLVED] dev-python/astor-0.7.1 fails no attribute 'split' Reply with quote

New to Python and been trying to figure out why astor is failing to emerge for me with build log:
Code:

cat /var/tmp/portage/dev-python/astor-0.7.1/temp/build.log
 * Package:    dev-python/astor-0.7.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:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking astor-0.7.1.tar.gz to /var/tmp/portage/dev-python/astor-0.7.1/work
>>> Source unpacked in /var/tmp/portage/dev-python/astor-0.7.1/work
>>> Preparing source in /var/tmp/portage/dev-python/astor-0.7.1/work/astor-0.7.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/astor-0.7.1/work/astor-0.7.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/astor-0.7.1/work/astor-0.7.1 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 17, in <module>
    setup(**config['options'])
  File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 447, in __init__
    k: v for k, v in attrs.items()
  File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 735, in finalize_options
    ep.load()(self, ep.name, value)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 291, in check_specifier
    packaging.specifiers.SpecifierSet(value)
  File "/usr/lib64/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.py", line 594, in __init__
    specifiers = [s.strip() for s in specifiers.split(",") if s.strip()]
AttributeError: 'SpecifierSet' object has no attribute 'split'
 * ERROR: dev-python/astor-0.7.1::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 2621:  Called distutils-r1_src_compile
 *   environment, line  810:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  323:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2165:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1525:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1523:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  526:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  801:  Called distutils-r1_python_compile
 *   environment, line  669:  Called esetup.py 'build'
 *   environment, line 1069:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";


dev-python/setuptools-41.5.0

Help is more than appreciated.


Last edited by soparla on Tue Dec 03, 2019 4:49 am; edited 4 times in total
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1216
Location: Massachusetts USA

PostPosted: Fri Nov 01, 2019 5:01 am    Post subject: Reply with quote

See bug 696982 . From the bug report
Quote:
This error does not happen if setuptools is downgraded to 41.2.0
Back to top
View user's profile Send private message
soparla
n00b
n00b


Joined: 21 Aug 2018
Posts: 72
Location: Florida

PostPosted: Sat Nov 02, 2019 7:02 pm    Post subject: [solved] dev-python/astor-0.7.1 fails no attribute 'split' Reply with quote

jburns wrote:
See bug 696982 . From the bug report
Quote:
This error does not happen if setuptools is downgraded to 41.2.0


Thanks much! That was it and I should have known better but to search for a bug first :)
Back to top
View user's profile Send private message
soparla
n00b
n00b


Joined: 21 Aug 2018
Posts: 72
Location: Florida

PostPosted: Sun Dec 01, 2019 12:59 am    Post subject: Reply with quote

This is back for me today after I reinstalled Gentoo due to a hard drive failure and I can't simply fix it given the ebuild for setuptools v41.2.0 is not around anymore:
https://packages.gentoo.org/packages/dev-python/setuptools

I've tried unstable v41.5.1 and stable v40.6.3 without any luck. Any hints on how we can get astro installed?
Back to top
View user's profile Send private message
soparla
n00b
n00b


Joined: 21 Aug 2018
Posts: 72
Location: Florida

PostPosted: Tue Dec 03, 2019 4:49 am    Post subject: Reply with quote

:oops:

I setup myself a localrepo for portage and pulled in the patch from Stefan as explained in the bug:
https://github.com/stefantalpalaru/gentoo-overlay/tree/master/dev-python/astor

That got me back up and going.

To setup your own protage localrepo follow the steps here:
https://wiki.gentoo.org/wiki/Custom_repository
https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/CustomTree#Defining_a_custom_repository
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum