Cannnot open any apps on anaconda navigator - anaconda

Whenever I try to open any apps on anaconda navigator (such as Spyder), I get this message. I am almost sure that is a problem with the path but I cannot resolve it.
Traceback (most recent call last):
File "C:\Users\Windows\anaconda3\lib\site-packages\spyder\app\utils.py", line 281, in create_window
main.setup()
File "C:\Users\Windows\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 772, in setup
from spyder.plugins.help.utils.sphinxify import CSS_PATH, DARK_CSS_PATH
File "C:\Users\Windows\anaconda3\lib\site-packages\spyder\plugins\help\utils\sphinxify.py", line 34, in
from jinja2 import Environment, FileSystemLoader
File "C:\Users\Windows\anaconda3\lib\site-packages\jinja2\__init__.py", line 12, in
from .environment import Environment
File "C:\Users\Windows\anaconda3\lib\site-packages\jinja2\environment.py", line 25, in
from .defaults import BLOCK_END_STRING
File "C:\Users\Windows\anaconda3\lib\site-packages\jinja2\defaults.py", line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "C:\Users\Windows\anaconda3\lib\site-packages\jinja2\filters.py", line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\Windows\anaconda3\lib\site-packages\markupsafe\__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Windows\anaconda3\Scripts\spyder-script.py", line 10, in
sys.exit(main())
File "C:\Users\Windows\anaconda3\lib\site-packages\spyder\app\start.py", line 237, in main
mainwindow.main(options, args)
File "C:\Users\Windows\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 1992, in main
mainwindow = create_window(MainWindow, app, splash, options, args)
File "C:\Users\Windows\anaconda3\lib\site-packages\spyder\app\utils.py", line 283, in create_window
if main.console is not None:
File "C:\Users\Windows\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 1088, in __getattr__
return self.get_plugin(self._INTERNAL_PLUGINS_MAPPING[attr])
File "C:\Users\Windows\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 165, in get_plugin
raise SpyderAPIError(f'Plugin "{plugin_name}" not found!')
spyder.api.exceptions.SpyderAPIError: Plugin "internal_console" not found!

Related

Tensorflow gives unexpected keyword argument 'blacklist' error

This code was running well in Ubuntu using conda. Then I had to move to a windows environment where I tried to create a similar conda environment. When I try running it, the error message is
Traceback (most recent call last):
File "C:\Users\biplavc\Documents\AoI_work\envs\dist_AoI_ver5\main_tf.py", line 30, in <module>
from create_graph_1 import *
File "C:\Users\biplavc\Documents\AoI_work\envs\dist_AoI_ver5\create_graph_1.py", line 16, in <module>
from tf_environment import *
File "C:\Users\biplavc\Documents\AoI_work\envs\dist_AoI_ver5\tf_environment.py", line 38, in <module>
from tf_agents.environments import py_environment
File "D:\Anaconda\envs\tf\lib\site-packages\tf_agents\environments\__init__.py", line 26, in <module>
from tf_agents.environments import utils
File "D:\Anaconda\envs\tf\lib\site-packages\tf_agents\environments\utils.py", line 28, in <module>
from tf_agents.policies import random_py_policy
File "D:\Anaconda\envs\tf\lib\site-packages\tf_agents\policies\__init__.py", line 20, in <module>
from tf_agents.policies import epsilon_greedy_policy
File "D:\Anaconda\envs\tf\lib\site-packages\tf_agents\policies\epsilon_greedy_policy.py", line 33, in <module>
from tf_agents.policies import greedy_policy
File "D:\Anaconda\envs\tf\lib\site-packages\tf_agents\policies\greedy_policy.py", line 42, in <module>
#gin.configurable(module='tf_agents', blacklist=['policy'])
TypeError: configurable() got an unexpected keyword argument 'blacklist'
I also couldn't come across any other errors similar to this and any help to sort this will be greatly appreciated.

Encountering type error handling when running allennlp test-install

I am using Windows 10 and pip installed the latest allennlp branch. When I successfully install the package, I encountered the following:
$ allennlp test-install
Traceback (most recent call last):
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\604194\AppData\Local\Continuum\anaconda3\envs\domains\Scripts\allennlp.exe\__main__.py", line 4, in <module>
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\allennlp\run.py", line 15, in <module>
from allennlp.commands import main # pylint: disable=wrong-import-position
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\allennlp\commands\__init__.py", line 8, in <module>
from allennlp.commands.configure import Configure
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\allennlp\commands\configure.py", line 27, in <module>
from allennlp.service.config_explorer import make_app
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\allennlp\service\config_explorer.py", line 24, in <module>
from allennlp.common.configuration import configure, choices
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\allennlp\common\__init__.py", line 1, in <module>
from allennlp.common.from_params import FromParams
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\allennlp\common\from_params.py", line 48, in <module>
from allennlp.common.params import Params
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\allennlp\common\params.py", line 173, in <module>
class Params(MutableMapping):
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\allennlp\common\params.py", line 236, in Params
def pop(self, key: str, default: Any = DEFAULT) -> Any:
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\overrides\overrides.py", line 67, in overrides
return _overrides(method, check_signature, check_at_runtime)
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\overrides\overrides.py", line 93, in _overrides
_validate_method(method, super_class, check_signature)
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\overrides\overrides.py", line 114, in _validate_method
ensure_signature_is_compatible(super_method, method, is_static)
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\overrides\signature.py", line 87, in ensure_signature_is_compatible
super_sig, sub_sig, super_type_hints, sub_type_hints, is_static, method_name
File "c:\users\604194\appdata\local\continuum\anaconda3\envs\domains\lib\site-packages\overrides\signature.py", line 213, in ensure_all_positional_args_defined_in_sub
f"`{method_name}: {sub_param.name} must be a supertype of `{super_param.annotation}` but is `{sub_param.annotation}`"
TypeError: `Params.pop: key must be a supertype of `<class 'inspect._empty'>` but is `<class 'str'>`
Any advice on how to resolve this issue? Thanks!
EDIT: Edited my question for more information if needed. Thanks!

Issue related to Anaconda. It happened after i run "conda update --all". I dont know how to fix it. Can someone help to solve that issue?

Traceback (most recent call last):
File "C:\Users\user\anaconda3\lib\site-packages\conda\cli\main.py", line 139, in main
from ..activate import main as activator_main
File "C:\Users\user\anaconda3\lib\site-packages\conda\activate.py", line 22, in <module>
from .base.context import ROOT_ENV_NAME, context, locate_prefix_by_name
File "C:\Users\user\anaconda3\lib\site-packages\conda\base\context.py", line 29, in <module>
from ..common.configuration import (Configuration, ConfigurationLoadError, MapParameter,
File "C:\Users\user\anaconda3\lib\site-packages\conda\common\configuration.py", line 37, in <module>
from .serialize import yaml_round_trip_load
File "C:\Users\user\anaconda3\lib\site-packages\conda\common\serialize.py", line 45, in <module>
yaml.representer.RoundTripRepresenter.add_representer(odict, represent_ordereddict)
AttributeError: module 'ruamel_yaml' has no attribute 'representer'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\user\anaconda3\Scripts\conda-script.py", line 12, in <module>
sys.exit(main())
File "C:\Users\user\anaconda3\lib\site-packages\conda\cli\main.py", line 147, in main
init_loggers()
File "C:\Users\user\anaconda3\lib\site-packages\conda\cli\main.py", line 56, in init_loggers
from ..gateways.logging import initialize_logging, set_verbosity
File "C:\Users\user\anaconda3\lib\site-packages\conda\gateways\logging.py", line 14, in <module>
from ..common.io import attach_stderr_handler
File "C:\Users\user\anaconda3\lib\site-packages\conda\common\io.py", line 33, in <module>
from .._vendor.tqdm import tqdm
File "C:\Users\user\anaconda3\lib\site-packages\conda\_vendor\tqdm\__init__.py", line 9, in <module>
from .std import tqdm, trange
File "C:\Users\user\anaconda3\lib\site-packages\conda\_vendor\tqdm\std.py", line 12, in <module>
from .utils import _supports_unicode, _screen_shape_wrapper, _range, _unich, \
File "C:\Users\user\anaconda3\lib\site-packages\conda\_vendor\tqdm\utils.py", line 43, in <module>
colorama.init(strip=False)
AttributeError: module 'colorama' has no attribute 'init'

How to fix this this error in `pip-9.03` and `python-2.6`

I installed python-2.6 and then setuptools and finally pip-9.0.3 on my machine.I added the path of pip in my PATH variable.now when i type pip in my cmd, it returns this error.
C:\Users\Asus>pip
Traceback (most recent call last):
File "C:\Python26\Scripts\pip-script.py", line 11, in <module>
load_entry_point('pip==9.0.3', 'console_scripts', 'pip')()
File "build\bdist.win-amd64\egg\pkg_resources\__init__.py", line 572, in load_
entry_point
File "build\bdist.win-amd64\egg\pkg_resources\__init__.py", line 2769, in load
_entry_point
File "build\bdist.win-amd64\egg\pkg_resources\__init__.py", line 2422, in load
File "build\bdist.win-amd64\egg\pkg_resources\__init__.py", line 2428, in reso
lve
File "C:\Python26\lib\site-packages\pip-9.0.3-py2.6.egg\pip\__init__.py", line
45, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "C:\Python26\lib\site-packages\pip-9.0.3-py2.6.egg\pip\vcs\mercurial.py",
line 9, in <module>
from pip.download import path_to_url
File "C:\Python26\lib\site-packages\pip-9.0.3-py2.6.egg\pip\download.py", line
37, in <module>
from pip.utils.ui import DownloadProgressBar, DownloadProgressSpinner
File "C:\Python26\lib\site-packages\pip-9.0.3-py2.6.egg\pip\utils\ui.py", line
57, in <module>
_BaseBar = _select_progress_class(IncrementalBar, Bar)
File "C:\Python26\lib\site-packages\pip-9.0.3-py2.6.egg\pip\utils\ui.py", line
50, in _select_progress_class
six.text_type().join(characters).encode(encoding)
LookupError: unknown encoding: cp720
unfortunately this website www.pypi.org is unavailable in my country if that's the reason of the problem.

Broken Conda after install of Anaconda for OS X w/ Python 3.6

I installed anaconda 4.3.0 for OSX, Python 3.6. Everything with the install seemed to go fine. However when I try to start jupiter notebook I get:
Traceback (most recent call last):
File "/Users/joe/anaconda3/bin/jupyter-notebook", line 4, in <module>
import notebook.notebookapp
File "/Users/joe/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 63, in <module>
from .services.contents.manager import ContentsManager
File "/Users/joe/anaconda3/lib/python3.6/site-packages/notebook/services/contents/manager.py", line 16, in <module>
from nbformat import sign, validate, ValidationError
File "/Users/joe/anaconda3/lib/python3.6/site-packages/nbformat/__init__.py", line 33, in <module>
from .validator import validate, ValidationError
File "/Users/joe/anaconda3/lib/python3.6/site-packages/nbformat/validator.py", line 12, in <module>
from jsonschema import ValidationError
File "/Users/joe/anaconda3/lib/python3.6/site-packages/jsonschema/__init__.py", line 18, in <module>
from jsonschema.validators import (
File "/Users/joe/anaconda3/lib/python3.6/site-packages/jsonschema/validators.py", line 8, in <module>
import requests
File "/Users/joe/anaconda3/lib/python3.6/site-packages/requests/__init__.py", line 52, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/Users/joe/anaconda3/lib/python3.6/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 47, in <module>
import OpenSSL.SSL
File "/Users/joe/anaconda3/lib/python3.6/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/Users/joe/anaconda3/lib/python3.6/site-packages/OpenSSL/crypto.py", line 13, in <module>
from cryptography.hazmat.primitives.asymmetric import dsa, rsa
File "/Users/joe/anaconda3/lib/python3.6/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py", line 14, in <module>
from cryptography.hazmat.backends.interfaces import RSABackend
File "/Users/joe/anaconda3/lib/python3.6/site-packages/cryptography/hazmat/backends/__init__.py", line 7, in <module>
import pkg_resources
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources.py", line 1423, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
When I try to run conda I get
Traceback (most recent call last):
File "/Users/joe/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 617, in conda_exception_handler
return_value = func(*args, **kwargs)
File "/Users/joe/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 85, in _main
from ..base.context import context
File "/Users/joe/anaconda3/lib/python3.6/site-packages/conda/base/context.py", line 17, in
from .._vendor.auxlib.path import expand
File "/Users/joe/anaconda3/lib/python3.6/site-packages/conda/_vendor/auxlib/path.py", line 8, in
import pkg_resources
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources.py", line 1423, in
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/joe/anaconda3/bin/conda", line 6, in
sys.exit(conda.cli.main())
File "/Users/joe/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 167, in main
return conda_exception_handler(_main, *args)
File "/Users/joe/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 633, in conda_exception_handler
print_unexpected_error_message(e)
File "/Users/joe/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 543, in print_unexpected_error_message
from conda.base.context import context
File "/Users/joe/anaconda3/lib/python3.6/site-packages/conda/base/context.py", line 17, in
from .._vendor.auxlib.path import expand
File "/Users/joe/anaconda3/lib/python3.6/site-packages/conda/_vendor/auxlib/path.py", line 8, in
import pkg_resources
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources.py", line 1423, in
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
I did a simple remove and reinstall but the problem persists after the reinstall. I would try to run anaconda-clean but since conda does not work, I can't install it. Any advice?

Resources