请帮助我,收到以下错误,
追踪(最近一次通话): 文件“abdm.py”,第9行,in 来自core.api导入rest_api 文件“D:\ Mydev \ Development \ abdm \ core \ api.py”,第3行,in 来自核心导入数据,任务
这是代码和目录路径
from gevent import monkey
monkey.patch_all()
from flask import Flask
from flask_socketio import SocketIO
from core.api import rest_api
from core.signals import task_added, task_completed,
worker_before_execution, worker_after_execution, task_deleted
from core.commands import command_manager
import settings
目录路径:
我正在使用Python 3.5。任何帮助将不胜感激。
这是stracktrace:
Exception in user code:
------------------------------------------------------------
Traceback (most recent call last):
File "abdm.py", line 10, in <module>
from core.api import rest_api
File "D:\abdm\Development\abdm\core\api.py", line 3, in <module>
from core import data, tasks
File "D:\abdm\Development\abdm\core\tasks.py", line 14, in <module>
from gams import *
File "D:\Installation\Program Files\Python35\lib\site-packages\gams\__init__.py", line 8, in <module>
from .workspace import *
ImportError: DLL load failed: The specified module could not be found.
------------------------------------------------------------
D:\Installation\Program Files\Python35\lib\site-packages\flask\exthook.py:71: ExtDeprecationWarning: Importing flask.ext.script is deprecated, use fla
sk_script instead.
.format(x=modname), ExtDeprecationWarning
Traceback (most recent call last):
File "abdm.py", line 18, in <module>
from core.commands import command_manager
File "D:\abdm\Development\abdm\core\commands.py", line 5, in <module>
from core.tasks import GamsWorker, ResultCollector
File "D:\abdm\Development\abdm\core\tasks.py", line 14, in <module>
from gams import *
File "D:\Installation\Program Files\Python35\lib\site-packages\gams\__init__.py", line 8, in <module>
from .workspace import *
ImportError: DLL load failed: The specified module could not be found.
答案 0 :(得分:1)
所以,问题是GAMS不支持Python 3.5。
感谢您的帮助。