Comments (7)
Solution appears to be to upgrade freetype library (installed by conda) to version 2.10.0. Apparently the opencv installation in conda doesn't have this pre-requiste set properly.
from astrowidgets.
I think there is still an issue here: conda install open can is not requiring the right version of free type. It may be that the best we can do here is clearly document how to get opencv working.
Letβs keep this open at least until a doc update Iβm planning for later today.
Will also try to look at the opencv conda package. @JuanCab β can you check where your opencv is coming from: conda list opencv
from astrowidgets.
opencv
itself isn't a Python library, right? Updating with conda like you did seems like the right way to go. Seems like it is solved on your end. I don't think we should force users to install it, as in the future, Ginga will not be the only backend that AstroImage
would support. Please close the issue if there is nothing else that needs to be fixed in this regard. Thanks!
from astrowidgets.
I don't want to close this yet. The cause is not an astrowidgets
issue, but the clarity of the error message is. I have already posted to the conda-forge
opencv
github issues page about the problem with the bad freetype
dependency. In a nutshell, I updated opencv
to the conda-forge
version (which was 4.1.0) from the default
channel version (3.4.2) and it didn't catch that freetype
needed to be updated as well.
A clearer error message might make sense (at least echo back the error message from the import cv2
command).
from astrowidgets.
Nice sleuthing over at conda-forge/opencv-feedstock#174, @JuanCab! I think for now I'll add a note to the documentation about installing opencv. The only reason I'm hesitant to make opencv a hard requirement is that install with pip looks a little painful (there is a package called opencv-python that provides binary wheels but it isn't quite the same as installing opencv from source or from conda-forge).
from astrowidgets.
@JuanCab -- can you https://github.com/astropy/astrowidgets/pull/91/files#diff-62c330cd8da31d476bb63b51bb8b1307 take a look at https://github.com/astropy/astrowidgets/pull/91/files#diff-62c330cd8da31d476bb63b51bb8b1307 and let me know if you think it is adequate for now?
from astrowidgets.
closed by #91
from astrowidgets.
Related Issues (20)
- Change marker from a dictionary to a class or `namedtuple`, and change the name from `marker` to `marker_style` HOT 2
- Zoom: Why two ways to do the same thing? HOT 6
- Setting stretch as a string is problematic if the stretch requires a parameter HOT 5
- Coordinates in cursor display may not be RA/Dec HOT 12
- TST: devdeps broken due to jinja2 and markupsafe conflicts HOT 1
- TST: devdeps broken because _mouse_click_cb creates canvas object with coord being None HOT 4
- deprecation of 'raDegToString' from 'ginga.util.wcs' HOT 6
- TST: image.stretch setter fails with Ginga dev HOT 2
- File loading: Just have one "load" method and let backend decide on its own what to load
- Move backend specific implementations out of this repo
- Integration test with backends and instruction for downstream testing
- Policy on how backend can propose API changes to established Protocol HOT 2
- Add more types to the protocol HOT 1
- INFO: Ginga marker parameters HOT 1
- INFO: bqplot marker properties
- INFO: matplotlib marker properties
- INFO: ds9 marker parameters HOT 1
- Would hide_markers method be useful?
- Refactor the test `test_marking_operations`
- Add Zenodo badge after the next GitHub Release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astrowidgets.