Coder Social home page Coder Social logo

Comments (6)

KelSolaar avatar KelSolaar commented on May 26, 2024

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.

gennadyg avatar gennadyg commented on May 26, 2024

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.

KelSolaar avatar KelSolaar commented on May 26, 2024

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.

gennadyg avatar gennadyg commented on May 26, 2024

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.

KelSolaar avatar KelSolaar commented on May 26, 2024

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.

gennadyg avatar gennadyg commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.