Comments (6)
Hi @gennadyg,
Can you let us know how you installed the package(s)? I'm not used to seeing the directory where the colour.__init__
module resides on your system.
Cheers,
Thomas
from colour-demosaicing.
Thanks for checking @KelSolaar,
Just followed github description with a following commands:
pip install --user colour-demosaicing
pip install --user colour-science
colour.init located is here on my Win10:
c:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour_init.py
Thanks.
from colour-demosaicing.
Cool!
Note that technically, only pip install --user colour-demosaicing
should be needed as it will pull-down colour-science-0.3.16
as a dependency.
Would it be possible to print sys.path
from within your script and check that c:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-package
is effectively listed?
At the top of your script:
import sys
from pprint import pprint
pprint(sys.path)
from colour-demosaicing.
Hi @KelSolaar
That what I'm getting from output in VS code(also added "import colour"):
['c:\\IdeaProjects\\spark-rosbag\\src\\spark\\raw12_converter', 'C:\\Program ' 'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\\python37.zip', 'C:\\Program ' 'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\\DLLs', 'C:\\Program ' 'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\\lib', 'C:\\Program ' 'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0', 'C:\\Users\\gegilin\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages', 'C:\\Users\\gegilin\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\win32', 'C:\\Users\\gegilin\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\win32\\lib', 'C:\\Users\\gegilin\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\Pythonwin', 'C:\\Program ' 'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\\lib\\site-packages'] PS C:\IdeaProjects\spark-rosbag\src\spark\raw12_converter> c:; cd 'c:\IdeaProjects\spark-rosbag\src\spark\raw12_converter'; & 'C:\Users\gegilin\AppData\Local\Microsoft\WindowsApps\python.exe' 'c:\Users\gegilin\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\lib\python\debugpy\launcher' '56550' '--' 'c:\IdeaProjects\spark-rosbag\src\spark\raw12_converter\Colour-demosaic-test.py' Traceback (most recent call last): File "c:\IdeaProjects\spark-rosbag\src\spark\raw12_converter\Colour-demosaic-test.py", line 3, in <module> import colour File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\__init__.py", line 57, in <module> from .adaptation import (CHROMATIC_ADAPTATION_METHODS, File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\adaptation\__init__.py", line 39, in <module> File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\adaptation\fairchild1990.py", line 23, in <module> PS C:\IdeaProjects\spark-rosbag\src\spark\raw12_converter> c:; cd 'c:\IdeaProjects\spark-rosbag\src\spark\raw12_converter'; & 'C:\Users\gegilin\AppData\Local\Microsoft\WindowsApps\python.exe' 'c:\Users\gegilin\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\lib\python\debugpy\launcher' '56566' '--' 'c:\IdeaProjects\spark-rosbag\src\spark\raw12_converter\Colour-demosaic-test.py' Traceback (most recent call last): File "c:\IdeaProjects\spark-rosbag\src\spark\raw12_converter\Colour-demosaic-test.py", line 3, in <module> import colour File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\__init__.py", line 57, in <module> from .adaptation import (CHROMATIC_ADAPTATION_METHODS, File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\adaptation\__init__.py", line 39, in <module> from .fairchild1990 import chromatic_adaptation_Fairchild1990 File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\adaptation\fairchild1990.py", line 23, in <module> from colour.algebra import spow File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\algebra\__init__.py", line 16, in <module> from .interpolation import ( File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\algebra\interpolation.py", line 65, in <module> import scipy.interpolate File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\__init__.py", line 130, in <module> from . import _distributor_init File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\_distributor_init.py", line 61, in <module> WinDLL(os.path.abspath(filename)) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py", line 364, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found PS C:\IdeaProjects\spark-rosbag\src\spark\raw12_converter>
Thanks,
from colour-demosaicing.
Hi @gennadyg,
Thanks, this is useful! So after unrolling the last line(s), I got this traceback:
Traceback (most recent call last):
File "c:\IdeaProjects\spark-rosbag\src\spark\raw12_converter\Colour-demosaic-test.py",
line 3, in <module> import colour
File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\__init__.py",
line 57, in <module> from .adaptation import (CHROMATIC_ADAPTATION_METHODS,
File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\adaptation\__init__.py",
line 39, in <module> from .fairchild1990 import chromatic_adaptation_Fairchild1990
File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\adaptation\fairchild1990.py",
line 23, in <module> from colour.algebra import spow
File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\algebra\__init__.py",
line 16, in <module> from .interpolation import (
File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\colour\algebra\interpolation.py",
line 65, in <module> import scipy.interpolate
File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\__init__.py",
line 130, in <module> from . import _distributor_init
File "C:\Users\gegilin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\_distributor_init.py",
line 61, in <module> WinDLL(os.path.abspath(filename))
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py",
line 364, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found
It seems like your Scipy installation is somehow busted. Can you confirm you are able to import scipy
?
Cheers,
Thomas
from colour-demosaicing.
Hi Thomas,
Indeed have some environment problem about Scipy, unable to make import scipy
with the same error, will investigate how to fix this in my environment.
Thanks a lot for pointing this out.
from colour-demosaicing.
Related Issues (17)
- Investigate potential overflows in the complex demosaicing definitions. HOT 3
- Colour shift issue for with Malvar (2004) demosaicing. HOT 2
- Git fatal message upon import. HOT 3
- Is "colour-demosaicing" available in Anaconda? HOT 11
- Is "RCCB" pattern supported? HOT 1
- How to save the image correctly? HOT 1
- How to make demosaicing function return RGB values in [0,1] range? HOT 3
- Menon demosaicing optimization. HOT 2
- Demosaicing does not return clipped values HOT 3
- Why is brightness changing when using the Malvar algorithm? HOT 4
- [BUG]: Exit without throwing an exception HOT 13
- Question regarding Cok (1987) "Constant Hue-Based Interpolation" method. HOT 2
- The dev dependency `pytest-xdist` is always installed HOT 4
- Sphinx documentation API section is empty. HOT 2
- Visible clipping artifacts in highlights with Malvar (2004) and Menon (2007). HOT 6
- Default convolution mode introduces edge effects HOT 3
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 colour-demosaicing.