question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.2rc1 setup.py fails with external astropy_helpers

See original GitHub issue

When I am using external astropy helpers , the setup.py commands hang endlessly trying to rebuild the extension modules. Steps to reproduce on Debian Buster:

  • install python3-astropy-helpers (3.1.1)
  • install the source tarball from pypi
  • set setup.cfg/[ah_bootstrap]/auto_use = False
  • run setup.py
$ python3 setup.py --offline clean 
WARNING: You appear to be trying to import astropy from within a source checkout without building the extension modules first.  Attempting to (re)build extension modules: [astropy]
Rebuilding extension modules / ... [Ctrl-C hit] [Failed]
ERROR: An error occurred while attempting to rebuild the extension modules.  Please try manually running `./setup.py develop` or `./setup.py build_ext --inplace` to see what the issue was.  Extension modules must be successfully compiled and importable in order to import astropy. [astropy]
Traceback (most recent call last):
  File "setup.py", line 15, in <module>
    from astropy_helpers.setup_helpers import setup
ImportError: cannot import name 'setup' from 'astropy_helpers.setup_helpers' (/usr/lib/python3/dist-packages/astropy_helpers/setup_helpers.py)

setup.py develop gives the same error. The script was starting more and more python instances, and filled the memory (I stopped by hitting Ctrl-C after ~24GB). This does not happen when using the internal helpers, and not having the Debian package installed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
bsipoczcommented, May 30, 2019

If it indeed solved the issue, yes please.

1reaction
bsipoczcommented, May 30, 2019

@olebole - the helpers 3.2 version is on pypi, so this should ideally be solved now. I’m also pushing 3.2rc2 to pypi any time now (waiting for CI and wheels).

Read more comments on GitHub >

github_iconTop Results From Across the Web

[fedora-arm] arm rawhide report: 20140712 changes
... requires python-astropy python3-ATpy-0.9.7-5.fc21.noarch requires ... module developers to store their help outside the module system in ...
Read more >
Untitled
... certbot-preferred-chain.patch certbot-readd-setup.py-test.patch ... disruptor.spec dist-git-1.16.tar.gz dist-git.spec distcc-3.2rc1.tar.gz ...
Read more >
EPEL 7 for x86_64 - RPMFind
external · internal · reporters · cbf · cc++ · ccd · ccp4 · cddb · cdk · cereal · archives · details...
Read more >
Comparison between releases Mageia 6 and Mageia cauldron
apache-commons-lang3 Provides a host of helper utilities for the java.lang API ... compizconfig-python Python bindings for compizconfig-settings, 0.8.18.
Read more >
of /pub/linux/fedora/archive/fedora-secondary/updates/21 ...
abrt-addon-python-2.3.0-12.fc21.aarch64.rpm, 2015-10-21 01:01, 100K ... astropy-tools-0.4.5-1.fc21.noarch.rpm, 2015-03-11 22:41, 12K.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found