cenkalti / kuyruk

⚙️ Simple task queue for Python
https://kuyruk.readthedocs.org/
MIT License
231 stars 17 forks source link

Werkzeug package issue when running worker #61

Closed nathan30 closed 5 years ago

nathan30 commented 5 years ago

Hi,

I have the following error when I'm running /usr/local/bin/kuyruk --app src.main.OCforMaarch worker

Traceback (most recent call last): File "/usr/local/bin/kuyruk", line 6, in from kuyruk.main import main File "/usr/local/lib/python3.7/dist-packages/kuyruk/init.py", line 4, in from kuyruk.kuyruk import Kuyruk File "/usr/local/lib/python3.7/dist-packages/kuyruk/kuyruk.py", line 10, in from kuyruk.config import Config File "/usr/local/lib/python3.7/dist-packages/kuyruk/config.py", line 126, in for k, v in entry_point.load().items(): File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2410, in load self.require(*args, **kwargs) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2433, in require items = working_set.resolve(reqs, env, installer, extras=self.extras) File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'Werkzeug>=0.14' distribution was not found and is required by Flask

I'm running Ubuntu 19.04

When I do pip3 freeze I see for Werkzeug and kuyruk :

Kuyruk==9.1.0 Kuyruk-Manager==1.5.2 Werkzeug==0.15.2

cenkalti commented 5 years ago

Looks like werkzeug package is not installed correctly. Can you try reinstalling it?

nathan30 commented 5 years ago

werkzeug

Just try pip3 uninstall werkzeug and then pip3 install -U werkzeug and same issue :/

I didn't have any errors while installing the werkzeug package

cenkalti commented 5 years ago

Are you using any virtualenv? If not, then probably there is an issue with your local install. Can you try creating an isolated virtualenv and installing in there?

nathan30 commented 5 years ago

Are you using any virtualenv? If not, then probably there is an issue with your local install. Can you try creating an isolated virtualenv and installing in there?

Just try with pipenv :

sudo pip3 install pipenv pipenv shell pipenv install kuyruk pipenv install flash pipenv install Werkzeug pipenv run /usr/local/bin/kuyruk --app src.main.OCforMaarch worker

Same issue :/

cenkalti commented 5 years ago

I have run it successfully with pipenv and without pipenv. It must be problem with your setup. Try running this Dockerfile: https://gist.github.com/cenkalti/df9432fc35c0931a3e330ee79d834223