Forums

No module named 'colorutils'....

Hello everyone, I hope you're having a good sunday!

I have an issue...I am running a flask app, which I am also developing locally in pycharm. It working fine locally, and each time I deployed to pythonanywhere, it worked fine. I never once installed a module or package manually. I thought and assumed pythonanywhere did that automatically.

I then added a package called 'colorutils' (https://pypi.org/project/colorutils/)

...and use it in my app. Its running locally (pycharm, flask, testing and running in Chrome)... but on pythonanywhere my site is down, and looking at the error log, it says it cannot find colorutils.

The first 9 lines of my code that uses it are:

import base64
import json
import random
import io
import linecache
import csv

from PIL import Image, ImageDraw, ImageColor, ImageFont
from colorutils import Color

I'd be grateful for any help please. Did I import it wrongly? Right now its working fine locally. Not sure what I'm doing wrong here (It WAS working on pythonanywhere until I imported and used colorutils)

I'm working with python 3.7 locally and here on pythonanywhere.

Thanks for reading!


The error log text file looks like this:

Error running WSGI application 2023-09-03 23:14:45,839: ModuleNotFoundError: No module named 'colorutils' 2023-09-03 23:14:45,839: File "/var/www/www_madencie_com_wsgi.py", line 1, in <module> 2023-09-03 23:14:45,839: from app import app as application 2023-09-03 23:14:45,839: 2023-09-03 23:14:45,839: File "./app/init.py", line 5, in <module> 2023-09-03 23:14:45,839: from app import views 2023-09-03 23:14:45,839: 2023-09-03 23:14:45,839: File "./app/views.py", line 11, in <module> 2023-09-03 23:14:45,839: from app.madenciefunctions import colorpickerColors, generateColorpicker1Array, createColorPicker2, \ 2023-09-03 23:14:45,839: 2023-09-03 23:14:45,840: File "./app/madenciefunctions.py", line 9, in <module> 2023-09-03 23:14:45,840: from colorutils import Color

IMAGE: Error logs

How and where did you install the module?

Hello...okay, I was able to go into my app folder via console and use:

pip3.7 install --user colorutils==0.3.0

To install it. Problem solved with this