@nils-fl , Nope. Still in my office computer, I’m facing the same issue. In fact, it is coincidental that I have got this issue today morning only and checked this thread if I got any further replies here.
I’ve tried the latest 0.57 build both online and offline standalone installers and not worked, same issue, same error number. I suspect that it is due to Anti Virus, but, Chrome is installing fine.
67 / 55 / 8 Регистрация: 26.07.2013 Сообщений: 476 |
|
1 |
|
16.04.2021, 14:13. Показов 5702. Ответов 7
— Мой вопрос скорее по PyCharm.
0 |
67 / 55 / 8 Регистрация: 26.07.2013 Сообщений: 476 |
|
17.04.2021, 11:51 [ТС] |
2 |
— Не подскажете, почему Поисковик в PyCharm вдруг начинает на все запросы отвечать — Nothing to show (Нечего показывать)?
0 |
Автоматизируй это! 7138 / 4434 / 1185 Регистрация: 30.03.2015 Сообщений: 12,898 Записей в блоге: 29 |
|
17.04.2021, 12:34 |
3 |
Staut, может доку пичарма посмотришь, видео по работе с ним? какие то странные ты вещи рассказываешь.
1 |
67 / 55 / 8 Регистрация: 26.07.2013 Сообщений: 476 |
|
17.04.2021, 15:21 [ТС] |
4 |
— Здравствуйте Welemir1. Спасибо за отклик!
0 |
Автоматизируй это! 7138 / 4434 / 1185 Регистрация: 30.03.2015 Сообщений: 12,898 Записей в блоге: 29 |
|
17.04.2021, 18:44 |
5 |
Staut, ну все про продукты джетбрейнс есть на сайте джетбрейнс. Я просто не понимаю о чем ты говоришь, в пичарме много возможностей поиска и о каком ты говоришь мне не понятно. Там есть возможность искать текст по модулям, искать файл по названию, искать использование функции в проекте и так далее. Если ты про альт+пробел (комплишен) когда пичарм предлагает варианты кода, то это зависит от многого.
1 |
67 / 55 / 8 Регистрация: 26.07.2013 Сообщений: 476 |
|
18.04.2021, 15:32 [ТС] |
6 |
— Welemir1, я уже и сам порой считаю не сошел ли я с ума.
0 |
Автоматизируй это! 7138 / 4434 / 1185 Регистрация: 30.03.2015 Сообщений: 12,898 Записей в блоге: 29 |
|
18.04.2021, 16:06 |
7 |
и вижу все места в коде, где встречается эта переменная или функция. Ctrl +B
1 |
67 / 55 / 8 Регистрация: 26.07.2013 Сообщений: 476 |
|
18.04.2021, 19:40 [ТС] |
8 |
— Спасибо Welemir1. Не подскажете, как надо правильно ПЕРЕУСТАНАВЛИВАТЬ PyQt5?
0 |
Всегда запускайте приложение в CMD/консоли/терминале и вы получите реальную ошибку.
Класс QTextEdit
предоставляет виджет, который используется для редактирования и отображения как простого, так и форматированного текста.
Но QTextEdit
не имеет свойства appendHtml
.
Класс QPlainTextEdit
предоставляет виджет, который используется для редактирования и отображения простого текста.
Больше https://doc.qt.io/qt-5/qplaintextedit.html#appendHtml
void QPlainTextEdit::appendHtml(const QString &html)
Добавляет новый абзац с HTML в конец редактирования текста.
Вам надо заменить строку:
self.textEdit = QtWidgets.QTextEdit(self.centralwidget)
на строку:
self.textEdit = QtWidgets.QPlainTextEdit(self.centralwidget)
import sys
from PyQt5 import QtWidgets, QtGui, QtCore
from PyQt5.Qt import *
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(775, 600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(470, 50, 91, 23))
self.pushButton.setObjectName("pushButton")
self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_2.setGeometry(QtCore.QRect(290, 240, 121, 21))
self.pushButton_2.setObjectName("pushButton_2")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(260, 20, 191, 20))
self.label.setObjectName("label")
self.pushButton_3 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_3.setGeometry(QtCore.QRect(470, 120, 91, 23))
self.pushButton_3.setObjectName("pushButton_3")
self.listWidget_2 = QtWidgets.QListWidget(self.centralwidget)
self.listWidget_2.setGeometry(QtCore.QRect(210, 120, 256, 21))
self.listWidget_2.setObjectName("listWidget_2")
self.listWidget_3 = QtWidgets.QListWidget(self.centralwidget)
self.listWidget_3.setGeometry(QtCore.QRect(210, 190, 256, 21))
self.listWidget_3.setObjectName("listWidget_3")
self.pushButton_4 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_4.setGeometry(QtCore.QRect(470, 190, 91, 23))
self.pushButton_4.setObjectName("pushButton_4")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(260, 90, 191, 20))
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setGeometry(QtCore.QRect(260, 160, 191, 20))
self.label_3.setObjectName("label_3")
# self.textEdit = QtWidgets.QTextEdit(self.centralwidget)
self.textEdit = QtWidgets.QPlainTextEdit(self.centralwidget)
self.textEdit.setGeometry(QtCore.QRect(210, 50, 251, 31))
self.textEdit.setObjectName("textEdit")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 775, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.pushButton.setText(_translate("MainWindow", "Добавить"))
self.pushButton_2.setText(_translate("MainWindow", "Выбрать"))
self.label.setText(_translate("MainWindow", "Загрузите файл "))
self.pushButton_3.setText(_translate("MainWindow", "Добавить"))
self.pushButton_4.setText(_translate("MainWindow", "Добавить"))
self.label_2.setText(_translate("MainWindow", "Загрузите файл"))
self.label_3.setText(_translate("MainWindow", "Загрузите файл"))
class ExampleApp(QtWidgets.QMainWindow, Ui_MainWindow):
def __init__(self):
super().__init__()
self.setupUi(self)
self.pushButton.clicked.connect(self.getFileName)
#self.pushButton_3.clicked.connect(self.browse_folder)
#self.pushButton_4.clicked.connect(self.browse_folder)
def getFileName(self):
filename, filetype = QFileDialog.getOpenFileName(
self,
"Выбрать файл для сравнения",
".",
"Excel 2007(*.xlsx);;Excel 97-2003(*.xls)"
)
self.textEdit.appendHtml(
"<br>Выбрали файл: <b>{}</b> <br> <b>{:*^54}</b>"
"".format(filename, filetype))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
window = ExampleApp()
window.show()
sys.exit(app.exec_())
Comments
Description
Carried over from brave/browser-laptop#15313
Operating System: Windows 8.1 Pro
System Specs: i3 Processor, 4GB Ram, 64 Bit ProcessorWhile trying to install Brave browser, it is saying «Downloading…installing…» and after half completion it is saying «The install encountered error 1073741845» . The screenshot is:
Still facing the issue. Tried both installer and standalone versions, same error is still repeating and unable to install:
Still, after posting the issue two months before (November 8th, 2018), facing the issue (1st January, 2019)
I’m having the same issue. But right after I get the error window, my AV pops up with a Trojan alert from the installers.
I read some articles and decided to try the browser myself, but facing this situation… yeah. Not going to touch any of this anymore.
I’m having the same issue. But right after I get the error window, my AV pops up with a Trojan alert from the installers.
I read some articles and decided to try the browser myself, but facing this situation… yeah. Not going to touch any of this anymore.
+1
might be related to: #1498
I am getting this exact error, «I’m having the same issue. But right after I get the error window, my AV pops up with a Trojan alert from the installers.»
who can help us. I have been suing Brave forever. Feeling so frustrated I cant install the latest version after I uninstalled the older one. Can the Brave folks who are brave enough come to our help?
@bronzekenyan, @avndp What Antivirus program is showing up for you guys?
Kaspersky Endpoint Security 10 for Windows 10.2.4.674
This is definitely related to #1498
We’ve worked with Kaspersky and they’ve confirmed that Brave users should no longer get flagged when attempting to download, install or update Brave.
More info on Community
rebron
removed this from the
1.x Backlog milestone
Feb 7, 2019
rebron
changed the title
The install encountered error 1073741845
Kaspersky installation error 1073741845
May 28, 2019
Closing. Please reopen if we see additional cases.
General
automation
moved this from Untriaged Backlog
to Completed
May 28, 2019
Я пытался обновить базу данных из двух разных мест в одном и том же коде. Первый работает в {{Х0}} Он был просто добавлен, чтобы проверить, не вызывает ли обновление какие-либо ошибки.
Второй бросает эту ошибку. onClickAction_SAVE (self), где это происходит. Ошибка: процесс завершен с кодом выхода 1073741845
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from myform import Ui_Form
from connect_to_db import Database
import pandas as pd
class AppWindow(QMainWindow):
def __init__(self):
super().__init__()
self.ui = Ui_Form()
self.ui.setupUi(self)
self.ui.lineEdit.textChanged.connect(self.touppercase)
self.ui.lineEdit_2.setPlaceholderText("Don't mind me.")
self._db = Database('accounts')
self._currrow = 0
self._df = pd.read_sql_query("SELECT * FROM test1", self._db.connection)
self._maxrows = len(self._df.index)-1
self.ui.totalrecords.display(len(self._df.index))
self.ui.lineEdit.setText(self._df.at[self._currrow, 'name'])
self.ui.lineEdit_2.setText(self._df.at[self._currrow, 'guid'])
self.ui.currCounter.display(self._currrow + 1)
self.ui.btnFirst.clicked.connect(self.onClickAction_FR)
self.ui.btnPrev.clicked.connect(self.onClickAction_PR)
self.ui.btnNext.clicked.connect(self.onClickAction_NR)
self.ui.btnLast.clicked.connect(self.onClickAction_LR)
self.ui.btnSave.clicked.connect(self.onClickAction_SAVE)
keyvalue = 8
namevalue = 'Record 7---'
stmt = 'UPDATE test1 SET name = %s WHERE id = %s'
values = (namevalue, keyvalue)
print((stmt, values))
try:
self._db.execute(stmt, values)
except:
print("Oops!", sys.exc_info()[0], "occured.")
self._db.commit()
def touppercase(self, text):
# print(text)
cursorpos = self.ui.lineEdit.cursorPosition()
self.ui.lineEdit.setText(text.upper())
self.ui.lineEdit.setCursorPosition(cursorpos)
@pyqtSlot()
def onClickAction_FR(self):
self._currrow = 0
self.ui.lineEdit.setText(self._df.at[self._currrow, 'name'])
self.ui.lineEdit_2.setText(self._df.at[self._currrow, 'guid'])
self.ui.currCounter.display(self._currrow+1)
@pyqtSlot()
def onClickAction_PR(self):
if self._currrow > 0:
self._currrow = self._currrow - 1
self.ui.lineEdit.setText(self._df.at[self._currrow, 'name'])
self.ui.lineEdit_2.setText(self._df.at[self._currrow, 'guid'])
self.ui.currCounter.display(self._currrow+1)
@pyqtSlot()
def onClickAction_NR(self):
if self._currrow < self._maxrows:
self._currrow = self._currrow + 1
self.ui.lineEdit.setText(self._df.at[self._currrow, 'name'])
self.ui.lineEdit_2.setText(self._df.at[self._currrow, 'guid'])
self.ui.currCounter.display(self._currrow+1)
@pyqtSlot()
def onClickAction_LR(self):
self._currrow = self._maxrows
self.ui.lineEdit.setText(self._df.at[self._currrow, 'name'])
self.ui.lineEdit_2.setText(self._df.at[self._currrow, 'guid'])
self.ui.currCounter.display(self._currrow+1)
@pyqtSlot()
def onClickAction_SAVE(self):
self._df.at[self._currrow, 'name'] = self.ui.lineEdit.text()
self._df.at[self._currrow, 'guid'] = self.ui.lineEdit_2.text()
keyvalue = self._df.at[self._currrow, 'id']
namevalue = self._df.at[self._currrow, 'name']
stmt = 'UPDATE test1 SET name = %s WHERE id = %s'
values = (namevalue,keyvalue)
self._db.execute(stmt,values)
self._db.commit()
Что не так в коде onClickAction_SAVE?
Есть ли какая-либо причина, по которой соединение с базой данных закрыто или обновление не разрешено в слоте?
1 ответ
Лучший ответ
Проблема была из-за 64-битного целого числа, которое было передано на запрос, MySql не поддерживает
Просто изменение этой строки помогло решить проблему
values = (namevalue,keyvalue)
К
values = (namevalue,int(keyvalue))
0
user2035041
8 Дек 2019 в 09:01