在将Universe导入我的项目时出现此错误
我已经重新安装了go-vncdriver,但还是没有运气。有人知道吗?
回溯(最近通话最近):
File "/Users/uzirthapa/PycharmProjects/NeuralNetV1/universetest.py", line 2, in <module>
import universe
File "/Users/uzirthapa/PycharmProjects/NeuralNetV1/universe/universe/__init__.py", line 22, in <module>
from universe import error, envs
File "/Users/uzirthapa/PycharmProjects/NeuralNetV1/universe/universe/envs/__init__.py", line 1, in <module>
import universe.envs.vnc_env
File "/Users/uzirthapa/PycharmProjects/NeuralNetV1/universe/universe/envs/vnc_env.py", line 11, in <module>
from universe.envs import diagnostics
File "/Users/uzirthapa/PycharmProjects/NeuralNetV1/universe/universe/envs/diagnostics.py", line 94
async = self.qr_pool.apply_async(self.method, (self._last_img, time.time(), available_at))
^
SyntaxError:语法无效
谢谢!
答案 0 :(得分:-1)
打开您的Universe / universe / envs / diagnostics.py 并将all(4)异步重命名为另一个唯一的单词。 在此示例中,异步被重命名为blubb。
94: blubb = self.qr_pool.apply_async(self.method,(self._last_img,time.time(),available_at))
95:self.deque.append( blubb )
260: blubb = self.pool.imap_unordered(
261:self._add_metadata_i,
262:zip(self.instance_n,observation_n,info_n,[available_at] * len(observation_n)))
263:列表( blubb )