colour-science / colour-demosaicing

CFA (Colour Filter Array) demosaicing algorithms for Python
https://www.colour-science.org
BSD 3-Clause "New" or "Revised" License
285 stars 58 forks source link

Is "colour-demosaicing" available in Anaconda? #15

Closed mrgransky closed 4 years ago

mrgransky commented 4 years ago

I would like to use colour_demosaicing in my python script as follows: from colour_demosaicing import demosaicing_CFA_Bayer_bilinear as demosaic I installed colour-science with conda install -c conda-forge colour-science but I get the following error:

Traceback (most recent call last):
  File "robotcar.py", line 12, in <module>
    from colour_demosaicing import demosaicing_CFA_Bayer_bilinear as demosaic
ImportError: No module named colour_demosaicing

Is there any other package library I should install in conda env to import colour_demosaicing ?

KelSolaar commented 4 years ago

Hi @mrgransky,

You should actually install colour-demosaicing, colour-science is one of the base package required by colour-demosaicing.

Cheers,

Thomas

mrgransky commented 4 years ago

I can't find this package: anaconda

I only find these packages in Anaconda: color_anaconda

Is there something I am missing in here? Cheers,

KelSolaar commented 4 years ago

Oh sorry, this one is not on Conda! Pip only!

mrgransky commented 4 years ago

is there any workaround for this ? I can't use pip install colour-demosaicing cuz it's a univ computer and I don't have sudo priviledge!

KelSolaar commented 4 years ago

Oh, I see now!

mrgransky commented 4 years ago

tnx dude! This is what I did as u suggested:

$ conda activate my_env
$ pip install colour-demosaicing
$ python
Python 2.7.17 |Anaconda, Inc.| (default, Oct 21 2019, 19:04:46) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from colour_demosaicing import demosaicing_CFA_Bayer_bilinear as demosaic

Appreciate ur help!

KelSolaar commented 4 years ago

Can you double-check that the package is effectively being installed in my_env, by the look of it, it seems that it is not the case!

mrgransky commented 4 years ago

let's say my_env is py27_gpu and I do the followings: conda

which says, I have installed colour_demosaicing from pypi! I can also successfully import colour_demosaicing from my python script!

KelSolaar commented 4 years ago

So it is working, right?

mrgransky commented 4 years ago

yes :+1:

KelSolaar commented 4 years ago

Glad to hear! :) Closing this one then!