سؤال

I have a python program:

import sys
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtWebKit import *


app = QApplication(sys.argv)

web = QWebView()
web.load(QUrl("htpp://www.google.com"))
web.show()
web.resize(650, 750)
web.setWindowTitle('Website')

sys.exit(app.exec_())

I used google.com just for example. But if i want to make an executable of this program with py2exe but it wont work. I get this error:

enter image description here

With other programs without PySide it does work. But with PySide it doesnt. How can I make it work?

هل كانت مفيدة؟

المحلول

You need Microsoft Visual C runtime.

You should take a look at this: http://qt-project.org/wiki/Packaging_PySide_applications_on_Windows . In the py2exe tutorial it explains about the runtime you should install.

نصائح أخرى

You are missing a DLL. The DLL in question can be (at least formerly) obtained from Microsoft by downloading their free compiler package.

Alternatively, ensure that this process has the right paths set to find the DLL in question.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top