I am trying to install/use Anaconda on my pc with Windows 10.
After installation, Anaconda will not launch.
If I enter anaconda-navigator in the Anaconda Command Prompt i receive the error included at bottom of post.
I tried to update conda to resolve using conda update conda, conda update anaconda-navigator, anaconda-navigator --reset
all of which render “environment variables: conda info could not be constructed. KeyError(‘pkgs_dirs’)”.
I tried conda info to find the .condarc file but received a DLL error.
I tried adding anaconda3\Scripts to path but that hasn’t helped.
Here's a pic of my path vars if it helps:
–DLL error msg
Traceback (most recent call last): File
“C:\Users\Penelope\anaconda3\Scripts\anaconda-navigator-script.py”,
line 6, in from anaconda_navigator.app.main import main File
“C:\Users\Penelope\anaconda3\lib\site-packages\anaconda_navigator\app\main.py”,
line 19, in from anaconda_navigator.app.start import start_app File
“C:\Users\Penelope\anaconda3\lib\site-packages\anaconda_navigator\app\start.py”,
line 27, in from anaconda_navigator.widgets.main_window import
MainWindow File
“C:\Users\Penelope\anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window_init_.py”,
line 25, in from anaconda_navigator.api.anaconda_api import
AnacondaAPI File
“C:\Users\Penelope\anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py”,
line 30, in from anaconda_navigator.api.client_api import ClientAPI
File
“C:\Users\Penelope\anaconda3\lib\site-packages\anaconda_navigator\api\client_api.py”,
line 23, in import binstar_client File
“C:\Users\Penelope\anaconda3\lib\site-packages\binstar_client_init_.py”,
line 21, in from .mixins.channels import ChannelsMixin File
“C:\Users\Penelope\anaconda3\lib\site-packages\binstar_client\mixins\channels.py”,
line 7, in from binstar_client.utils import jencode File
“C:\Users\Penelope\anaconda3\lib\site-packages\binstar_client\utils_init_.py”,
line 14, in from .config import (get_server_api, dirs, load_token,
store_token, File
“C:\Users\Penelope\anaconda3\lib\site-packages\binstar_client\utils\config.py”,
line 90, in USER_LOGDIR = dirs.user_log_dir File
“C:\Users\Penelope\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py”,
line 253, in user_log_dir return user_log_dir(self.appname,
self.appauthor, version=self.version) File
“C:\Users\Penelope\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py”,
line 192, in user_log_dir path = user_data_dir(appname, appauthor,
version) File
“C:\Users\Penelope\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py”,
line 68, in user_data_dir path = os.path.join(_get_win_folder(const),
appauthor, appname) File
“C:\Users\Penelope\anaconda3\lib\site-packages\binstar_client\utils\appdirs.py”,
line 280, in _get_win_folder_with_pywin32 from win32com.shell import
shellcon, shell ImportError: DLL load failed while importing shell:
The specified procedure could not be found.
Related
I'm now trying to train my own model in a conda environment, using ABCNet with Ubuntu 16.04, CUDA 10.2. Got a complaint: "libc10_cuda.so: cannot open shared object file: No such file or directory". I reinstalled CUDA-10.2 but the problem still remains. For more details, please see the transcripts below.
OMP_NUM_THREADS=1 python tools/train_net.py --config-file configs/BAText/Pretrain/attn_R_50.yaml OUTPUT_DIR text_pretraining/attn_R_50
Traceback (most recent call last): File "tools/train_net.py", line 40, in from adet.data.dataset_mapper import DatasetMapperWithBasis File "/home/zzr/AdelaiDet/adet/init.py",
line 1, in from adet import modeling File "/home/zzr/AdelaiDet/adet/modeling/init.py",
line 2, in from .fcos import FCOS File "/home/zzr/AdelaiDet/adet/modeling/fcos/init.py",
line 1, in from .fcos import FCOS File "/home/zzr/AdelaiDet/adet/modeling/fcos/fcos.py",
line 10, in from adet.layers import DFConv2d, NaiveGroupNorm File "/home/zzr/AdelaiDet/adet/layers/init.py",
line 5, in from .bezier_align import BezierAlign File "/home/zzr/AdelaiDet/adet/layers/bezier_align.py",
line 7, in from adet import _C
ImportError: libc10_cuda.so: cannot open shared object file: No such file or directory
I did try uninstalling and installing Anaconda, but the problem remains the same.
Windows 10 x64, latest Anaconda
Installation goes fine, but when I start Spyder it reports this:
"You have missing dependencies, nbconvert >=4.0": None. However, nbconvert is already installed.
It prompted me to install Kite, when I did it says Kite installation error.
When I try to launch jupyter lab I get this:
Traceback (most recent call last): File
"C:\Users\Aleksandar\anaconda3\Scripts\jupyter-lab-script.py", line 5,
in from jupyterlab.labapp import main File
"C:\Users\Aleksandar\anaconda3\lib\site-packages\jupyterlab\labapp.py",
line 14, in from jupyterlab_server import slugify,
WORKSPACE_EXTENSION File
"C:\Users\Aleksandar\anaconda3\lib\site-packages\jupyterlab_server__init__.py",
line 4, in from .app import LabServerApp File
"C:\Users\Aleksandar\anaconda3\lib\site-packages\jupyterlab_server\app.py",
line 9, in from .server import ServerApp File
"C:\Users\Aleksandar\anaconda3\lib\site-packages\jupyterlab_server\server.py",
line 14, in from notebook.base.handlers import ( File
"C:\Users\Aleksandar\anaconda3\lib\site-packages\notebook\base\handlers.py",
line 22, in from tornado import web, gen, escape, httputil File
"C:\Users\Aleksandar\anaconda3\lib\site-packages\tornado\web.py", line
87, in from tornado.httpserver import HTTPServer File
"C:\Users\Aleksandar\anaconda3\lib\site-packages\tornado\httpserver.py",
line 32, in from tornado.http1connection import
HTTP1ServerConnection, HTTP1ConnectionParameters File
"C:\Users\Aleksandar\anaconda3\lib\site-packages\tornado\http1connection.py",
line 34, in from tornado import iostream File
"C:\Users\Aleksandar\anaconda3\lib\site-packages\tornado\iostream.py",
line 40, in from tornado.netutil import ssl_wrap_socket,
_client_ssl_defaults, _server_ssl_defaults File "C:\Users\Aleksandar\anaconda3\lib\site-packages\tornado\netutil.py",
line 39, in
_client_ssl_defaults = ssl.create_default_context(ssl.Purpose.SERVER_AUTH) File
"C:\Users\Aleksandar\anaconda3\lib\ssl.py", line 589, in
create_default_context context.load_default_certs(purpose) File
"C:\Users\Aleksandar\anaconda3\lib\ssl.py", line 490, in
load_default_certs self._load_windows_store_certs(storename, purpose)
File "C:\Users\Aleksandar\anaconda3\lib\ssl.py", line 482, in
_load_windows_store_certs self.load_verify_locations(cadata=certs) ssl.SSLError: nested asn1 error (_ssl.c:4003)
Found an error. It is caused by the certificates issued by Serbian government. The solution is changing ssl.py like this:
def _load_windows_store_certs(self, storename, purpose):
certs = bytearray()
try:
for cert, encoding, trust in enum_certificates(storename):
# CA certs are never PKCS#7 encoded
if encoding == "x509_asn":
if trust is True or purpose.oid in trust:
if "MUP Republike Srbije" not in str(cert):
certs.extend(cert)
except PermissionError:
warnings.warn("unable to enumerate Windows certificate store")
if certs:
self.load_verify_locations(cadata=certs)
return certs`
I made a new environment where I installed geopandas, xarray, and regionmask. When I tried to switch environment using the modular approach (by installing spyder-kernels in the new environment and indicating the new path to the environment in the Python interpreter, as indicated here: https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder#the-modular-approach), an error persists while starting the kernel:
Traceback (most recent call last):
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\spyder_kernels\console\__main__.py", line 11, in
start.main()
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\spyder_kernels\console\start.py", line 288, in main
import_spydercustomize()
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\spyder_kernels\console\start.py", line 39, in import_spydercustomize
import spydercustomize
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\spyder_kernels\customize\spydercustomize.py", line 27, in
from spyder_kernels.comms.frontendcomm import CommError, frontend_request
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\spyder_kernels\comms\frontendcomm.py", line 17, in
from jupyter_client.localinterfaces import localhost
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\jupyter_client\__init__.py", line 4, in
from .connect import *
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\jupyter_client\connect.py", line 21, in
import zmq
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\zmq\__init__.py", line 47, in
from zmq import backend
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\zmq\backend\__init__.py", line 40, in
reraise(*exc_info)
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\zmq\backend\__init__.py", line 27, in
_ns = select_backend(first)
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\Justin\anaconda3\envs\geo_env\lib\site‑packages\zmq\backend\cython\__init__.py", line 6, in
from . import (constants, error, message, context,
ImportError: DLL load failed while importing error: The specified module could not be found.
How can I debug this?
(Spyder maintainer here) This problem was fixed in this pull request, which is going to be part of Spyder 4.1.0, to be released later in March 2020.
I have created a virtual env on MacOS 10.14, with python 2.7, pip installed py2app, wxpython, etc, ran the Py2app command:
sudo python setup.py py2app
Upon running the app, I see the below error:
(ENV) kevins-MacBook-Pro:Audio_Export_App kevin$ /Users/kevin/python_scripts/Audio_Export_App/dist/Audio_Export_App_V3.3.app/Contents/MacOS/Audio_Export_App_V3.3
Traceback (most recent call last):
File "/Users/kevin/python_scripts/Audio_Export_App/dist/Audio_Export_App_V3.3.app/Contents/Resources/__boot__.py", line 107, in <module>
_run()
File "/Users/kevin/python_scripts/Audio_Export_App/dist/Audio_Export_App_V3.3.app/Contents/Resources/__boot__.py", line 82, in _run
exec(compile(source, path, 'exec'), globals(), globals())
File "/Users/kevin/python_scripts/Audio_Export_App/dist/Audio_Export_App_V3.3.app/Contents/Resources/Audio_Export_App_V3.3.py", line 1, in <module>
import wx
File "wx/__init__.pyc", line 17, in <module>
File "wx/core.pyc", line 12, in <module>
File "wx/_core.pyc", line 14, in <module>
File "wx/_core.pyc", line 10, in __load
ImportError: dlopen(/Users/kevin/python_scripts/Audio_Export_App/dist/Audio_Export_App_V3.3.app/Contents/Resources/lib/python2.7/lib-dynload/wx/_core.so, 2): Symbol not found: __ZThn1216_N10wxTextCtrl3CutEv
Referenced from: /Users/kevin/python_scripts/Audio_Export_App/dist/Audio_Export_App_V3.3.app/Contents/Resources/lib/python2.7/lib-dynload/wx/_core.so
Expected in: /usr/local/lib/libwx_osx_cocoau_core-3.0.0.4.0.dylib
in /Users/kevin/python_scripts/Audio_Export_App/dist/Audio_Export_App_V3.3.app/Contents/Resources/lib/python2.7/lib-dynload/wx/_core.so
2018-10-17 07:58:27.927 Audio_Export_App_V3.3[10303:567300] Audio_Export_App_V3.3 Error
2018-10-17 07:58:28.070 Audio_Export_App_V3.3[10303:567300] GetInputSourceEnabledPrefs user file path = /Users/kevin/Library/Preferences/com.apple.HIToolbox.plist
2018-10-17 07:58:28.070 Audio_Export_App_V3.3[10303:567300] GetInputSourceEnabledPrefs effective user id path = 501
2018-10-17 07:58:28.070 Audio_Export_App_V3.3[10303:567300] GetInputSourceEnabledPrefs user pref content = <CFBasicHash 0x10017c320 [0x7fff9887c8e0]>{type = immutable dict, count = 0,
entries =>
}
I have searched high and low for a solution, but cannot find one.
Anyone able to shed some light on this issue please?
This is an issue with Py2App. It can be solved by manually specifying the wx package during the build process:
python setup.py py2app --packages=wx
Hope that helps.
Source: https://bitbucket.org/ronaldoussoren/py2app/issues/252/py2app-creates-broken-bundles-with
I've written a python script using scrapy to crawl a site, and I'm trying to set up a job through jenkins to call the script nightly (this way it's very easy to see the output).
The machine I'm running jenkins on is a bitnami VM inside google compute.
I set up the command to run through the shell command in jenkins, and it's failing with the following error:
Building on master in workspace /opt/bitnami/apps/jenkins/jenkins_home/jobs/Scrape and Import myco/workspace [workspace] $ /bin/sh -xe /opt/bitnami/apache-tomcat/temp/hudson4165433582945317339.sh
+ /usr/local/myco/myscript.py -l /usr/local/myco/results/7.log -o /usr/local/myco/results/7.json -s /usr/local/myco/results/7.stats myspider
Traceback (most recent call last): File "/usr/local/myco/myscript.py", line 5, in <module>
from twisted.internet import reactor File "/usr/local/lib/python2.7/dist-packages/twisted/internet/reactor.py", line 38, in <module>
from twisted.internet import default File "/usr/local/lib/python2.7/dist-packages/twisted/internet/default.py", line 56, in <module>
install = _getInstallFunction(platform) File "/usr/local/lib/python2.7/dist-packages/twisted/internet/default.py", line 44, in _getInstallFunction
from twisted.internet.epollreactor import install File "/usr/local/lib/python2.7/dist-packages/twisted/internet/epollreactor.py", line 24, in <module>
from twisted.internet import posixbase File "/usr/local/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 23, in <module>
from twisted.internet import error, udp, tcp File "/usr/local/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 29, in <module>
from twisted.internet._newtls import ( File "/usr/local/lib/python2.7/dist-packages/twisted/internet/_newtls.py", line 21, in <module>
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol File "/usr/local/lib/python2.7/dist-packages/twisted/protocols/tls.py", line 41, in <module>
from OpenSSL.SSL import Error, ZeroReturnError, WantReadError File "/usr/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL File "/usr/local/lib/python2.7/dist-packages/OpenSSL/rand.py", line 11, in <module>
from OpenSSL._util import ( File "/usr/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 7, in <module>
binding = Binding() File "/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 114, in __init__
self._ensure_ffi_initialized() File "/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 126, in _ensure_ffi_initialized
cls._modules, File "/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/bindings/utils.py", line 31, in load_library_for_binding
lib = ffi.verifier.load_library() File "/usr/local/lib/python2.7/dist-packages/cffi/verifier.py", line 97, in load_library
return self._load_library() File "/usr/local/lib/python2.7/dist-packages/cffi/verifier.py", line 207, in _load_library
return self._vengine.load_library() File "/usr/local/lib/python2.7/dist-packages/cffi/vengine_cpy.py", line 155, in load_library
raise ffiplatform.VerificationError(error) cffi.ffiplatform.VerificationError: importing '/usr/local/lib/python2.7/dist-packages/cryptography/_Cryptography_cffi_e7d09016xc302a38b.so': /usr/local/lib/python2.7/dist-packages/cryptography/_Cryptography_cffi_e7d09016xc302a38b.so: symbol EC_GFp_nistp521_method, version OPENSSL_1.0.1 not defined in file libcrypto.so.1.0.0 with link time reference Build step 'Execute shell' marked build as failure Finished: FAILURE
I'm perplexed because when I run the same command (as my user and the user jenkins is running under, tomcat) I don't get this error, the script works fine.
I suspect this may have to do with the script being executed inside apache, but I'm at my wits end and googling hasn't turned up any obvious solutions.
Any idea as to how to solve this?
symbol EC_GFp_nistp521_method, version OPENSSL_1.0.1 not defined in file libcrypto.so.1.0.0
It looks like you are running a python compiled with OpenSSL 1.0.1 with a libcrypto from OpenSSL 1.0.0. It might be because you are running with a different python (at least compiled against a different OpenSSL version) but include files from your local python installation which expects the newer OpenSSL.