[PyQt] pyqtdelpoy and selenium
Phil Thompson
phil at riverbankcomputing.com
Thu Oct 6 19:23:11 BST 2016
On 6 Oct 2016, at 7:07 pm, Steve zhou <lisabrauns at outlook.com> wrote:
>
> hi Phil,
>
> I have been static in the Windows 7 compiler qt 4.8.6, pyqt 4.11, python
> 2.7.11, sip 4.17 Then I also installed selenium package
> I tried using pyqtdelpoy gui to generate an exe, but when I run exe prompt
> error
>
> =======================
> Traceback (most recent call last):
> File "test3.py", line 4, in <module>
> File ":/selenium/webdriver/firefox/webdriver.py", line 51, in __init__
> File ":/selenium/webdriver/firefox/firefox_profile.py", line 73, in
> __init__
> IOError: [Errno 22] invalid mode ('r') or filename:
> ':/selenium/webdriver/firefox/webdriver_prefs.json'
> =====================
>
> what's prolem?
>
> I put my test code on the attachment, if you have time, please help me,
> thank you
>
> test.pdy <http://python.6.x6.nabble.com/file/n5201223/test.pdy> test3.py
> <http://python.6.x6.nabble.com/file/n5201223/test3.py>
selenium is trying to read one of its own files. To do that it would need to use the Qt file i/o classes which know how to read from an embedded executable.
Phil
More information about the PyQt
mailing list