Open thisjustin opened 6 years ago
Following up, this was happening before we added celery to the project so the root is something else. We're on python 3.6.3 if that helps.
This is affecting me too. Every time I edit a file used by hug, I get this exception and have to restart. I'm also using celery, but this issue predated me integrating it.
I'm seeing this with absolutely no usage of celery. The constant restart cycle is maddening...
Can confirm that this issue occurs with the latest develop.
I have the same issue. As a workaround I have created the following bash script:
run_local.sh
COMMAND='hug -f api.py'
LOGFILE=restart.txt
writelog() {
now=`date`
echo "$now $*" >> $LOGFILE
}
writelog "Starting"
while true ; do
$COMMAND
writelog "Exited with status $?"
writelog "Restarting"
WAIT 1
done
I have the same issue with python 3.6.5 and the develop branch.
Same here. Thanks @nilsdebruin for the script idea. I just had to use "sleep 1" instead of "WAIT 1", since I have no such command in bash. I also added #!/bin/bash on the top.
Same here with the newest release (2.4.1). I'm pretty sure it has something to do with running hug in a virtual environment (I'm using Pipenv).
I was facing this issue with Python 3.6.9. Then I installed Python3.7, deleted the old virtual environment, re-created one using Python3.7 and did a pip install. Everything worked fine
Every time I edit a file and save it I get this error locally. Since the stack trace starts in celery (v4.1.0) I'm wondering if there's some sort of interaction going on between hug and celery in my app that's leading to this?