Couldn't import convolution after python update to 3.7.4
See original GitHub issueAfter last conda revision:
2019-08-12 16:24:32 (rev 57)
anaconda {2019.07 -> custom}
bokeh {1.2.0 -> 1.3.4}
ca-certificates {2019.5.15 -> 2019.5.15}
certifi {2019.6.16 -> 2019.6.16}
chardet {3.0.4 -> 3.0.4}
dask {2.1.0 -> 2.2.0}
dask-core {2.1.0 -> 2.2.0}
distributed {2.1.0 -> 2.2.0}
docutils {0.14 -> 0.15.1}
importlib_metadata {0.17 -> 0.19}
ipython {7.6.1 -> 7.7.0}
ipywidgets {7.5.0 -> 7.5.1}
json5 {0.8.4 -> 0.8.5}
jupyterlab_server {1.0.0 -> 1.0.0}
more-itertools {7.0.0 -> 7.2.0}
pandas {0.24.2 -> 0.25.0}
pytest-remotedata {0.3.1 -> 0.3.2}
python {3.7.3 -> 3.7.4}
python-libarchive-c {2.8 -> 2.8}
qtconsole {4.5.1 -> 4.5.2}
soupsieve {1.8 -> 1.9.2}
statsmodels {0.10.0 -> 0.10.1}
wurlitzer {1.0.2 -> 1.0.3}
zipp {0.5.1 -> 0.5.2}
+_anaconda_depends-2019.03
+fsspec-0.4.0
+tbb-2019.4
Couldn’t import convolution anymore:
from astropy.convolution import *
7.4.0
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
/opt/anaconda/lib/python3.7/site-packages/astropy/convolution/convolve.py in <module>
26 try:
---> 27 _convolve = load_library("_convolve", LIBRARY_PATH)
28 except Exception:
/opt/anaconda/lib/python3.7/site-packages/numpy/ctypeslib.py in load_library(libname, loader_path)
156 ## if no successful return in the libname_ext loop:
--> 157 raise OSError("no file with expected extension")
158
OSError: no file with expected extension
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
<ipython-input-1-36349150199c> in <module>
----> 1 from astropy.convolution import *
/opt/anaconda/lib/python3.7/site-packages/astropy/convolution/__init__.py in <module>
6 from .utils import discretize_model # noqa
7
----> 8 from .convolve import convolve, convolve_fft, interpolate_replace_nans, convolve_models # noqa
/opt/anaconda/lib/python3.7/site-packages/astropy/convolution/convolve.py in <module>
27 _convolve = load_library("_convolve", LIBRARY_PATH)
28 except Exception:
---> 29 raise ImportError("Convolution C extension is missing. Try re-building astropy.")
30
31 # The GIL is automatically released by default when calling functions imported
ImportError: Convolution C extension is missing. Try re-building astropy.
Probably related to https://github.com/astropy/astropy/issues/8032
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
I cannot import a module to Python 3.7 since it is directed to ...
The Python code you posted seems to be MicroPython code that's intended to run on the ESP32, not on your Raspberry Pi:.
Read more >The Definitive Guide to Conda Environments
Conda environments are like cousins of Python's virtual environments. Both serve to help manage dependencies and isolate projects, ...
Read more >Porting Python 2 Code to Python 3 — Python 3.11.1 ...
Use Futurize (or Modernize) to update your code (e.g. python -m pip install future ) ... Since then users have been encouraged to...
Read more >typing-extensions - PyPI
In typing since Python 3.10. Concatenate (see PEP 612); ParamSpec (see PEP 612; the typing_extensions version supports the default= argument from PEP 696) ......
Read more >Python 3.9: Cool New Features for You to Try
If you rely on the tzdata package, then you should remember to update it from time to time. In particular, you shouldn't leave...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A fix for this is expected to be out later today (once that’s done, we’ll remove the version pinning in ci-helpers, too): https://github.com/ContinuumIO/anaconda-issues/issues/11195
@mroldrobot My apologies, in https://github.com/astropy/astropy/issues/9122#issuecomment-520937808 I wrote
python=3.6.3
when I meantpython=3.7.3
(now edited).I just did as you did on both conda 4.7.10 and 4.7.11 and get the same behavior as I did before in that it works, I can import
astropy.convolution
. I get the same as you when going from python=3.6.3 -> 3.7.4, in that astropy is downgraded (no idea why), however, no such downgrade occurs for the version bump as noted in your opening comment:3.7.3
->3.7.4
.With conda 4.7.11 and
conda create -n astropy-9122 python=3.6.3 astropy;conda activate astropy-9122;conda install python=3.7.4
However, with conda 4.7.10 and 4.7.11 I get no downgrade of astropy for the python update from
3.7.3
->3.7.4
, and I can successfully importastropy.convolution
.