-
-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: Convolution C extension is missing. Try re-building astropy. #271
Comments
hi jelle, there seems to be an issue that is raised with the new version of the
let me know if this fixes it and I will update the environment.yml file in the repo |
Thanks for your reply! I will try to reinstall the environment right away. |
In the previous occasions that I installed the environment it took about 5-10 min. However, now it is still running for 38 min. Is that how it is supposed to be? |
oh should be too much to process for conda. |
Hi Kilian, It worked! The errors are no longer showing and it seems to download the example images! |
great! will need to update the doco, did you end up entering the conda install commands for each package? |
Yep! Ik ran each package separately after creating an empty environment. |
easier way to install the environment based on issue #271
I've updated the changes on how to install the environment in the dev branch, will close here for now |
Hi @kvos,
I'm having a hard time getting the initial settings to work.
The following errors are prompt:
import os
import numpy as np
import pickle
import warnings
warnings.filterwarnings("ignore")
import matplotlib
matplotlib.use('Qt5Agg')
import matplotlib.pyplot as plt
from matplotlib import gridspec
plt.ion()
import pandas as pd
from datetime import datetime
from coastsat import SDS_download, SDS_preprocess, SDS_shoreline, SDS_tools, SDS_transects
OSError Traceback (most recent call last)
~\Anaconda3\envs\coastsat\lib\site-packages\astropy\convolution\convolve.py in
24 try:
---> 25 _convolve = load_library("_convolve", LIBRARY_PATH)
26 except Exception:
~\Anaconda3\envs\coastsat\lib\site-packages\numpy\ctypeslib.py in load_library(libname, loader_path)
153 ## if no successful return in the libname_ext loop:
--> 154 raise OSError("no file with expected extension")
155
OSError: no file with expected extension
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_20324\3769660273.py in
11 import pandas as pd
12 from datetime import datetime
---> 13 from coastsat import SDS_download, SDS_preprocess, SDS_shoreline, SDS_tools, SDS_transects
~\CoastSat-master\coastsat\SDS_download.py in
30
31 # CoastSat modules
---> 32 from coastsat import SDS_preprocess, SDS_tools, gdal_merge
33
34 np.seterr(all='ignore') # raise/ignore divisions by 0 and nans
~\CoastSat-master\coastsat\SDS_preprocess.py in
27
28 # CoastSat modules
---> 29 from coastsat import SDS_tools
30
31 np.seterr(all='ignore') # raise/ignore divisions by 0 and nans
~\CoastSat-master\coastsat\SDS_tools.py in
16 from shapely import geometry
17 import skimage.transform as transform
---> 18 from astropy.convolution import convolve
19
20 np.seterr(all='ignore') # raise/ignore divisions by 0 and nans
~\Anaconda3\envs\coastsat\lib\site-packages\astropy\convolution_init_.py in
6 from .utils import discretize_model, KernelSizeError # noqa
7
----> 8 from .convolve import convolve, convolve_fft, interpolate_replace_nans, convolve_models, convolve_models_fft # noqa
9
10 # Deprecated kernels that are not defined in all
~\Anaconda3\envs\coastsat\lib\site-packages\astropy\convolution\convolve.py in
25 _convolve = load_library("_convolve", LIBRARY_PATH)
26 except Exception:
---> 27 raise ImportError("Convolution C extension is missing. Try re-building astropy.")
28
29 # The GIL is automatically released by default when calling functions imported
ImportError: Convolution C extension is missing. Try re-building astropy.
To resolve the errors I have already done the steps as suggested in #42, although the earthengine authentication happened without any problems. Furthermore, I tried to reinstall anaconda, created multiple new environments and downloaded a new folder of CoastSat-master. Still the same issues raise. Do you perhaps have any idea how to get it working?
Thanks!
Best, Jelle
The text was updated successfully, but these errors were encountered: