spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.1k stars 1.57k forks source link

[update conda+pip now working] Spyder isn't launching, and conda isn't responding. Returning errors of missing modules and pip (nothing is missing) #13911

Closed Sue-Fwl closed 3 years ago

Sue-Fwl commented 3 years ago

Issue Report Checklist

Problem Description

The issue started gradually on Spyder. First Spyder displayed issue submissions every time I launched it. Then I started getting warnings in the kernel about Type:1 attribute or variable error, but I didn't find a solution for it and it didn't affect my project execution.

FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)])

Finally, Spyder just stopped responding to kernel commands and started lagging so I closed it and re-ran it but it didn't launch. Tried to launch it through conda and got the error. Conda stopped preforming any commands and the other applications on conda couldn't run anymore. (Jupyter) and just launching Anaconda prompt displays the error:

  Traceback (most recent call last):
    File "\Anaconda3\lib\site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 580, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored

I tried the suggested solutions on other issues such as, removing Kite, and going back a revision (error):

conda install --rev 15

Traceback (most recent call last): File "\Anaconda3\lib\site.py", line 168, in addpackage exec(line) File "", line 1, in File "", line 580, in module_from_spec AttributeError: 'NoneType' object has no attribute 'loader'

Remainder of file ignored Traceback (most recent call last): File "\Anaconda3\lib\site-packages\conda\gateways\connection__init__.py", line 21, in from requests import ConnectionError, HTTPError, Session ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in call return func(*args, **kwargs) File "\Anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main exit_code = do_call(args, p) File "\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 81, in do_call module = import_module(relative_mod, name.rsplit('.', 1)[0]) File "\Anaconda3\lib\importlib__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "\Anaconda3\lib\site-packages\conda\cli\main_install.py", line 8, in from .install import install File "Anaconda3\lib\site-packages\conda\cli\install.py", line 19, in from ..core.index import calculate_channel_urls, get_index File "\Anaconda3\lib\site-packages\conda\core\index.py", line 10, in from .package_cache_data import PackageCacheData File "\Anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 14, in from .path_actions import CacheUrlAction, ExtractPackageAction File "\Anaconda3\lib\site-packages\conda\core\path_actions.py", line 30, in from ..gateways.connection.download import download File "\Anaconda3\lib\site-packages\conda\gateways\connection__init__.py", line 39, in from pip._vendor.requests import ConnectionError, HTTPError, Session ModuleNotFoundError: No module named 'pip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "\Anaconda3\lib\site-packages\conda\gateways\connection__init__.py", line 21, in from requests import ConnectionError, HTTPError, Session ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "\Anaconda3\Scripts\conda-script.py", line 12, in sys.exit(main()) File "\Anaconda3\lib\site-packages\conda\cli\main.py", line 152, in main return conda_exception_handler(_main, *args, *kwargs) File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1371, in conda_exception_handler return_value = exception_handler(func, args, **kwargs) File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1082, in call return self.handle_exception(exc_val, exc_tb) File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1126, in handle_exception return self.handle_unexpected_exception(exc_val, exc_tb) File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1137, in handle_unexpected_exception self.print_unexpected_error_report(error_report) File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1207, in print_unexpected_error_report from .cli.main_info import get_env_vars_str, get_main_info_str File "\Anaconda3\lib\site-packages\conda\cli\main_info.py", line 19, in from ..core.index import _supplement_index_with_system File "\Anaconda3\lib\site-packages\conda\core\index.py", line 10, in from .package_cache_data import PackageCacheData File "\Anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 14, in from .path_actions import CacheUrlAction, ExtractPackageAction File "\Anaconda3\lib\site-packages\conda\core\path_actions.py", line 30, in from ..gateways.connection.download import download File "\Anaconda3\lib\site-packages\conda\gateways\connection__init__.py", line 39, in from pip._vendor.requests import ConnectionError, HTTPError, Session ModuleNotFoundError: No module named 'pip'

Reinstalling conda pip
> conda install -c anaconda pip

```python

  Traceback (most recent call last):
    File "\Anaconda3\lib\site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 580, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader'

Remainder of file ignored
Traceback (most recent call last):
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 21, in <module>
    from requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "\Anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 81, in do_call
    module = import_module(relative_mod, __name__.rsplit('.', 1)[0])
  File "\Anaconda3\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "\Anaconda3\lib\site-packages\conda\cli\main_install.py", line 8, in <module>
    from .install import install
  File "\Anaconda3\lib\site-packages\conda\cli\install.py", line 19, in <module>
    from ..core.index import calculate_channel_urls, get_index
  File "\Anaconda3\lib\site-packages\conda\core\index.py", line 10, in <module>
    from .package_cache_data import PackageCacheData
  File "\Anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 14, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "\Anaconda3\lib\site-packages\conda\core\path_actions.py", line 30, in <module>
    from ..gateways.connection.download import download
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 39, in <module>
    from pip._vendor.requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'pip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 21, in <module>
    from requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "\Anaconda3\Scripts\conda-script.py", line 12, in <module>
    sys.exit(main())
  File "\Anaconda3\lib\site-packages\conda\cli\main.py", line 152, in main
    return conda_exception_handler(_main, *args, **kwargs)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1371, in conda_exception_handler
    return_value = exception_handler(func, *args, **kwargs)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1082, in __call__
    return self.handle_exception(exc_val, exc_tb)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1126, in handle_exception
    return self.handle_unexpected_exception(exc_val, exc_tb)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1137, in handle_unexpected_exception
    self.print_unexpected_error_report(error_report)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1207, in print_unexpected_error_report
    from .cli.main_info import get_env_vars_str, get_main_info_str
  File "\Anaconda3\lib\site-packages\conda\cli\main_info.py", line 19, in <module>
    from ..core.index import _supplement_index_with_system
  File "\Anaconda3\lib\site-packages\conda\core\index.py", line 10, in <module>
    from .package_cache_data import PackageCacheData
  File "\Anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 14, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "\Anaconda3\lib\site-packages\conda\core\path_actions.py", line 30, in <module>
    from ..gateways.connection.download import download
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 39, in <module>
    from pip._vendor.requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'pip'

Updating Conda: conda update conda


  Traceback (most recent call last):
    File "\Anaconda3\lib\site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 580, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader'

Remainder of file ignored
Traceback (most recent call last):
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 21, in <module>
    from requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "\Anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 81, in do_call
    module = import_module(relative_mod, __name__.rsplit('.', 1)[0])
  File "\Anaconda3\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "\Anaconda3\lib\site-packages\conda\cli\main_update.py", line 8, in <module>
    from .install import install
  File "\Anaconda3\lib\site-packages\conda\cli\install.py", line 19, in <module>
    from ..core.index import calculate_channel_urls, get_index
  File "\Anaconda3\lib\site-packages\conda\core\index.py", line 10, in <module>
    from .package_cache_data import PackageCacheData
  File "\Anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 14, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "\Anaconda3\lib\site-packages\conda\core\path_actions.py", line 30, in <module>
    from ..gateways.connection.download import download
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 39, in <module>
    from pip._vendor.requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'pip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 21, in <module>
    from requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "\Anaconda3\Scripts\conda-script.py", line 12, in <module>
    sys.exit(main())
  File "\Anaconda3\lib\site-packages\conda\cli\main.py", line 152, in main
    return conda_exception_handler(_main, *args, **kwargs)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1371, in conda_exception_handler
    return_value = exception_handler(func, *args, **kwargs)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1082, in __call__
    return self.handle_exception(exc_val, exc_tb)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1126, in handle_exception
    return self.handle_unexpected_exception(exc_val, exc_tb)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1137, in handle_unexpected_exception
    self.print_unexpected_error_report(error_report)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1207, in print_unexpected_error_report
    from .cli.main_info import get_env_vars_str, get_main_info_str
  File "\Anaconda3\lib\site-packages\conda\cli\main_info.py", line 19, in <module>
    from ..core.index import _supplement_index_with_system
  File "\Anaconda3\lib\site-packages\conda\core\index.py", line 10, in <module>
    from .package_cache_data import PackageCacheData
  File "\Anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 14, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "\Anaconda3\lib\site-packages\conda\core\path_actions.py", line 30, in <module>
    from ..gateways.connection.download import download
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 39, in <module>
    from pip._vendor.requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'pip'

I tried upgrading pip as I've seen some suggestions but conda ended up deleting pip! and it didn't allow me to install it after that

conda install pip

  Traceback (most recent call last):
    File "\Anaconda3\lib\site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 580, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader'

Remainder of file ignored
Traceback (most recent call last):
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 21, in <module>
    from requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "\Anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 81, in do_call
    module = import_module(relative_mod, __name__.rsplit('.', 1)[0])
  File "\Anaconda3\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "\Anaconda3\lib\site-packages\conda\cli\main_install.py", line 8, in <module>
    from .install import install
  File "\Anaconda3\lib\site-packages\conda\cli\install.py", line 19, in <module>
    from ..core.index import calculate_channel_urls, get_index
  File "\Anaconda3\lib\site-packages\conda\core\index.py", line 10, in <module>
    from .package_cache_data import PackageCacheData
  File "\Anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 14, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "\Anaconda3\lib\site-packages\conda\core\path_actions.py", line 30, in <module>
    from ..gateways.connection.download import download
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 39, in <module>
    from pip._vendor.requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'pip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 21, in <module>
    from requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "\Anaconda3\Scripts\conda-script.py", line 12, in <module>
    sys.exit(main())
  File "\Anaconda3\lib\site-packages\conda\cli\main.py", line 152, in main
    return conda_exception_handler(_main, *args, **kwargs)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1371, in conda_exception_handler
    return_value = exception_handler(func, *args, **kwargs)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1082, in __call__
    return self.handle_exception(exc_val, exc_tb)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1126, in handle_exception
    return self.handle_unexpected_exception(exc_val, exc_tb)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1137, in handle_unexpected_exception
    self.print_unexpected_error_report(error_report)
  File "\Anaconda3\lib\site-packages\conda\exceptions.py", line 1207, in print_unexpected_error_report
    from .cli.main_info import get_env_vars_str, get_main_info_str
  File "\Anaconda3\lib\site-packages\conda\cli\main_info.py", line 19, in <module>
    from ..core.index import _supplement_index_with_system
  File "\Anaconda3\lib\site-packages\conda\core\index.py", line 10, in <module>
    from .package_cache_data import PackageCacheData
  File "\Anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 14, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "\Anaconda3\lib\site-packages\conda\core\path_actions.py", line 30, in <module>
    from ..gateways.connection.download import download
  File "\Anaconda3\lib\site-packages\conda\gateways\connection\__init__.py", line 39, in <module>
    from pip._vendor.requests import ConnectionError, HTTPError, Session
ModuleNotFoundError: No module named 'pip'

I installed pip through CMD and made sure pip-dscript.py was in Conda scripts, then tried to use it through Conda but got the same error:


  Traceback (most recent call last):
    File "\Anaconda3\lib\site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 580, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader'

Remainder of file ignored
\Anaconda3\python.exe: No module named pip

What steps reproduce the problem?

  1. Running spyder
  2. Running conda instructions

Paste Traceback/Error Below (if applicable)

traceback for calling Spyder


  Traceback (most recent call last):
  File "E:\Anaconda3\Scripts\spyder-script.py", line 6, in <module>
    from spyder.app.start import main
  File "E:\Anaconda3\lib\site-packages\spyder\app\start.py", line 33, in <module>
    from spyder.config.base import (get_conf_path, running_in_mac_app,
  File "E:\Anaconda3\lib\site-packages\spyder\config\base.py", line 30, in <module>
    from spyder.utils import encoding
  File "E:\Anaconda3\lib\site-packages\spyder\utils\encoding.py", line 25, in <module>
    from chardet.universaldetector import UniversalDetector
ModuleNotFoundError: No module named 'chardet'

Versions

Dependencies

conda info - is returing with an error issue to submit.

``` # packages in environment at \Anaconda3: # # Name Version Build Channel _anaconda_depends 2020.07 py37_0 _ipyw_jlab_nb_ext_conf 0.1.0 py37_0 _tflow_select 2.2.0 eigen absl-py 0.10.0 py37_0 aiodns 2.0.0 pypi_0 pypi aiohttp 3.6.2 py37he774522_0 aiohttp-socks 0.4.2 pypi_0 pypi alabaster 0.7.12 py37_0 anaconda custom py37_1 anaconda-client 1.7.2 py37_0 anaconda-navigator 1.9.12 py37_0 anaconda-project 0.8.4 py_0 appdirs 1.4.4 pypi_0 pypi ar-wordcloud 0.0.4 pypi_0 pypi arabic-reshaper 2.1.0 pypi_0 pypi argh 0.26.2 py37_0 argon2-cffi 20.1.0 py37he774522_1 asn1crypto 1.4.0 py_0 astor 0.8.1 py37_0 astroid 2.4.2 py37_0 astropy 4.0.1.post1 py37he774522_1 astunparse 1.6.3 pypi_0 pypi async-timeout 3.0.1 pypi_0 pypi async_generator 1.10 py37h28b3542_0 atomicwrites 1.4.0 py_0 attrs 20.2.0 py_0 audioread 2.1.8 pypi_0 pypi autopep8 1.5.4 py_0 babel 2.8.0 py_0 backcall 0.2.0 py_0 backports 1.0 py_2 backports.shutil_get_terminal_size 1.0.0 py37_2 bcrypt 3.2.0 py37he774522_0 beautifulsoup4 4.9.1 py37_0 billiard 3.6.3.0 pypi_0 pypi bitarray 1.5.3 py37he774522_0 bkcharts 0.2 py37_0 blas 1.0 mkl bleach 3.2.1 py_0 blinker 1.4 py37_0 blosc 1.20.0 h7bd577a_0 bokeh 2.2.1 py37_0 boto 2.49.0 py37_0 boto3 1.15.9 py_0 botocore 1.18.9 py_0 bottleneck 1.3.2 py37h2a96729_1 brotlipy 0.7.0 py37he774522_1000 bs4 0.0.1 pypi_0 pypi bzip2 1.0.8 he774522_0 ca-certificates 2020.7.22 0 cachetools 4.1.1 py_0 camel-tools 0.4.dev5 pypi_0 pypi cchardet 2.1.6 pypi_0 pypi certifi 2020.6.20 py37_0 cffi 1.14.3 py37h7a1dbc1_0 chardet 3.0.4 py37_1003 click 7.1.2 py_0 cloudpickle 1.6.0 py_0 clyent 1.2.2 py37_1 coala-utils 0.5.1 pypi_0 pypi colorama 0.4.3 py_0 comtypes 1.1.7 py37_1001 conda 4.8.5 py37_0 conda-build 3.17.8 py37_0 conda-env 2.6.0 1 conda-package-handling 1.6.1 py37h62dcd97_0 conda-verify 3.1.1 py37_0 console_shortcut 0.1.1 3 contextlib2 0.6.0.post1 py_0 crawl 0.5.5 pypi_0 pypi cryptography 3.1.1 py37h7a1dbc1_0 cssselect 1.1.0 pypi_0 pypi cudatoolkit 10.2.89 h74a9793_1 curl 7.71.1 h2a8f88b_1 cycler 0.10.0 py37_0 cython 0.29.21 py37ha925a31_0 cytoolz 0.11.0 py37he774522_0 dask 2.27.0 py_0 dask-core 2.27.0 py_0 decorator 4.4.2 py_0 defusedxml 0.6.0 py_0 diff-match-patch 20200713 py_0 dill 0.3.2 pypi_0 pypi distributed 2.28.0 py37_0 docopt 0.6.2 pypi_0 pypi docutils 0.15.2 py37_0 elasticsearch 7.8.0 pypi_0 pypi entrypoints 0.3 py37_0 et_xmlfile 1.0.1 py_1001 facebook-scraper 0.2.4 pypi_0 pypi fake-useragent 0.1.11 pypi_0 pypi farasapy 0.0.7 pypi_0 pypi fastcache 1.1.0 py37he774522_0 fasttext 0.9.2 pypi_0 pypi feedfinder2 0.0.4 pypi_0 pypi feedparser 5.2.1 pypi_0 pypi filelock 3.0.12 py_0 flake8 3.8.3 py_0 flashtext 2.7 pypi_0 pypi flask 1.1.2 py_0 freetype 2.10.2 hd328e21_0 fsspec 0.8.0 py_0 future 0.18.2 py37_1 gast 0.3.3 pypi_0 pypi gensim 3.8.0 py37hf9181ef_0 geographiclib 1.50 pypi_0 pypi geopy 2.0.0 pypi_0 pypi get_terminal_size 1.0.0 h38e98db_0 gevent 20.9.0 py37he774522_0 git 2.23.0 h6bb4b03_0 anaconda glob2 0.7 py_0 gmpy2 2.0.8 py37h0964b28_3 google-api-core 1.22.2 py37h21ff451_0 google-auth 1.22.0 py_0 google-auth-oauthlib 0.4.1 py_2 google-cloud-core 1.4.1 py_0 google-cloud-storage 1.31.0 py_0 google-crc32c 1.0.0 py37he774522_0 google-pasta 0.2.0 py_0 google-resumable-media 1.0.0 py_1 googleapis-common-protos 1.52.0 py37h21ff451_0 googletransx 2.4.2 pypi_0 pypi greenlet 0.4.17 py37he774522_0 grpcio 1.31.0 py37he7da953_0 h5py 2.10.0 py37h5e291fa_0 hdf5 1.10.4 h7ebc959_0 heapdict 1.0.1 py_0 html2text 2020.1.16 pypi_0 pypi html5lib 1.1 py_0 icc_rt 2019.0.0 h0cc432a_1 icu 58.2 ha925a31_3 idna 2.10 py_0 imageio 2.9.0 py_0 imagesize 1.2.0 py_0 importlib-metadata 1.7.0 py37_0 importlib_metadata 1.7.0 0 iniconfig 1.0.1 py_0 intel-openmp 2020.2 254 intervaltree 3.1.0 py_0 ipykernel 5.3.4 py37h5ca1d4c_0 ipython 7.18.1 py37h5ca1d4c_0 ipython_genutils 0.2.0 py37_0 ipywidgets 7.5.1 py_1 isort 5.5.4 py37_0 itsdangerous 1.1.0 py37_0 jdcal 1.4.1 py_0 jedi 0.17.1 py37_0 jieba3k 0.35.1 pypi_0 pypi jinja2 2.11.2 py_0 jmespath 0.10.0 py_0 joblib 0.16.0 py_0 jpeg 9b hb83a4c4_2 json5 0.9.5 py_0 jsonschema 3.2.0 py37_1 jupyter 1.0.0 py37_7 jupyter_client 6.1.7 py_0 jupyter_console 6.2.0 py_0 jupyter_core 4.6.3 py37_0 jupyterlab 2.2.6 py_0 jupyterlab_pygments 0.1.2 py_0 jupyterlab_server 1.2.0 py_0 keras 2.4.3 pypi_0 pypi keras-applications 1.0.8 py_1 keras-preprocessing 1.1.2 pypi_0 pypi keyring 21.4.0 py37_1 kiwisolver 1.2.0 py37h74a9793_0 krb5 1.18.2 hc04afaa_0 lazy-object-proxy 1.4.3 py37he774522_0 libarchive 3.4.2 h5e25573_0 libcrc32c 1.1.1 ha925a31_2 libcurl 7.71.1 h2a8f88b_1 libiconv 1.15 h1df5818_7 liblief 0.10.1 ha925a31_0 libllvm9 9.0.1 h21ff451_0 libpng 1.6.37 h2a8f88b_0 libprotobuf 3.13.0 h200bbdf_0 librosa 0.8.0 pypi_0 pypi libsodium 1.0.18 h62dcd97_0 libspatialindex 1.9.3 h33f27b4_0 libssh2 1.9.0 h7a1dbc1_1 libtiff 4.1.0 h56a325e_1 libxml2 2.9.10 h464c3ec_1 libxslt 1.1.34 he774522_0 llvmlite 0.34.0 py37h1a82afc_4 locket 0.2.0 py37_1 lxml 4.5.2 py37h1350720_0 lz4-c 1.9.2 h62dcd97_1 lzo 2.10 he774522_2 m2w64-gcc-libgfortran 5.3.0 6 m2w64-gcc-libs 5.3.0 7 m2w64-gcc-libs-core 5.3.0 7 m2w64-gmp 6.1.0 2 m2w64-libwinpthread-git 5.0.0.4634.697f757 2 markdown 3.2.2 py37_0 markupsafe 1.1.1 py37hfa6e2cd_1 matplotlib 3.3.1 0 matplotlib-base 3.3.1 py37hba9282a_0 mccabe 0.6.1 py37_1 mechanicalsoup 0.12.0 pypi_0 pypi menuinst 1.4.16 py37he774522_1 mistune 0.8.4 py37hfa6e2cd_1001 mkl 2020.2 256 mkl-service 2.3.0 py37hb782905_0 mkl_fft 1.2.0 py37h45dec08_0 mkl_random 1.1.1 py37h47e9c7a_0 mock 4.0.2 py_0 more-itertools 8.5.0 py_0 mpc 1.1.0 h7edee0f_1 mpfr 4.0.2 h62dcd97_1 mpir 3.0.0 hec2e145_1 mpmath 1.1.0 py37_0 msgpack-python 1.0.0 py37h74a9793_1 msys2-conda-epoch 20160418 1 multidict 4.7.6 py37he774522_1 multipledispatch 0.6.0 py37_0 navigator-updater 0.2.1 py37_0 nbclient 0.5.0 py_0 nbconvert 6.0.6 py37_0 nbformat 5.0.7 py_0 nest-asyncio 1.4.1 py_0 networkx 2.5 py_0 newspaper3k 0.2.8 pypi_0 pypi ninja 1.10.1 py37h7ef1ec2_0 nltk 3.5 py_0 nose 1.3.7 py37_1004 notebook 6.1.4 py37_0 numba 0.51.2 py37hf9181ef_1 numexpr 2.7.1 py37h25d0782_0 numpy 1.18.5 pypi_0 pypi numpy-base 1.19.1 py37ha3acd2a_0 numpydoc 1.1.0 py_0 oauthlib 3.1.0 py_0 olefile 0.46 py37_0 openpyxl 3.0.5 py_0 openssl 1.1.1h he774522_0 opt_einsum 3.1.0 py_0 packaging 20.4 py_0 pandas 1.1.1 py37ha925a31_0 pandoc 2.10.1 0 pandocfilters 1.4.2 py37_1 paramiko 2.7.2 py_0 parse 1.15.0 pypi_0 pypi parso 0.7.0 py_0 partd 1.1.0 py_0 path 15.0.0 py37_0 path.py 12.5.0 0 pathlib2 2.3.5 py37_1 pathtools 0.1.2 py_1 patsy 0.5.1 py37_0 pep8 1.7.1 py37_0 pexpect 4.8.0 py37_1 pickleshare 0.7.5 py37_1001 pillow 7.2.0 py37hcc1f983_0 pip 20.1.1 pypi_0 pypi pkginfo 1.5.0.1 py37_0 pluggy 0.13.1 py37_0 ply 3.11 py37_0 pooch 1.1.1 pypi_0 pypi powershell_shortcut 0.0.1 2 prometheus_client 0.8.0 py_0 prompt-toolkit 3.0.7 py_0 prompt_toolkit 3.0.7 0 protobuf 3.13.0 pypi_0 pypi psutil 5.7.2 py37he774522_0 py 1.9.0 py_0 py-lief 0.10.1 py37ha925a31_0 pyarabic 0.6.7 pypi_0 pypi pyasn1-modules 0.2.8 py_0 pybind11 2.5.0 py37h74a9793_0 pycares 3.1.1 pypi_0 pypi pycodestyle 2.6.0 py_0 pycosat 0.6.3 py37he774522_0 pycparser 2.20 py_2 pycrypto 2.6.1 py37he774522_10 pycurl 7.43.0.5 py37h7a1dbc1_0 pydocstyle 5.1.1 py_0 pyee 7.0.2 pypi_0 pypi pyflakes 2.2.0 py_0 pygments 2.7.1 py_0 pyjwt 1.7.1 py37_0 pylint 2.6.0 py37_0 pymongo 3.11.0 pypi_0 pypi pymysql 0.10.0 pypi_0 pypi pynacl 1.4.0 py37h62dcd97_1 pyodbc 4.0.30 py37ha925a31_0 pyopenssl 19.1.0 py_1 pyparsing 2.4.7 py_0 pyppeteer 0.2.2 pypi_0 pypi pyqt 5.9.2 py37h6538335_2 pyquery 1.4.1 pypi_0 pypi pyreadline 2.1 py37_1 pyrsistent 0.17.3 py37he774522_0 pysocks 1.7.1 py37_1 pytables 3.6.1 py37h1da0976_0 pytest 6.0.2 py37_0 python 3.7.3 h8c8aaf0_0 python-bidi 0.4.2 pypi_0 pypi python-dateutil 2.8.1 py_0 python-jsonrpc-server 0.4.0 py_0 python-language-server 0.35.1 py_0 python-libarchive-c 2.9 py_0 pytorch 1.6.0 py3.7_cuda102_cudnn7_0 pytorch pywavelets 1.1.1 py37he774522_0 pywin32 227 py37he774522_1 pywin32-ctypes 0.2.0 py37_1001 pywinpty 0.5.7 py37_0 pyyaml 5.3.1 py37he774522_1 pyzmq 19.0.2 py37ha925a31_1 qdarkstyle 2.8.1 py_0 qt 5.9.7 vc14h73c81de_0 qtawesome 0.7.2 py_0 qtconsole 4.7.7 py_0 qtpy 1.9.0 py_0 regex 2020.7.14 py37he774522_0 requests 2.24.0 py_0 requests-file 1.5.1 pypi_0 pypi requests-html 0.10.0 pypi_0 pypi requests-oauthlib 1.3.0 py_0 resampy 0.2.2 pypi_0 pypi rope 0.17.0 py_0 rsa 4.6 py_0 rtree 0.9.4 py37h21ff451_1 ruamel_yaml 0.15.87 py37he774522_1 s3transfer 0.3.3 py37_1 sacremoses 0.0.43 pypi_0 pypi scattertext 0.0.2.68 pypi_0 pypi schedule 0.6.0 pypi_0 pypi scikit-image 0.16.2 py37h47e9c7a_0 scikit-learn 0.23.2 py37h47e9c7a_0 scipy 1.4.1 pypi_0 pypi seaborn 0.11.0 py_0 send2trash 1.5.0 py37_0 sentencepiece 0.1.91 pypi_0 pypi setuptools 49.6.0 py37_1 simplegeneric 0.8.1 py37_2 singledispatch 3.4.0.3 py37_1000 sip 4.19.8 py37h6538335_0 sklearn 0.0 pypi_0 pypi smart_open 2.2.0 py_0 snappy 1.1.8 h33f27b4_0 snowballstemmer 2.0.0 py_0 sortedcollections 1.2.1 py_0 sortedcontainers 2.2.2 py_0 soundfile 0.10.3.post1 pypi_0 pypi soupsieve 2.0.1 py_0 sphinx 3.2.1 py_0 sphinxcontrib 1.0 py37_1 sphinxcontrib-applehelp 1.0.2 py_0 sphinxcontrib-devhelp 1.0.2 py_0 sphinxcontrib-htmlhelp 1.0.3 py_0 sphinxcontrib-jsmath 1.0.1 py_0 sphinxcontrib-qthelp 1.0.3 py_0 sphinxcontrib-serializinghtml 1.1.4 py_0 sphinxcontrib-websupport 1.2.4 py_0 spyder 4.1.5 py37_0 spyder-kernels 1.9.4 py37_0 spyder-notebook 0.3.0 py_0 spyder-ide sqlalchemy 1.3.19 py37he774522_0 sqlite 3.33.0 h2a8f88b_0 statsmodels 0.11.1 py37he774522_0 sympy 1.6.2 py37_0 tbb 2020.3 h74a9793_0 tblib 1.7.0 py_0 tensorboard 2.2.1 pyh532a8cf_0 tensorboard-plugin-wit 1.6.0 py_0 tensorflow 2.1.0 eigen_py37hd727fc0_0 tensorflow-base 2.1.0 eigen_py37h49b2757_0 tensorflow-estimator 2.3.0 pypi_0 pypi termcolor 1.1.0 py37_1 terminado 0.8.3 py37_0 testpath 0.4.4 py_0 textblob 0.15.3 pypi_0 pypi textblob-ar 0.0.2 pypi_0 pypi threadpoolctl 2.1.0 pyh5ca1d4c_0 tinysegmenter 0.3 pypi_0 pypi tk 8.6.10 he774522_0 tldextract 2.2.2 pypi_0 pypi tokenizers 0.8.1rc1 pypi_0 pypi toml 0.10.1 py_0 toolz 0.11.1 py_0 torchvision 0.7.0 py37_cu102 pytorch tornado 6.0.4 py37he774522_1 tqdm 4.49.0 py_0 traitlets 5.0.4 py_0 transformers 3.0.2 pypi_0 pypi twarc 1.10.1 pypi_0 pypi tweepy 3.9.0 pypi_0 pypi twint 2.1.20 pypi_0 pypi twitter-scraper 0.4.2 pypi_0 pypi twitterscraper 1.4.0 pypi_0 pypi typed-ast 1.4.1 py37he774522_0 typing_extensions 3.7.4.3 py_0 ujson 3.2.0 py37ha925a31_0 unicodecsv 0.14.1 py37_0 urllib3 1.25.10 py_0 vc 14.1 h0510ff6_4 vs2015_runtime 14.16.27012 hf0eaf9b_3 w3lib 1.22.0 pypi_0 pypi watchdog 0.10.3 py37_0 wcwidth 0.2.5 py_0 webencodings 0.5.1 py37_1 websockets 8.1 pypi_0 pypi werkzeug 0.16.1 py_0 wheel 0.35.1 py_0 widgetsnbextension 3.5.1 py37_0 win_inet_pton 1.1.0 py37_0 win_unicode_console 0.5 py37_0 wincertstore 0.2 py37_0 winpty 0.4.3 4 wordcloud 1.7.0 pypi_0 pypi wrapt 1.11.2 py37he774522_0 xlrd 1.2.0 py37_0 xlsxwriter 1.3.4 py_0 xlwings 0.20.7 py37_0 xlwt 1.3.0 py37_0 xmltodict 0.12.0 py_0 xz 5.2.5 h62dcd97_0 yaml 0.2.5 he774522_0 yapf 0.30.0 py_0 yarl 1.4.2 pypi_0 pypi zeromq 4.3.2 ha925a31_3 zict 2.0.0 py_0 zipp 3.1.0 py_0 zlib 1.2.11 h62dcd97_4 zope 1.0 py37_1 zope.event 4.4 py37_0 zope.interface 5.1.0 py37he774522_0 zstd 1.4.5 h04227a9_0 ```
Sue-Fwl commented 3 years ago

Update: I tried solving one issue after the other: First there is the line:

Error processing line 3 of Anaconda3\lib\site-packages\googleapis_common_protos-1.52.0-py3.7-nspkg.pth

Opened the file and added a new line after each semicolon of this line:

import sys, types, os;

Next problem was so many missing modules and METADATA, I don't know why or how they suddenly disappeared !!:

ModuleNotFoundError: No module named 'requests'
No module named 'chardet'
\Anaconda3\lib\site-packages\numpy\__init__.py:138: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service

six needed Numpy (for some reason it suddenly broke?!) -Re-install numpy/Remove it's folders/copy correct folders and replace

At this point conda is working fine, but calling spyder produce the following errors that I had to fix:

ModuleNotFoundError: No module named 'six'
FileNotFoundError: [Errno 2] No such file or directory: 'e:\\anaconda3\\lib\\site-packages\\idna-2.10.dist-info\\METADATA'
FileNotFoundError: [Errno 2] No such file or directory: 'e:\\anaconda3\\lib\\site-packages\\googleapis_common_protos-1.52.0.dist-info\\METADATA'
FileNotFoundError: [Errno 2] No such file or directory: 'e:\\anaconda3\\lib\\site-packages\\cachetools-4.1.1.dist-info\\METADATA'

ModuleNotFoundError: No module named 'pytz'

For all modules: Install it via python pip e.g: pip install googleapis-common-protos or copy it from python directory if installed there and had the METADATA file. or just download it separately and replace the ones in Anaconda folder.

Sometimes only the METADATA is missing so if the same package was downloaded in the python/lib/site-packages you can find the folder and copy from it the METADATA file and that solves the problem.

juanis2112 commented 3 years ago

Hi @Sue-Fwl thanks for opening this and for your detailed explanation. I'm not sure what is the original reason for your problem, but now it seems that your working environment is broken due to mixing pip and conda package installation. I suggest you follow the steps on this video https://youtu.be/Ul79ihg41Rs for deleting your installation and starting a new one in the correct way to get back spyder working. In case the steps in this video don't work, please let us know.

Sue-Fwl commented 3 years ago

Problem Description

When I launch python, the rectangled logo appears with "Initializing" on it. Then it closes and an error is displayed through anaconda prompt. I tried installing the missing module "urllib3" but

Requirement already satisfied: urllib3 in e:\anaconda3\lib\site-packages (1.25.10)

What steps reproduce the problem?

  1. Running spyder

Paste Traceback/Error Below (if applicable)

traceback for calling Spyder


  Traceback (most recent call last):
  File "E:\Anaconda3\Scripts\spyder-script.py", line 10, in <module>
    sys.exit(main())
  File "E:\Anaconda3\lib\site-packages\spyder\app\start.py", line 205, in main
    mainwindow.main()
  File "E:\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 3651, in main
    mainwindow = run_spyder(app, options, args)
  File "E:\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 3526, in run_spyder
    main.setup()
  File "E:\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 857, in setup
    from spyder.plugins.completion.plugin import CompletionManager
  File "E:\Anaconda3\lib\site-packages\spyder\plugins\completion\plugin.py", line 29, in <module>
    from spyder.plugins.completion.kite.plugin import KiteCompletionPlugin
  File "E:\Anaconda3\lib\site-packages\spyder\plugins\completion\kite\plugin.py", line 23, in <module>
    from spyder.plugins.completion.kite.client import KiteClient
  File "E:\Anaconda3\lib\site-packages\spyder\plugins\completion\kite\client.py", line 18, in <module>
    import requests
  File "E:\Anaconda3\lib\site-packages\requests\__init__.py", line 46, in <module>
    from .exceptions import RequestsDependencyWarning
  File "E:\Anaconda3\lib\site-packages\requests\exceptions.py", line 9, in <module>
    from urllib3.exceptions import HTTPError as BaseHTTPError
ModuleNotFoundError: No module named 'urllib3.exceptions'

Dependencies

```python # packages in environment at E:\Anaconda3: # # Name Version Build Channel _anaconda_depends 2020.07 py37_0 _ipyw_jlab_nb_ext_conf 0.1.0 py37_0 _tflow_select 2.2.0 eigen absl-py 0.10.0 py37_0 aiodns 2.0.0 pypi_0 pypi aiohttp 3.6.2 py37he774522_0 aiohttp-socks 0.4.2 pypi_0 pypi alabaster 0.7.12 py37_0 anaconda custom py37_1 anaconda-client 1.7.2 py37_0 anaconda-navigator 1.9.12 py37_0 anaconda-project 0.8.4 py_0 appdirs 1.4.4 pypi_0 pypi ar-wordcloud 0.0.4 pypi_0 pypi arabic-reshaper 2.1.0 pypi_0 pypi argh 0.26.2 py37_0 argon2-cffi 20.1.0 py37he774522_1 asn1crypto 1.4.0 py_0 astor 0.8.1 py37_0 astroid 2.4.2 py37_0 astropy 4.0.1.post1 py37he774522_1 astunparse 1.6.3 pypi_0 pypi async-timeout 3.0.1 pypi_0 pypi async_generator 1.10 py37h28b3542_0 atomicwrites 1.4.0 py_0 attrs 20.2.0 py_0 audioread 2.1.8 pypi_0 pypi autopep8 1.5.4 py_0 babel 2.8.0 py_0 backcall 0.2.0 py_0 backports 1.0 py_2 backports.shutil_get_terminal_size 1.0.0 py37_2 bcrypt 3.2.0 py37he774522_0 beautifulsoup4 4.9.1 py37_0 billiard 3.6.3.0 pypi_0 pypi bitarray 1.5.3 py37he774522_0 bkcharts 0.2 py37_0 blas 1.0 mkl bleach 3.2.1 py_0 blinker 1.4 py37_0 blosc 1.20.0 h7bd577a_0 bokeh 2.2.1 py37_0 boto 2.49.0 py37_0 boto3 1.15.9 py_0 botocore 1.18.9 py_0 bottleneck 1.3.2 py37h2a96729_1 brotlipy 0.7.0 py37he774522_1000 bs4 0.0.1 pypi_0 pypi bzip2 1.0.8 he774522_0 ca-certificates 2020.7.22 0 cachetools 4.1.1 py_0 camel-tools 0.4.dev5 pypi_0 pypi cchardet 2.1.6 pypi_0 pypi certifi 2020.6.20 py37_0 cffi 1.14.3 py37h7a1dbc1_0 chardet 3.0.4 py37_1003 click 7.1.2 py_0 cloudpickle 1.6.0 py_0 clyent 1.2.2 py37_1 coala-utils 0.5.1 pypi_0 pypi colorama 0.4.3 py_0 comtypes 1.1.7 py37_1001 conda 4.8.5 py37_0 conda-build 3.17.8 py37_0 conda-env 2.6.0 1 conda-package-handling 1.6.1 py37h62dcd97_0 conda-verify 3.1.1 py37_0 console_shortcut 0.1.1 3 contextlib2 0.6.0.post1 py_0 crawl 0.5.5 pypi_0 pypi cryptography 3.1.1 py37h7a1dbc1_0 cssselect 1.1.0 pypi_0 pypi cudatoolkit 10.2.89 h74a9793_1 curl 7.71.1 h2a8f88b_1 cycler 0.10.0 py37_0 cython 0.29.21 py37ha925a31_0 cytoolz 0.11.0 py37he774522_0 dask 2.27.0 py_0 dask-core 2.27.0 py_0 decorator 4.4.2 py_0 defusedxml 0.6.0 py_0 diff-match-patch 20200713 py_0 dill 0.3.2 pypi_0 pypi distributed 2.28.0 py37_0 docopt 0.6.2 pypi_0 pypi docutils 0.15.2 py37_0 elasticsearch 7.8.0 pypi_0 pypi entrypoints 0.3 py37_0 et_xmlfile 1.0.1 py_1001 facebook-scraper 0.2.4 pypi_0 pypi fake-useragent 0.1.11 pypi_0 pypi farasapy 0.0.7 pypi_0 pypi fastcache 1.1.0 py37he774522_0 fasttext 0.9.2 pypi_0 pypi feedfinder2 0.0.4 pypi_0 pypi feedparser 5.2.1 pypi_0 pypi filelock 3.0.12 py_0 flake8 3.8.3 py_0 flashtext 2.7 pypi_0 pypi flask 1.1.2 py_0 freetype 2.10.2 hd328e21_0 fsspec 0.8.0 py_0 future 0.18.2 py37_1 gast 0.3.3 pypi_0 pypi gensim 3.8.0 py37hf9181ef_0 geographiclib 1.50 pypi_0 pypi geopy 2.0.0 pypi_0 pypi get_terminal_size 1.0.0 h38e98db_0 gevent 20.9.0 py37he774522_0 git 2.23.0 h6bb4b03_0 anaconda glob2 0.7 py_0 gmpy2 2.0.8 py37h0964b28_3 google-api-core 1.22.2 py37h21ff451_0 google-auth 1.22.0 py_0 google-auth-oauthlib 0.4.1 py_2 google-cloud-core 1.4.1 py_0 google-cloud-storage 1.31.0 py_0 google-crc32c 1.0.0 py37he774522_0 google-pasta 0.2.0 py_0 google-resumable-media 1.0.0 py_1 googleapis-common-protos 1.52.0 py37h21ff451_0 googletransx 2.4.2 pypi_0 pypi greenlet 0.4.17 py37he774522_0 grpcio 1.31.0 py37he7da953_0 h5py 2.10.0 py37h5e291fa_0 hdf5 1.10.4 h7ebc959_0 heapdict 1.0.1 py_0 html2text 2020.1.16 pypi_0 pypi html5lib 1.1 py_0 icc_rt 2019.0.0 h0cc432a_1 icu 58.2 ha925a31_3 idna 2.10 py_0 imageio 2.9.0 py_0 imagesize 1.2.0 py_0 importlib-metadata 1.7.0 py37_0 importlib_metadata 1.7.0 0 iniconfig 1.0.1 py_0 intel-openmp 2020.2 254 intervaltree 3.1.0 py_0 ipykernel 5.3.4 py37h5ca1d4c_0 ipython 7.18.1 py37h5ca1d4c_0 ipython_genutils 0.2.0 py37_0 ipywidgets 7.5.1 py_1 isort 5.5.4 py37_0 itsdangerous 1.1.0 py37_0 jdcal 1.4.1 py_0 jedi 0.17.1 py37_0 jieba3k 0.35.1 pypi_0 pypi jinja2 2.11.2 py_0 jmespath 0.10.0 py_0 joblib 0.16.0 py_0 jpeg 9b hb83a4c4_2 json5 0.9.5 py_0 jsonschema 3.2.0 py37_1 jupyter 1.0.0 py37_7 jupyter_client 6.1.7 py_0 jupyter_console 6.2.0 py_0 jupyter_core 4.6.3 py37_0 jupyterlab 2.2.6 py_0 jupyterlab_pygments 0.1.2 py_0 jupyterlab_server 1.2.0 py_0 keras 2.4.3 pypi_0 pypi keras-applications 1.0.8 py_1 keras-preprocessing 1.1.2 pypi_0 pypi keyring 21.4.0 py37_1 kiwisolver 1.2.0 py37h74a9793_0 krb5 1.18.2 hc04afaa_0 lazy-object-proxy 1.4.3 py37he774522_0 libarchive 3.4.2 h5e25573_0 libcrc32c 1.1.1 ha925a31_2 libcurl 7.71.1 h2a8f88b_1 libiconv 1.15 h1df5818_7 liblief 0.10.1 ha925a31_0 libllvm9 9.0.1 h21ff451_0 libpng 1.6.37 h2a8f88b_0 libprotobuf 3.13.0 h200bbdf_0 librosa 0.8.0 pypi_0 pypi libsodium 1.0.18 h62dcd97_0 libspatialindex 1.9.3 h33f27b4_0 libssh2 1.9.0 h7a1dbc1_1 libtiff 4.1.0 h56a325e_1 libxml2 2.9.10 h464c3ec_1 libxslt 1.1.34 he774522_0 llvmlite 0.34.0 py37h1a82afc_4 locket 0.2.0 py37_1 lxml 4.5.2 py37h1350720_0 lz4-c 1.9.2 h62dcd97_1 lzo 2.10 he774522_2 m2w64-gcc-libgfortran 5.3.0 6 m2w64-gcc-libs 5.3.0 7 m2w64-gcc-libs-core 5.3.0 7 m2w64-gmp 6.1.0 2 m2w64-libwinpthread-git 5.0.0.4634.697f757 2 markdown 3.2.2 py37_0 markupsafe 1.1.1 py37hfa6e2cd_1 matplotlib 3.3.1 0 matplotlib-base 3.3.1 py37hba9282a_0 mccabe 0.6.1 py37_1 mechanicalsoup 0.12.0 pypi_0 pypi menuinst 1.4.16 py37he774522_1 mistune 0.8.4 py37hfa6e2cd_1001 mkl 2020.2 256 mkl-service 2.3.0 py37hb782905_0 mkl_fft 1.2.0 py37h45dec08_0 mkl_random 1.1.1 py37h47e9c7a_0 mock 4.0.2 py_0 more-itertools 8.5.0 py_0 mpc 1.1.0 h7edee0f_1 mpfr 4.0.2 h62dcd97_1 mpir 3.0.0 hec2e145_1 mpmath 1.1.0 py37_0 msgpack-python 1.0.0 py37h74a9793_1 msys2-conda-epoch 20160418 1 multidict 4.7.6 py37he774522_1 multipledispatch 0.6.0 py37_0 navigator-updater 0.2.1 py37_0 nbclient 0.5.0 py_0 nbconvert 6.0.6 py37_0 nbformat 5.0.7 py_0 nest-asyncio 1.4.1 py_0 networkx 2.5 py_0 newspaper3k 0.2.8 pypi_0 pypi ninja 1.10.1 py37h7ef1ec2_0 nltk 3.5 py_0 nose 1.3.7 py37_1004 notebook 6.1.4 py37_0 numba 0.51.2 py37hf9181ef_1 numexpr 2.7.1 py37h25d0782_0 numpy 1.18.5 pypi_0 pypi numpydoc 1.1.0 py_0 oauthlib 3.1.0 py_0 olefile 0.46 py37_0 openpyxl 3.0.5 py_0 openssl 1.1.1h he774522_0 opt_einsum 3.1.0 py_0 packaging 20.4 py_0 pandas 1.1.1 py37ha925a31_0 pandoc 2.10.1 0 pandocfilters 1.4.2 py37_1 paramiko 2.7.2 py_0 parse 1.15.0 pypi_0 pypi parso 0.7.0 py_0 partd 1.1.0 py_0 path 15.0.0 py37_0 path.py 12.5.0 0 pathlib2 2.3.5 py37_1 pathtools 0.1.2 py_1 patsy 0.5.1 py37_0 pep8 1.7.1 py37_0 pexpect 4.8.0 py37_1 pickleshare 0.7.5 py37_1001 pillow 7.2.0 py37hcc1f983_0 pip 20.1.1 pypi_0 pypi pkginfo 1.5.0.1 py37_0 pluggy 0.13.1 py37_0 ply 3.11 py37_0 pooch 1.1.1 pypi_0 pypi powershell_shortcut 0.0.1 2 prometheus_client 0.8.0 py_0 prompt-toolkit 3.0.7 py_0 prompt_toolkit 3.0.7 0 protobuf 3.13.0 pypi_0 pypi psutil 5.7.2 py37he774522_0 py 1.9.0 py_0 py-lief 0.10.1 py37ha925a31_0 pyarabic 0.6.7 pypi_0 pypi pyasn1-modules 0.2.8 py_0 pybind11 2.5.0 py37h74a9793_0 pycares 3.1.1 pypi_0 pypi pycodestyle 2.6.0 py_0 pycosat 0.6.3 py37he774522_0 pycparser 2.20 py_2 pycrypto 2.6.1 py37he774522_10 pycurl 7.43.0.5 py37h7a1dbc1_0 pydocstyle 5.1.1 py_0 pyee 7.0.2 pypi_0 pypi pyflakes 2.2.0 py_0 pygments 2.7.1 py_0 pyjwt 1.7.1 py37_0 pylint 2.6.0 py37_0 pymongo 3.11.0 pypi_0 pypi pymysql 0.10.0 pypi_0 pypi pynacl 1.4.0 py37h62dcd97_1 pyodbc 4.0.30 py37ha925a31_0 pyopenssl 19.1.0 py_1 pyparsing 2.4.7 py_0 pyppeteer 0.2.2 pypi_0 pypi pyqt 5.9.2 py37h6538335_2 pyquery 1.4.1 pypi_0 pypi pyreadline 2.1 py37_1 pyrsistent 0.17.3 py37he774522_0 pysocks 1.7.1 py37_1 pytables 3.6.1 py37h1da0976_0 pytest 6.0.2 py37_0 python 3.7.3 h8c8aaf0_0 python-bidi 0.4.2 pypi_0 pypi python-dateutil 2.8.1 py_0 python-jsonrpc-server 0.4.0 py_0 python-language-server 0.35.1 py_0 python-libarchive-c 2.9 py_0 pytorch 1.6.0 py3.7_cuda102_cudnn7_0 pytorch pytz 2020.1 pypi_0 pypi pywavelets 1.1.1 py37he774522_0 pywin32 227 py37he774522_1 pywin32-ctypes 0.2.0 py37_1001 pywinpty 0.5.7 py37_0 pyyaml 5.3.1 py37he774522_1 pyzmq 19.0.2 py37ha925a31_1 qdarkstyle 2.8.1 py_0 qt 5.9.7 vc14h73c81de_0 qtawesome 0.7.2 py_0 qtconsole 4.7.7 py_0 qtpy 1.9.0 py_0 regex 2020.7.14 py37he774522_0 requests 2.24.0 py_0 requests-file 1.5.1 pypi_0 pypi requests-html 0.10.0 pypi_0 pypi requests-oauthlib 1.3.0 py_0 resampy 0.2.2 pypi_0 pypi rope 0.17.0 py_0 rsa 4.6 py_0 rtree 0.9.4 py37h21ff451_1 ruamel_yaml 0.15.87 py37he774522_1 s3transfer 0.3.3 py37_1 sacremoses 0.0.43 pypi_0 pypi scattertext 0.0.2.68 pypi_0 pypi schedule 0.6.0 pypi_0 pypi scikit-image 0.16.2 py37h47e9c7a_0 scikit-learn 0.23.2 py37h47e9c7a_0 scipy 1.4.1 pypi_0 pypi seaborn 0.11.0 py_0 send2trash 1.5.0 py37_0 sentencepiece 0.1.91 pypi_0 pypi setuptools 49.6.0 py37_1 simplegeneric 0.8.1 py37_2 singledispatch 3.4.0.3 py37_1000 sip 4.19.8 py37h6538335_0 six 1.15.0 pypi_0 pypi sklearn 0.0 pypi_0 pypi smart_open 2.2.0 py_0 snappy 1.1.8 h33f27b4_0 snowballstemmer 2.0.0 py_0 sortedcollections 1.2.1 py_0 sortedcontainers 2.2.2 py_0 soundfile 0.10.3.post1 pypi_0 pypi soupsieve 2.0.1 py_0 sphinx 3.2.1 py_0 sphinxcontrib 1.0 py37_1 sphinxcontrib-applehelp 1.0.2 py_0 sphinxcontrib-devhelp 1.0.2 py_0 sphinxcontrib-htmlhelp 1.0.3 py_0 sphinxcontrib-jsmath 1.0.1 py_0 sphinxcontrib-qthelp 1.0.3 py_0 sphinxcontrib-serializinghtml 1.1.4 py_0 sphinxcontrib-websupport 1.2.4 py_0 spyder 4.1.5 py37_0 spyder-kernels 1.9.4 py37_0 spyder-notebook 0.3.0 py_0 spyder-ide sqlalchemy 1.3.19 py37he774522_0 sqlite 3.33.0 h2a8f88b_0 statsmodels 0.11.1 py37he774522_0 sympy 1.6.2 py37_0 tbb 2020.3 h74a9793_0 tblib 1.7.0 py_0 tensorboard 2.2.1 pyh532a8cf_0 tensorboard-plugin-wit 1.6.0 py_0 tensorflow 2.1.0 eigen_py37hd727fc0_0 tensorflow-base 2.1.0 eigen_py37h49b2757_0 tensorflow-estimator 2.3.0 pypi_0 pypi termcolor 1.1.0 py37_1 terminado 0.8.3 py37_0 testpath 0.4.4 py_0 textblob 0.15.3 pypi_0 pypi textblob-ar 0.0.2 pypi_0 pypi threadpoolctl 2.1.0 pyh5ca1d4c_0 tinysegmenter 0.3 pypi_0 pypi tk 8.6.10 he774522_0 tldextract 2.2.2 pypi_0 pypi tokenizers 0.8.1rc1 pypi_0 pypi toml 0.10.1 py_0 toolz 0.11.1 py_0 torchvision 0.7.0 py37_cu102 pytorch tornado 6.0.4 py37he774522_1 tqdm 4.49.0 py_0 traitlets 5.0.4 py_0 transformers 3.0.2 pypi_0 pypi twarc 1.10.1 pypi_0 pypi tweepy 3.9.0 pypi_0 pypi twint 2.1.20 pypi_0 pypi twitter-scraper 0.4.2 pypi_0 pypi twitterscraper 1.4.0 pypi_0 pypi typed-ast 1.4.1 py37he774522_0 typing_extensions 3.7.4.3 py_0 ujson 3.2.0 py37ha925a31_0 unicodecsv 0.14.1 py37_0 urllib3 1.25.10 py_0 vc 14.1 h0510ff6_4 vs2015_runtime 14.16.27012 hf0eaf9b_3 w3lib 1.22.0 pypi_0 pypi watchdog 0.10.3 py37_0 wcwidth 0.2.5 py_0 webencodings 0.5.1 py37_1 websockets 8.1 pypi_0 pypi werkzeug 0.16.1 py_0 wheel 0.35.1 py_0 widgetsnbextension 3.5.1 py37_0 win_inet_pton 1.1.0 py37_0 win_unicode_console 0.5 py37_0 wincertstore 0.2 py37_0 winpty 0.4.3 4 wordcloud 1.7.0 pypi_0 pypi wrapt 1.11.2 py37he774522_0 xlrd 1.2.0 py37_0 xlsxwriter 1.3.4 py_0 xlwings 0.20.7 py37_0 xlwt 1.3.0 py37_0 xmltodict 0.12.0 py_0 xz 5.2.5 h62dcd97_0 yaml 0.2.5 he774522_0 yapf 0.30.0 py_0 yarl 1.4.2 pypi_0 pypi zeromq 4.3.2 ha925a31_3 zict 2.0.0 py_0 zipp 3.1.0 py_0 zlib 1.2.11 h62dcd97_4 zope 1.0 py37_1 zope.event 4.4 py37_0 zope.interface 5.1.0 py37he774522_0 zstd 1.4.5 h04227a9_0 ```
Sue-Fwl commented 3 years ago

Hi @Sue-Fwl thanks for opening this and for your detailed explanation. I'm not sure what is the original reason for your problem, but now it seems that your working environment is broken due to mixing pip and conda package installation. I suggest you follow the steps on this video https://youtu.be/Ul79ihg41Rs for deleting your installation and starting a new one in the correct way to get back spyder working. In case the steps in this video don't work, please let us know.

Thanks for following up, was writing a follow up and didn't see your answer. I was trying to avoid uninstalling unless I have to.

Sue-Fwl commented 3 years ago

@juanis2112 The video was very informative thank you! I reinstalled Spyder on a clean environment and glad to inform you that everything is working fine and I even found the last session reloaded!

However, I got a module import error when importing Keras:

ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow`

And I just remembered that I had this error before running into all these issues, and that I upgraded Tensorflow using pip and didn't think much about it.

So should I now upgrade it through conda on my environment or should I follow the command?

Sue-Fwl commented 3 years ago

After searching for an answer, I think "Keras requires TensorFlow 2.2 or higher" was a factor in producing this error. Because as I read TensorFlow is sometimes troublesome on Win.

I solved the issue by downgrading conda install Keras == 2.3.1 to match the ver of Tensorflow ==1.14.0 , then downloading conda install tensorflow-gpu==1.14.0

Related dep: numpy == 1.18.5

Now I'm not getting any errors, other than the same future warning I got at the beginning:

E:\Anaconda3\lib\site-packages\tensorflow\python\framework\dtypes.py:
516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])

If it's not a problem for my current setup, I would close this issue as resolved. Thanks.

ccordoba12 commented 3 years ago

If it's not a problem for my current setup, I would close this issue as resolved.

I don't think it is because it's a warning, not an error.

Sue-Fwl commented 3 years ago

Appreciate your time.