Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'QWebEngineProfile' object has no attribute 'clearHttpCache' #114

Closed
ccordoba12 opened this issue Oct 3, 2017 · 7 comments
Assignees
Milestone

Comments

@ccordoba12
Copy link
Member

@bhmit commented on Tue Oct 03 2017

Description

What steps will reproduce the problem?

What is the expected output? What do you see instead?

Please provide any additional information below

File "/anaconda/lib/python3.6/site-packages/spyder_terminal/terminalplugin.py", line 165, in __wait_server_to_start
self.create_new_term(give_focus=False)
File "/anaconda/lib/python3.6/site-packages/spyder_terminal/terminalplugin.py", line 315, in create_new_term
font=font.family())
File "/anaconda/lib/python3.6/site-packages/spyder_terminal/widgets/terminalgui.py", line 63, in init
self.view = TermView(self, term_url=url, handler=self.handler)
File "/anaconda/lib/python3.6/site-packages/spyder_terminal/widgets/terminalgui.py", line 147, in init
self.document.profile().clearHttpCache()
AttributeError: 'QWebEngineProfile' object has no attribute 'clearHttpCache'

Version and main components

  • Spyder Version: 3.2.3
  • Python Version: 3.6.1
  • Qt Versions: 5.6.2, PyQt5 5.6 on Darwin

Dependencies

pyflakes >=0.6.0 :  1.5.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.20.1 (OK)
numpy >=1.7      :  1.12.1 (OK)
sphinx >=0.6.6   :  1.5.6 (OK)
rope >=0.9.4     :  0.9.4-1 (OK)
jedi >=0.9.0     :  0.10.2 (OK)
psutil >=0.3     :  5.2.2 (OK)
nbconvert >=4.0  :  5.1.1 (OK)
sympy >=0.7.3    :  1.0 (OK)
cython >=0.21    :  0.25.2 (OK)
qtconsole >=4.2.0:  4.3.0 (OK)
IPython >=4.0    :  5.3.0 (OK)
pylint >=0.25    :  1.6.4 (OK)

@ccordoba12
Copy link
Member Author

@andfoy, please take a look at this one.

@andfoy
Copy link
Member

andfoy commented Oct 3, 2017

It seems that QWebEngineProfile.clearHttpCache was introduced after Qt 5.7. We should clear the caché on QWebEngine instances only if the version is later than 5.7

@andfoy
Copy link
Member

andfoy commented Oct 3, 2017

@ccordoba12, does Qt 5.6.2 has QWebEngine?

@ccordoba12
Copy link
Member Author

ccordoba12 commented Oct 3, 2017 via email

@andfoy
Copy link
Member

andfoy commented Oct 3, 2017

@ccordoba12 that's the current behaviour

@ccordoba12
Copy link
Member Author

ccordoba12 commented Oct 3, 2017 via email

@bhmit
Copy link

bhmit commented Oct 4, 2017

I install a Spyder Plugin for displaying a virtual terminal called
Spyder-terminal so when I run the Spyder IDE the error message emerged, and the visual Terminal appear in the editor, but it's blocked
that what caused the problem

@ccordoba12 ccordoba12 changed the title spyder error AttributeError: 'QWebEngineProfile' object has no attribute 'clearHttpCache' Oct 9, 2017
@andfoy andfoy added this to the v0.2.3 milestone Oct 11, 2017
@andfoy andfoy self-assigned this Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants