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

Error on importing easyocr #16530

Closed
imJunaidAfzal opened this issue Oct 3, 2021 · 2 comments
Closed

Error on importing easyocr #16530

imJunaidAfzal opened this issue Oct 3, 2021 · 2 comments

Comments

@imJunaidAfzal
Copy link

Description

What steps will reproduce the problem?

error on importing easyocr but work in previous versions...

restart prompt, everything but did not work....
Error in console is:

OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

Traceback

Traceback (most recent call last):
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\site-packages\qtconsole\manager.py", line 27, in poll
    super().poll()
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\site-packages\jupyter_client\restarter.py", line 127, in poll
    self.kernel_manager.restart_kernel(now=True, newports=newports)
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\site-packages\jupyter_client\utils.py", line 25, in wrapped
    return loop.run_until_complete(coro(*args, **kwargs))
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\site-packages\nest_asyncio.py", line 70, in run_until_complete
    return f.result()
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\asyncio\futures.py", line 178, in result
    raise self._exception
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\asyncio\tasks.py", line 280, in __step
    result = coro.send(None)
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\site-packages\jupyter_client\manager.py", line 477, in _async_restart_kernel
    await ensure_async(self.shutdown_kernel(now=now, restart=True))
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\site-packages\jupyter_client\utils.py", line 25, in wrapped
    return loop.run_until_complete(coro(*args, **kwargs))
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\site-packages\nest_asyncio.py", line 70, in run_until_complete
    return f.result()
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\asyncio\futures.py", line 178, in result
    raise self._exception
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\asyncio\tasks.py", line 280, in __step
    result = coro.send(None)
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\site-packages\jupyter_client\manager.py", line 436, in _async_shutdown_kernel
    await ensure_async(self._kill_kernel())
  File "C:\Users\Junaid Afzal\.conda\envs\billa\lib\site-packages\spyder\plugins\ipythonconsole\utils\manager.py", line 92, in _kill_kernel
    self.kill_proc_tree(self.kernel.pid)
AttributeError: 'SpyderKernelManager' object has no attribute 'kernel'

Versions

  • Spyder version: 5.0.5
  • Python version: 3.8.11
  • Qt version: 5.9.7
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  2.0.0 (OK)
cookiecutter >=1.6.0          :  1.7.2 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  7.27.0 (OK)
jedi =0.17.2                  :  0.17.2 (OK)
jsonschema >=3.2.0            :  3.2.0 (OK)
keyring >=17.0.0              :  23.1.0 (OK)
nbconvert >=4.0               :  6.1.0 (OK)
numpydoc >=0.6.0              :  1.1.0 (OK)
paramiko >=2.4.0              :  2.7.2 (OK)
parso =0.7.0                  :  0.7.0 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.10.0 (OK)
pylint >=1.0                  :  2.9.6 (OK)
pyls >=0.36.2;<1.0.0          :  0.36.2 (OK)
pyls_black >=0.4.6            :  0.4.6 (OK)
pyls_spyder >=0.3.2;<0.4.0    :  0.3.2 (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.1.10 (OK)
qtawesome >=1.0.2             :  1.0.2 (OK)
qtconsole >=5.1.0             :  5.1.1 (OK)
qtpy >=1.5.0                  :  1.10.0 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=39.0.0           :  58.0.4 (OK)
sphinx >=0.6.6                :  4.2.0 (OK)
spyder_kernels >=2.0.4;<2.1.0 :  2.0.5 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.1.3 (OK)
zmq >=17                      :  22.2.1 (OK)

# Optional:
cython >=0.21                 :  None (NOK)
matplotlib >=2.0.0            :  3.4.3 (OK)
numpy >=1.7                   :  1.20.3 (OK)
pandas >=1.1.1                :  None (NOK)
scipy >=0.17.0                :  1.7.1 (OK)
sympy >=0.7.3                 :  None (NOK)
@spyder-bot
Copy link
Collaborator

Thanks for reporting. To fix this, please close Spyder, open the Anaconda Prompt and run there:

conda install jupyter_client=6.1.12

@imJunaidAfzal
Copy link
Author

@spyder-bot dear bot this solution is not working....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants