conda Update issue? - python

Recently I have facced to open adaconda navigaator. I have tried to resolve the issue by updateing anaconda from anaconda navigator. Its anaconda 2.6.11 version.
C:\Users\Billal>conda update conda
Traceback (most recent call last):
File "c:\users\billal\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\billal\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Billal\Anaconda3\Scripts\conda.exe__main__.py", line 9, in
File "c:\users\billal\anaconda3\lib\site-packages\markdown__main__.py", line 130, in run
markdown.markdownFromFile(**options)
File "c:\users\billal\anaconda3\lib\site-packages\markdown__init__.py", line 529, in markdownFromFile
kwargs.get('encoding', None))
File "c:\users\billal\anaconda3\lib\site-packages\markdown__init__.py", line 428, in convertFile
input_file = codecs.open(input, mode="r", encoding=encoding)
File "c:\users\billal\anaconda3\lib\codecs.py", line 895, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: 'update'
C:\Users\Billal>

Related

While running whisper I am facing FileNotFoundError

This is the command I am running from powershell:
whisper C:\Users\SAMSUNG\Desktop\aud2.mp3 --language Urdu --task translate --model base
This is the complete error:
UserWarning: FP16 is not supported on CPU; using FP32 instead
warnings.warn("FP16 is not supported on CPU; using FP32 instead")
Traceback (most recent call last):
File "c:\users\samsung\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\samsung\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\SAMSUNG\.envs\py3.7\Scripts\whisper.exe\__main__.py", line 7, in <module>
File "C:\Users\SAMSUNG\.envs\py3.7\lib\site-packages\whisper\transcribe.py", line 307, in cli
result = transcribe(model, audio_path, temperature=temperature, **args)
File "C:\Users\SAMSUNG\.envs\py3.7\lib\site-packages\whisper\transcribe.py", line 84, in transcribe
mel = log_mel_spectrogram(audio)
File "C:\Users\SAMSUNG\.envs\py3.7\lib\site-packages\whisper\audio.py", line 111, in log_mel_spectrogram
audio = load_audio(audio)
File "C:\Users\SAMSUNG\.envs\py3.7\lib\site-packages\whisper\audio.py", line 44, in load_audio
.run(cmd=["ffmpeg", "-nostdin"], capture_stdout=True, capture_stderr=True)
File "C:\Users\SAMSUNG\.envs\py3.7\lib\site-packages\ffmpeg\_run.py", line 320, in run
overwrite_output=overwrite_output,
File "C:\Users\SAMSUNG\.envs\py3.7\lib\site-packages\ffmpeg\_run.py", line 285, in run_async
args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream
File "c:\users\samsung\appdata\local\programs\python\python37\lib\subprocess.py", line 756, in __init__
restore_signals, start_new_session)
File "c:\users\samsung\appdata\local\programs\python\python37\lib\subprocess.py", line 1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

module 'ssl' has no attribute 'OPENSSL_VERSION' error while installing package

I can't install packages anymore.
Every time I try to run:
py -m pip install [name of the package]
I get:
Traceback (most recent call last):
File "C:\Users\Filippo Sebastio\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\Filippo Sebastio\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Filippo Sebastio\Anaconda3\lib\site-packages\pip\__main__.py", line 19, in <module>
sys.exit(_main())
File "C:\Users\Filippo Sebastio\Anaconda3\lib\site-packages\pip\_internal\__init__.py", line 246, in main
return command.main(cmd_args)
File "C:\Users\Filippo Sebastio\Anaconda3\lib\site-packages\pip\_internal\basecommand.py", line 264, in main
timeout=min(5, options.timeout)) as session:
File "C:\Users\Filippo Sebastio\Anaconda3\lib\site-packages\pip\_internal\basecommand.py", line 81, in _build_session
insecure_hosts=options.trusted_hosts,
File "C:\Users\Filippo Sebastio\Anaconda3\lib\site-packages\pip\_internal\download.py", line 338, in __init__
self.headers["User-Agent"] = user_agent()
File "C:\Users\Filippo Sebastio\Anaconda3\lib\site-packages\pip\_internal\download.py", line 125, in user_agent
data["openssl_version"] = ssl.OPENSSL_VERSION
AttributeError: module 'ssl' has no attribute 'OPENSSL_VERSION'
I have no idea of what happened but I am afraid I deleted part of the ssl script (which I am not even sure how I opened!)

Virtualenv :WindowsError: [Error 5] Access is denied:

I'm working with miniconda and git=bash on win7. I'm trying to make a virtualenv:
$ virtualenv myenv
Traceback (most recent call last):
File "e:\miniconda2\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "e:\miniconda2\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "e:\miniconda2\Scripts\virtualenv.exe\__main__.py", line 9, in <module>
File "e:\miniconda2\lib\site-packages\virtualenv.py", line 713, in main
symlink=options.symlink)
File "e:\miniconda2\lib\site-packages\virtualenv.py", line 925, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File "e:\miniconda2\lib\site-packages\virtualenv.py", line 1202, in install_python
mkdir(bin_dir)
File "e:\miniconda2\lib\site-packages\virtualenv.py", line 323, in mkdir
os.makedirs(path)
File "e:\miniconda2\lib\os.py", line 157, in makedirs
mkdir(name, mode)
WindowsError: [Error 5] Access is denied: 'e:\\ENVS\\virtalenvs\\myenv\\Scripts'
How can I get this working?

virtualenvwrapper - IOError: [Errno 13] Permission denied

I'm trying to install virtualenvwrapper on a fresh Ubuntu 14.04 installation. I followed the steps here and added these lines to my .bashrc:
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh
I get the following error message when I try and source ~/.bashrc:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/virtualenvwrapper/hook_loader.py", line 217, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/virtualenvwrapper/hook_loader.py", line 131, in main
run_hooks(hook, options, args)
File "/usr/local/lib/python2.7/dist-packages/virtualenvwrapper/hook_loader.py", line 157, in run_hooks
hook_mgr = ExtensionManager(namespace)
File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 92, in __init__
verify_requirements)
File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 155, in _load_plugins
for ep in self._find_entry_points(self.namespace):
File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 148, in _find_entry_points
eps = list(pkg_resources.iter_entry_points(namespace))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 515, in iter_entry_points
entries = dist.get_entry_map(group)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2371, in get_entry_map
self._get_metadata('entry_points.txt'), self
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2155, in parse_map
for group, lines in data:
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2715, in split_sections
for line in yield_lines(s):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in yield_lines
for ss in strs:
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2305, in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1369, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1361, in get_metadata
return self._get(self._fn(self.egg_info,name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1470, in _get
stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/numpydoc-0.4-py2.7.egg/EGG-INFO/entry_points.txt'
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenv has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.
This happens when source /usr/local/bin/virtualenvwrapper.sh is executed.
Any ideas? Thanks.
EDIT: Although I am getting this error message, it seems my virtualenv is kind of working. I am able to create new env and even workon them. But every command I ttype, I get the IOError above.
Fixed. I just uninstalled the offending numpy doc package:
sudo pip uninstall numpydoc

virtualenvwrapper issues on cygwin using python3.4 (installed using standalone installer)

I'm having issues with virtualenv wrapper, I receive the below error when I run:
source /cygdrive/c/Python34/Scripts/virtualenvwrapper.sh
I've run
which python <- shows correct path
which virtualenvwrapper.sh <- shows correct path
which virtualenv <- shows correct path
Error:
>$ source /cygdrive/c/Python34/Scripts/virtualenvwrapper.sh
stevedore.extension error calling 'project': [Errno 2] No such file or directory : 'C:\\home\\kolafsson\\.virtualenvs\\premkproject'
stevedore.extension [Errno 2] No such file or directory: 'C:\\home\\kolafsson\\. virtualenvs\\premkproject'
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\stevedore-0.15-py3.4.egg\stevedore\extensi on.py", line 248, in _invoke_one_plugin
response_callback(func(e, *args, **kwds))
File "C:\Python34\lib\site-packages\virtualenvwrapper-4.2-py3.4.egg\virtualenv wrapper\hook_loader.py", line 185, in invoke
File "C:\Python34\lib\site-packages\virtualenvwrapper-4.2-py3.4.egg\virtualenv wrapper\project.py", line 30, in initialize
comment)
File "C:\Python34\lib\site-packages\virtualenvwrapper-4.2-py3.4.egg\virtualenv wrapper\user_scripts.py", line 124, in make_hook
f = open(filename, 'w')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\home\\kolafsson\\.v irtualenvs\\premkproject'
stevedore.extension error calling 'user_scripts': [Errno 2] No such file or dire ctory: 'C:\\home\\kolafsson\\.virtualenvs\\initialize'
stevedore.extension [Errno 2] No such file or directory: 'C:\\home\\kolafsson\\. virtualenvs\\initialize'
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\stevedore-0.15-py3.4.egg\stevedore\extensi on.py", line 248, in _invoke_one_plugin
response_callback(func(e, *args, **kwds))
File "C:\Python34\lib\site-packages\virtualenvwrapper-4.2-py3.4.egg\virtualenv wrapper\hook_loader.py", line 185, in invoke
File "C:\Python34\lib\site-packages\virtualenvwrapper-4.2-py3.4.egg\virtualenv wrapper\user_scripts.py", line 141, in initialize
make_hook(get_path('$VIRTUALENVWRAPPER_HOOK_DIR', filename), comment)
File "C:\Python34\lib\site-packages\virtualenvwrapper-4.2-py3.4.egg\virtualenv wrapper\user_scripts.py", line 124, in make_hook
f = open(filename, 'w')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\home\\kolafsson\\.v irtualenvs\\initialize'
Traceback (most recent call last):
File "C:\Python34\lib\runpy.py", line 171, in _run_module_as_main
"__main__", mod_spec)
File "C:\Python34\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Python34\lib\site-packages\virtualenvwrapper-4.2-py3.4.egg\virtualenv wrapper\hook_loader.py", line 217, in <module>
File "C:\Python34\lib\site-packages\virtualenvwrapper-4.2-py3.4.egg\virtualenv wrapper\hook_loader.py", line 137, in main
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/virtualenvwrapper- initialize-hook-Kxjb02CrwN'
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenv has been installed for
VIRTUALENVWRAPPER_PYTHON=/cygdrive/c/Python34/python and that PATH is
set properly.
Does anyone know what is causing this error and how I could fix it?
Problems I had were due to the permissions on the virtualenv directory not being correct. The had root when I needed the local user.
which here might be 'C:\\home\\kolafsson\\.v....

Categories