2023-07-15 19:27:22.311 python[1509:19794] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/cm/h6r34k6d7x5b9n9yg8m072_w0000gn/T/org.opensciencetools.psychopy.savedState 1.6979 WARNING psychopy.parallel has been imported on a Mac (which doesn't have a parallel port?) Traceback (most recent call last): File "/Users/Wu/Desktop/GUI_design/demo1.py", line 9, in <module> from utils.Resting import Resting File "/Users/Wu/Desktop/GUI_design/utils/Resting.py", line 7, in <module> from utils.basics.Score import Score File "/Users/Wu/Desktop/GUI_design/utils/basics/Score.py", line 7, in <module> from utils.basics.ratingscale import RatingScale File "/Users/Wu/Desktop/GUI_design/utils/basics/ratingscale.py", line 31, in <module> from past.builtins import basestring ModuleNotFoundError: No module named 'past' ################# Experiment ended with exit code 1 [pid:1509] #################
时间: 2024-01-03 22:05:53 浏览: 237
swagger-to-existing-nodejs-project:演示应用程序,显示如何将Swagger UI Spec添加到现有Node.jsExpress.js项目
根据你提供的信息,看起来你的代码中少一个名为'past'的模块。这可能是因为你的Python环境中没有安装此模块。你可以尝试在终端中使用以下命令安装它:
```
pip install future
```
如果你使用的是 Python 3,请使用以下命令:
```
pip3 install future
```
安装完成后,再次运行代码,看看问题是否解决了。如果问题仍然存在,请确保你的代码中正确导入了所需的模块,并且模块的路径是正确的。
阅读全文