编程语言
首页 > 编程语言> > python-运行开发服务器时,在Bottle框架的线程之一中出现OSError

python-运行开发服务器时,在Bottle框架的线程之一中出现OSError

作者:互联网

当我运行Bottle Development Server时,我注意到出现了一些警告.
有人能弄清楚到底是什么问题吗?

Exception in thread Thread-1:
Traceback (most recent call last):
 File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
   self.run()
 File "/usr/local/lib/python2.6/dist-packages/bottle-0.8.1-py2.6.egg/bottle.py", line 1406, in run
   if path: files[path] = mtime(path)
 File "/usr/local/lib/python2.6/dist-packages/bottle-0.8.1-py2.6.egg/bottle.py", line 1401, in <lambda>
   mtime = lambda path: os.stat(path).st_mtime
OSError: [Errno 20] Not a directory: '/usr/local/lib/python2.6/dist-packages/github2-0.1.2-py2.6.egg/github2/issues.py'

解决方法:

这是瓶中的错误(已在0.8.2中解决).重新加载功能检查修改后的模块文件,并被指向egg归档文件的路径所混淆.更新至0.8.2或禁用重载功能以解决此问题.

标签:bottle,multithreading,python
来源: https://codeday.me/bug/20191209/2097686.html