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.

convolution cannot be imported

See original GitHub issue
✔ ~/munka/devel/astropy [hacking|✚ 1⚑ 14] $ python -c "from astropy import convolution"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/bsipocz/munka/devel/astropy/astropy/convolution/__init__.py", line 10, in <module>
    from .convolve import convolve, convolve_fft, interpolate_replace_nans, convolve_models
  File "/Users/bsipocz/munka/devel/astropy/astropy/convolution/convolve.py", line 28, in <module>
    lib_path = glob.glob(os.path.join(os.path.dirname(__file__), 'lib_convolve*'))[0]
IndexError: list index out of range

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
astrofrogcommented, Oct 30, 2018

This is due to the refactoring of the convolution code. I think we should just remove the call to faulthandler, it’s not actually needed for the convolution code. And I agree that we should basically make sure the error message when importing for the source tree is the same as for other extensions. I’ll open a PR.

0reactions
jamienosscommented, Oct 30, 2018

lib_convolve.py is also produced on windows via ./setup install.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - keras - cannot import name Conv2D - Stack Overflow
Try this: from keras.layers.convolutional import Conv2D. Importing changed with the new keras. Are you sure you are not using keras >= 2?
Read more >
tf.keras.layers.DepthwiseConv2D | TensorFlow v2.11.0
Depthwise convolution is a type of convolution in which each input channel is convolved with a different kernel (called a depthwise kernel).
Read more >
scipy.signal.convolve2d — SciPy v1.9.3 Manual
Compute the gradient of an image by 2D convolution with a complex Scharr operator. (Horizontal operator is real, vertical is imaginary.) ...
Read more >
Nengo convolution error - General Discussion
Hi all, I tried to run the Convolutional Networks example in the NengoLoihi and this error is ... ImportError: cannot import name 'multiply'....
Read more >
VPI - Vision Programming Interface: 2D Image Convolution
The 2D Image Convolution application outputs an image with the edges ... 94 // We can't use cv::IMREAD_GRAYSCALE when opening the input file ......
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