Akascape/CTkColorPicker

Unknown module

Closed this issue ยท 16 comments

Hello, its me again. I have downloaded the original code file and tried to run the code which you wrote in readme, but it showed error "ModuleNotFoundError: No module named 'CTkColorPicker'"

@Nikushavar Paste your python file just outside the CTkColorPicker folder. (where other files like readme and license are present).
This is a type of separate external module (not installable via pip). So you will need the folder everytime for any project.

image
like this? i still get module not found error

@Nikushavar Yes, it should work with this. Check the spellings (Copy the example properly).
Run the file directly using python idle mode.

@Nikushavar Yes, it should work with this. Check the spellings (Copy the example properly). Run the file directly using python idle mode.

I did, still get same error, opened in idle aswell, but it didn't help.

@Nikushavar I fixed the issue, it was just a small mistake in __init__.
Download the new source code and try!

@Nikushavar I fixed the issue, it was just a small mistake in __init__. Download the new source code and try!

thanks alot ! :D

@Nikushavar Is it working now?

@Nikushavar Is it working now?

I am on phone right now, will check soon and tell you ๐Ÿ‘

@Nikushavar Is it working now?
same error sadly

Traceback (most recent call last):
  File "h:\DOWNLOAD\CTkColorPicker-main\CTkColorPicker-main\main.py", line 2, in <module>
    from CTkColorPicker import AskColor
  File "h:\DOWNLOAD\CTkColorPicker-main\CTkColorPicker-main\CTkColorPicker\__init__.py", line 10, in <module>       
    from .ctk_color_picker import AskColor
  File "h:\DOWNLOAD\CTkColorPicker-main\CTkColorPicker-main\CTkColorPicker\ctk_color_picker.py", line 6, in <module>
    from colour import Color
ModuleNotFoundError: No module named 'colour'```

@Nikushavar The first module error is fixed but this is a different module error. I have also fixed that.
This time I am sure it will work. Please try ๐Ÿ˜“

@Nikushavar The first module error is fixed but this is a different module error. I have also fixed that. This time I am sure it will work. Please try ๐Ÿ˜“

here's screenshot from my file manager, idk if problem is incoming from there:
image

There's weird thing, so in vscode it actually shows that CTkColorPicker was found:
image
but when i am trying to run it i get error:

Traceback (most recent call last):
  File "h:\DOWNLOAD\CTkColorPicker-main\CTkColorPicker-main\main.py", line 2, in <module>
    from CTkColorPicker import AskColor
  File "h:\DOWNLOAD\CTkColorPicker-main\CTkColorPicker-main\CTkColorPicker\__init__.py", line 10, in <module>
    from .ctk_color_picker import AskColor
  File "h:\DOWNLOAD\CTkColorPicker-main\CTkColorPicker-main\CTkColorPicker\ctk_color_picker.py", line 6, in <module>
    from colour import Color
ModuleNotFoundError: No module named 'colour'```

@Nikushavar if it is still showing that colour module not found then install colour module with pip install colour.

@Nikushavar if it is still showing that colour module not found then install colour module with pip install colour.

alright, wait

@Nikushavar if it is still showing that colour module not found then install colour module with pip install colour.

ayy it worked :D
image
thanks alot

@Nikushavar Finally :)

@Nikushavar Finally :)

very cool project btw, i'll send link to my friends aswell ๐Ÿ‘