ImportError:没有名为newbytes的模块

2024-09-28 21:53:11 发布

您现在位置:Python中文网/ 问答频道 /正文

python2.7.10airflow中遇到问题

似乎hiveserver2.py有错误的包路径,因此它可以为newbytes获得正确的路径

但我不知道如何解决这个问题

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/logging/__init__.py", line 859, in emit
    msg = self.format(record)
  File "/usr/local/lib/python2.7/logging/__init__.py", line 732, in format
    return fmt.format(record)
  File "/usr/local/lib/python2.7/logging/__init__.py", line 472, in format
    if self.usesTime():
  File "/usr/local/lib/python2.7/logging/__init__.py", line 456, in usesTime
    return self._fmt.find("%(asctime)") >= 0
  File "/usr/local/lib/python2.7/site-packages/future/types/__init__.py", line 145, in wrapper
    from .newbytes import newbytes
ImportError: No module named newbytes
Logged from file hiveserver2.py, line 292

第292行:hiveserver2.py

290 def close_operation(self):
291     if self._last_operation_active:
292         log.info('Closing active operation')
293         self._reset_state()

Finally I fixed this problem by changing impyla version: from 0.16.0 to 0.13.8.


Tags: infrompyselfformatinitlibusr