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

ERROR import palettable #19

Open
iandreafc opened this issue Dec 10, 2020 · 0 comments
Open

ERROR import palettable #19

iandreafc opened this issue Dec 10, 2020 · 0 comments

Comments

@iandreafc
Copy link

iandreafc commented Dec 10, 2020

Hi,

when I run stylecloud on my PC I have no problem, but then I deploy it on an ubuntu machine and make it run inside a docker container activated through flask.

When I do so, I get an error as it seem the way palettable is imported (line 91 of your function) generates an error. Could you help me solve that? Can I avoid importing palettable and just give it the colors (even if I use the colors the palette is generated)?

File "/usr/lib/python3.8/site-packages/stylecloud/stylecloud.py", line 237, in gen_stylecloud
palette_func = gen_palette(palette)
File "/usr/lib/python3.8/site-packages/stylecloud/stylecloud.py", line 91, in gen_palette
return self.__local()
File "/usr/lib/python3.8/site-packages/flask/globals.py", line 38, in _lookup_req_object
raise RuntimeError(_request_ctx_err_msg)
RuntimeError: Working outside of request context.

This typically means that you attempted to use functionality that needed
an active HTTP request. Consult the documentation on testing for
information about how to avoid this problem.
import(
ModuleNotFoundError: No module named 'palettable.'

Thanks a lot for this nice package! :)

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