These are chat archives for spyder-ide/public

17th
Feb 2019
Ali Abbas
@aliabbas367_twitter
Feb 17 11:24

I am using anaconda
Suddenly this error started

An error ocurred while starting the kernel
Traceback (most recent call last):
File "C:\Users\Ali Abbas\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\Ali Abbas\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Ali Abbas\Anaconda3\lib\site‑packages\spyder_kernels\console__main.py", line 3, in
start.main()
File "C:\Users\Ali Abbas\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 270, in main
import_spydercustomize()
File "C:\Users\Ali Abbas\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 30, in import_spydercustomize
import spydercustomize
File "C:\Users\Ali Abbas\Anaconda3\lib\site‑packages\spyder_kernels\customize\spydercustomize.py", line 12, in
import bdb
File "C:\Users\Ali Abbas\Anaconda3\lib\bdb.py", line 6, in
from inspect import CO_GENERATOR
File "C:\Users\Ali Abbas\Anaconda3\lib\inspect.py", line 41, in
import linecache
File "C:\Users\Ali Abbas\Anaconda3\lib\linecache.py", line 11, in
import tokenize
File "C:\Users\Ali Abbas\Anaconda3\lib\tokenize.py", line 35, in
from token import *
File "C:\Users\Ali Abbas\token.py", line 1, in
import nltk
File "C:\Users\Ali Abbas\Anaconda3\lib\site‑packages\nltk\
init__.py", line 115, in
from nltk.decorators import decorator, memoize
File "C:\Users\Ali Abbas\Anaconda3\lib\site‑packages\nltk\decorators.py", line 187, in
@decorator
File "C:\Users\Ali Abbas\Anaconda3\lib\site‑packages\nltk\decorators.py", line 165, in decorator
if inspect.isclass(caller):
AttributeError: module 'inspect' has no attribute 'isclass'

Hamiterol
@Hamiterol
Feb 17 12:01
Selam Sypder mı nasıl güncelleme yapabilirim
Jürg Rast
@jrast
Feb 17 16:39

PyQt5==5.11.* does not include the QtWebKitWidgets, so Spyder will not launch.

Are you sure about this? As far as were aware, the split happened in Qt 5.12, which is why the PyQtWebEngine package is compatible only with it. Perhaps what may have happened is the exact same thing is when you upgraded to 5.10; something went wrong with pip and it didn't install the new version properly so you got the error.

@CAM-Gerlach if you look at the package sizes on PiPI (https://pypi.org/project/PyQt5/5.11.3/#files) you can see that one of the releases is significantly smaller than the others. And it's exactly the one which fullfills my requirements (cp36, win32)
The PyQtWebEngine package is about 40MB for cp36/win32, so it might be missing from the specific PyQt5 build which I used.
Jürg Rast
@jrast
Feb 17 16:48
Anyway, I understand why you recommend using conda! It's not easy to keep an eye on all dependencies and configurations. On the other hand, if someone knows pip and how dependencies are handled, problems can be resolved quite fast and easy.
CAM Gerlach
@CAM-Gerlach
Feb 17 20:43

shouldn't it show my variable using in my program?

@Rondesgr Sorry for the delay in responding. Generally, yes, but not all variables are shown by default; you can customize the filters under the "Gear" options menu in the top right of the Variable Explorer pane. If no variables are shown, even simple strings and numerics, then please provide your Spyder, spyder-kernels, Python, and OS versions and state how you installed Spyder (WinPython, Anaconda, pip, distribution packages, etc).

Suddenly this error started

@aliabbas367_twitter This error appears to be related to bug in the NLTK library that you are using, nltk/nltk#856 . Try updating NLTK and Python to the latest version to fix it.

CAM Gerlach
@CAM-Gerlach
Feb 17 20:49

Hi, how can I update Sypder

@Hamiterol If you installed it via Anaconda/Miniconda, then run conda update spyder, as it says in the update dialog; otherwise, if you installed it with pip (advanced users only), then use pip install -U spyder.

On the other hand, if someone knows pip and how dependencies are handled, problems can be resolved quite fast and easy.

Exactly, its just that unlike yourself, many users don't and thus come here asking for help, which not only is very difficult for us to provide (since they tend to be machine-environment specific), but also takes away from our limited time and resources to fix bugs and further develop Spyder itself.

The PyQtWebEngine package is about 40MB for cp36/win32, so it might be missing from the specific PyQt5 build which I used.

@jrast Seems quite possible. You can take a look at the source inside your site-packages directory and see if that's the case.