"Failed to execute script" 尝试搜索 运行 程序时出错
"Failed to execute script" error while try run program from search
我用 PyInstaller 创建了 .exe 文件。当我直接 运行 它时,我的程序运行没有错误。但是当我尝试从文件 search 中 运行 它时,它 returns “无法执行脚本”错误。这没有意义,我不明白。我也看不到任何其他错误 - 无论是否是控制台模式 -
二手进口:
from PyQt5 import QtCore, QtGui, QtWidgets
from course_grabber import getCourseClasses,getCourseCodes
import random
from itertools import combinations
from profilim import Ui_Profilim
from dersler import Ui_dersPlaniPencere
from vt_islemleri import *
from threading import Thread
from webbrowser import open as tarayici_ac
import concurrent.futures
import datetime
import gc
import sys
import sqlite3 as sql
from course import Course
我找到了解决方案。我在代码和 pyinstaller 中尝试了很多东西。这是关于权限。当我 运行 作为管理员时,它起作用了。没有管理员权限,程序无法打开外部数据库。
我用 PyInstaller 创建了 .exe 文件。当我直接 运行 它时,我的程序运行没有错误。但是当我尝试从文件 search 中 运行 它时,它 returns “无法执行脚本”错误。这没有意义,我不明白。我也看不到任何其他错误 - 无论是否是控制台模式 -
二手进口:
from PyQt5 import QtCore, QtGui, QtWidgets
from course_grabber import getCourseClasses,getCourseCodes
import random
from itertools import combinations
from profilim import Ui_Profilim
from dersler import Ui_dersPlaniPencere
from vt_islemleri import *
from threading import Thread
from webbrowser import open as tarayici_ac
import concurrent.futures
import datetime
import gc
import sys
import sqlite3 as sql
from course import Course
我找到了解决方案。我在代码和 pyinstaller 中尝试了很多东西。这是关于权限。当我 运行 作为管理员时,它起作用了。没有管理员权限,程序无法打开外部数据库。