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

No module named 'PIL' #170

Open
theo-allnutt-bioinformatics opened this issue Nov 10, 2022 · 0 comments
Open

No module named 'PIL' #170

theo-allnutt-bioinformatics opened this issue Nov 10, 2022 · 0 comments

Comments

@theo-allnutt-bioinformatics

Installing pil / pillow / image, made no difference to this error.

kat hist -m27 test.fastq
Kmer Analysis Toolkit (KAT) V2.4.2

Running KAT in HIST mode

Input 1 is a sequence file. Counting kmers for input 1 (test.fastq) ... done. Time taken: 6.7s

Bining kmers ... done. Time taken: 2.2s

Merging counts ... done. Time taken: 0.0s

Saving results to disk ... done. Time taken: 0.0s

Creating plot ...Traceback (most recent call last):
File "//g/data/if89/apps/kat/2.4.2/share/kat/scripts/kat/plot/spectra_hist.py", line 6, in
from misc import *
File "/g/data/if89/apps/kat/2.4.2/share/kat/scripts/kat/plot/misc.py", line 2, in
import matplotlib
File "/home/554/ta0341/.local/lib/python3.9/site-packages/matplotlib/init.py", line 113, in
from . import _api, _version, cbook, _docstring, rcsetup
File "/home/554/ta0341/.local/lib/python3.9/site-packages/matplotlib/rcsetup.py", line 27, in
from matplotlib.colors import Colormap, is_color_like
File "/home/554/ta0341/.local/lib/python3.9/site-packages/matplotlib/colors.py", line 51, in
from PIL import Image
ModuleNotFoundError: No module named 'PIL'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "//g/data/if89/apps/kat/2.4.2/share/kat/scripts/kat/plot/spectra_hist.py", line 8, in
from kat.plot.misc import *
File "//g/data/if89/apps/kat/2.4.2/share/kat/scripts/kat/plot/misc.py", line 2, in
import matplotlib
File "/home/554/ta0341/.local/lib/python3.9/site-packages/matplotlib/init.py", line 113, in
from . import _api, _version, cbook, _docstring, rcsetup
File "/home/554/ta0341/.local/lib/python3.9/site-packages/matplotlib/rcsetup.py", line 27, in
from matplotlib.colors import Colormap, is_color_like
File "/home/554/ta0341/.local/lib/python3.9/site-packages/matplotlib/colors.py", line 51, in
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
Time taken: 0.3s

KAT HIST completed.
Total runtime: 9.3s

../lib/include/kat/pyhelper.hpp(158): Throw in function void kat::PyHelper::execute(std::string, int, char**)
Dynamic exception type: boost::exception_detail::clone_implkat::KatPythonException
std::exception::what: std::exception
[kat::KatPythonError*] = Unexpected python error

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

1 participant