Skip to content
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

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

Closed
mrgransky opened this issue Jun 2, 2020 · 11 comments
Closed

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

mrgransky opened this issue Jun 2, 2020 · 11 comments

Comments

@mrgransky
Copy link

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
Copy link
Member

Hi @mrgransky,

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

Cheers,

Thomas

@mrgransky
Copy link
Author

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
Copy link
Member

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

@mrgransky
Copy link
Author

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 KelSolaar changed the title colour_demosaicing in Anaconda Is "colour-demosaicing" available in Anaconda? Jun 3, 2020
@KelSolaar
Copy link
Member

Oh, I see now!

  • If you have a Conda environment activated, you should not need admin rights and pip install colour-demosaicing should work
  • Alternatively, you can try pip install --user colour-demosaicing and it will pull it down locally for your user
  • Alternatively, you could simply pull down the repository and add it to $PYTHONPATH

@mrgransky
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

So it is working, right?

@mrgransky
Copy link
Author

yes 👍

@KelSolaar
Copy link
Member

Glad to hear! :) Closing this one then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants