How to fix Anaconda ProxyError in Ubuntu 20.04? - linux

I have instilled a Anaconda with the infromation:
:~$ conda info
conda info --all
active environment : None
user config file : /home/qic220/.condarc
populated config files : /home/qic220/.condarc
conda version : 4.8.3
conda-build version : 3.18.11
python version : 3.8.3.final.0
virtual packages : __cuda=11.1
__glibc=2.31
base environment : /home/qic220/anaconda3 (writable)
channel URLs : http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/noarch
package cache : /home/qic220/anaconda3/pkgs
/home/qic220/.conda/pkgs
envs directories : /home/qic220/anaconda3/envs
/home/qic220/.conda/envs
platform : linux-64
user-agent : conda/4.8.3 requests/2.24.0 CPython/3.8.3 Linux/5.4.0-42-generic ubuntu/20.04.1 glibc/2.31
UID:GID : 1000:1000
netrc file : None
offline mode : False
# conda environments:
#
base * /home/qic220/anaconda3
sys.version: 3.8.3 (default, Jul 2 2020, 16:21:59)
...
sys.prefix: /home/qic220/anaconda3
sys.executable: /home/qic220/anaconda3/bin/python
conda location: /home/qic220/anaconda3/lib/python3.8/site-packages/conda
conda-build: /home/qic220/anaconda3/bin/conda-build
conda-convert: /home/qic220/anaconda3/bin/conda-convert
conda-debug: /home/qic220/anaconda3/bin/conda-debug
conda-develop: /home/qic220/anaconda3/bin/conda-develop
conda-env: /home/qic220/anaconda3/bin/conda-env
conda-index: /home/qic220/anaconda3/bin/conda-index
conda-inspect: /home/qic220/anaconda3/bin/conda-inspect
conda-metapackage: /home/qic220/anaconda3/bin/conda-metapackage
conda-render: /home/qic220/anaconda3/bin/conda-render
conda-server: /home/qic220/anaconda3/bin/conda-server
conda-skeleton: /home/qic220/anaconda3/bin/conda-skeleton
conda-verify: /home/qic220/anaconda3/bin/conda-verify
user site dirs:
ALL_PROXY: <set>
CIO_TEST: <not set>
CONDA_ROOT: /home/qic220/anaconda3
C_INCLUDE_PATH: /usr/local/cuda/include:
DEFAULTS_PATH: /usr/share/gconf/ubuntu.default.path
HTTPS_PROXY: <set>
HTTP_PROXY: <set>
LD_LIBRARY_PATH: /opt/ovito-basic-3.3.1-x86_64/lib:/usr/local/cuda/lib64::/opt/vmd-1.9.4a48/lib
MANDATORY_PATH: /usr/share/gconf/ubuntu.mandatory.path
NO_PROXY: <set>
PATH: /home/qic220/anaconda3/bin:/opt/ovito-basic-3.3.1-x86_64/bin:/home/qic220/lammps-stable_29Oct2020/src:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/software/anaconda3/bin:/opt/vmd-1.9.4a48/bin
REQUESTS_CA_BUNDLE: <not set>
SSL_CERT_FILE: <not set>
WINDOWPATH: 2
But when I tried to install a package, it failed and a ProxyError arised:
$ conda install -c conda-forge hoomd
Collecting package metadata (current_repodata.json): failed
ProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any '.netrc' file in your home directory,
any environment variables ending in '_PROXY', and any other system-wide proxy
configuration settings.
Actually, even I just use conda update conda, there still is ProxyError.
I have check env | grep proxy, nothing shown on my screen.
And I also modified .condsrc as:
proxy_servers:
http: http://username:password#corp.com:8080
https: https://username:password#corp.com:8080
channels:
- defaults
show_channel_urls: true
default_channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
custom_channels:
conda-forge: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
msys2: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
bioconda: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
menpo: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
simpleitk: http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
After source ~/.condarc, it still not work. Is anyone have idea to fixed my problem?

Related

Installing with apt succeeds but packages are not installed

I'm using Ansible to install Apt packages on a lxd Ubuntu20.04 container running an Ubuntu 20.04 host.
The container is created successfully and commands execute in the container as expected.
But using apt through Ansible does not. Ansible shows successful task run but when I enter the container the packages have not been installed.
I've recently upgraded the version of Ansible to the latest and have been following along from Ansible docs. I've tried bot the apt and ansible.builtin.apt formats. The results remain the same Ansible fails silently.
I was expecting to see a response from php -v and nginx -t when I enter the container. Expecting configs at /etc/nginx and /etc/php
Tasks
tasks:
- name: apt-get update
ansible.builtin.apt:
update_cache: yes
cache_valid_time: 3600
- name: Install Nginx PHP
delegate_to: "{{ lxd_container_name }}"
ansible.builtin.apt:
state: latest
pkg:
- nginx
- python3-pymysql
- php8.1
- php8.1-mysql
- name: Install PHP Extensions
delegate_to: "{{ lxd_container_name }}"
apt: name={{ item }} update_cache=yes state=latest
loop: "{{ php_modules }}"
Ansible version: 2.11.5
Python version: 3.8
Output of running this playbook:
PLAY [localhost] **************************************************************************************************************************************************
TASK [Gathering Facts] ********************************************************************************************************************************************
ok: [localhost]
TASK [apt-get update] *********************************************************************************************************************************************
ok: [localhost]
TASK [Install Nginx PHP] ******************************************************************************************************************************************
[DEPRECATION WARNING]: Distribution Ubuntu 20.04 on host localhost should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior
Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible-
core/2.11/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled
by setting deprecation_warnings=False in ansible.cfg.
ok: [localhost -> template]
TASK [Install PHP Extensions] *************************************************************************************************************************************
ok: [localhost -> template] => (item=php-curl)
ok: [localhost -> template] => (item=php-gd)
ok: [localhost -> template] => (item=php-mbstring)
ok: [localhost -> template] => (item=php-xml)
ok: [localhost -> template] => (item=php-xmlrpc)
ok: [localhost -> template] => (item=php-soap)
ok: [localhost -> template] => (item=php-intl)
ok: [localhost -> template] => (item=php-zip)
Result in the container shows that the packages where not installed after several attempts.
root#template:~# nginx
bash: nginx: command not found
root#template:~# php
bash: php: command not found
root#template:~# cd /etc/php
bash: cd: /etc/php: No such file or directory
root#template:~# apt install php8.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
apache2 apache2-bin apache2-data apache2-utils bzip2 file libapache2-mod-php8.1 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1
libcurl4 libgdbm-compat4 libgdbm6 libjansson4 libldap-2.5-0 libldap-common liblua5.3-0 libmagic-mgc libmagic1 libnghttp2-14 libperl5.34 libpsl5 librtmp1
libsasl2-2 libsasl2-modules libsasl2-modules-db libssh-4 mailcap mime-support perl perl-modules-5.34 php-common php8.1-cli php8.1-common php8.1-opcache
php8.1-readline psmisc publicsuffix ssl-cert xz-utils
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser ufw bzip2-doc php-pear gdbm-l10n libsasl2-modules-gssapi-mit
| libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql perl-doc libterm-readline-gnu-perl
| libterm-readline-perl-perl make libtap-harness-archive-perl
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils bzip2 file libapache2-mod-php8.1 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1
libcurl4 libgdbm-compat4 libgdbm6 libjansson4 libldap-2.5-0 libldap-common liblua5.3-0 libmagic-mgc libmagic1 libnghttp2-14 libperl5.34 libpsl5 librtmp1
libsasl2-2 libsasl2-modules libsasl2-modules-db libssh-4 mailcap mime-support perl perl-modules-5.34 php-common php8.1 php8.1-cli php8.1-common php8.1-opcache
php8.1-readline psmisc publicsuffix ssl-cert xz-utils
0 upgraded, 43 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.4 MB of archives.
After this operation, 90.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
root#template:~# apt install nginx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
fontconfig-config fonts-dejavu-core libbrotli1 libdeflate0 libfontconfig1 libfreetype6 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libmaxminddb0
libnginx-mod-http-geoip2 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip2
libpng16-16 libtiff5 libwebp7 libxpm4 libxslt1.1 nginx-common nginx-core
Suggested packages:
libgd-tools mmdb-bin fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
fontconfig-config fonts-dejavu-core libbrotli1 libdeflate0 libfontconfig1 libfreetype6 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libmaxminddb0
libnginx-mod-http-geoip2 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip2
libpng16-16 libtiff5 libwebp7 libxpm4 libxslt1.1 nginx nginx-common nginx-core
0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 3773 kB of archives.
After this operation, 11.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] n

Error: Platform 'nodejs' version '14.17.1' is unsupported

I am trying to deploy Angular application to Azure. I created a static web app in Azure, and connected it to my Github main branch. When I run the action to deploy the app, I am getting an error in Build and Deploy action as Platform 'nodejs' version '14.17.1' is unsupported.
Here is the snippet of the error message:
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.[20](https://github.com/nimeshshrestha/autoglasslocator-admin-ui-v01/runs/7714362605?check_suite_focus=true#step:5:21)220401.1, Commit: afed4f696a08bfd4c8e4109704a082bf9fb20515, ReleaseTagName: 20220401.1
Build Operation ID: |ZIeL+T275t4=.afcbd56a_
Repository Commit : 848b07de657ce2303e1469a882d68999bed7925a
Detecting platforms...
Error: Platform 'nodejs' version '14.17.1' is unsupported. Supported versions: 10.1.0, 10.10.0, 10.12.0, 10.14.2, 10.16.3, 10.18.0, 10.18.1, 10.19.0, 10.20.0, 10.20.1, 10.[21](https://github.com/nimeshshrestha/autoglasslocator-admin-ui-v01/runs/7714362605?check_suite_focus=true#step:5:22).0, 10.[22](https://github.com/nimeshshrestha/autoglasslocator-admin-ui-v01/runs/7714362605?check_suite_focus=true#step:5:23).0, 10.22.1, 10.[23](https://github.com/nimeshshrestha/autoglasslocator-admin-ui-v01/runs/7714362605?check_suite_focus=true#step:5:24).0, 10.[24](https://github.com/nimeshshrestha/autoglasslocator-admin-ui-v01/runs/7714362605?check_suite_focus=true#step:5:25).1, 12.11.0, 12.11.1, 12.12.0, 12.13.0, 12.14.0, 12.14.1, 12.16.0, 12.16.1, 12.16.2, 12.16.3, 12.18.0, 12.18.1, 12.18.2, 12.18.3, 12.18.4, 12.19.0, 12.20.0, 12.21.0, 12.22.0, 12.22.11, 12.22.4, 12.22.6, 12.22.9, 12.9.1, 13.9.0, 14.0.0, 14.1.0, 14.10.0, 14.10.1, 14.11.0, 14.12.0, 14.13.0, 14.13.1, 14.14.0, 14.15.0, 14.15.1, 14.16.0, 14.17.0, 14.17.4, 14.17.6, 14.18.3, 14.19.1, 14.2.0, 14.3.0, 14.4.0, 14.5.0, 14.6.0, 14.7.0, 14.8.0, 14.9.0, 15.0.0, 15.0.1, 15.1.0, 15.2.0, 15.2.1, 15.3.0, 16.13.1, 16.13.2, 16.14.0, 16.14.2, 16.5.0, 16.6.1, 16.8.0, 17.0.1, 17.1.0, 17.2.0, 17.3.1, 17.4.0, 17.5.0, 17.6.0, 4.4.7, 4.5.0, 4.8.0, 4.8.7, 4.9.0, 4.9.1, 6.10.3, 6.11.0, 6.11.5, 6.17.1, 6.2.2, 6.6.0, 6.9.3, 6.9.5, 8.0.0, 8.1.4, 8.11.2, 8.11.4, 8.12.0, 8.15.1, 8.16.1, 8.16.2, 8.17.0, 8.2.1, 8.8.1, 8.9.4, 9.4.0, 1.17.3, 1.18.0, 1.19.0, 1.19.1, 1.19.2, 1.20.0, 1.21.0, 1.21.1, 1.22.0, 1.22.1, 1.22.2, 1.22.4
---End of Oryx build logs---
Oryx has found build steps, but identified unsupported platform versions. Failing build.
I have tried to use setup-node action by following this link: https://github.com/actions/setup-node.
I edited the yml file, and added this:
steps:
- uses: actions/checkout#v2
- uses: actions/setup-node#v3 ### Added this line
with:
submodules: true
node-version: 16 ### Added this line
I have also looked at this issue: https://github.com/microsoft/Oryx/issues/650. But there is nothing that is helpful.
EDIT: I have also posted the question here https://github.com/microsoft/Oryx/issues/1504

Failed to create Conda environment status : 143

I am trying to run a nexflow pipeline on some data via the Linux command line, but when I do so, it fails because it fails to create the Conda environment.
It looks like it tries to run the pipeline anyway, despite the environment not being set up properly, and so generates an error message. Any help would be much appreciated. Here is the error message:
Error executing process > 'my_process (1)'
Caused by:
Failed to create Conda environment
command: conda env create --prefix /my_file_path-6bf38a923b48a255f96ea3d66d372e6c --file /my_file_path/environment.yml
status : 143
message:
Here is my environment.yml file:
name: pipeline_name
channels:
- bioconda
- conda-forge
- defaults
dependencies:
- filtlong
- blast==2.5
- minimap2
- samtools
- pysam
- pandas
- matplotlib
- pysamstats
- seaborn
- medaka
- bedtools
- bedops
- seqtk
- bioawk
- sniffles
Not an answer to this question, but if you get a similar failure with a different exit status (120, not 143), try the fix in this thread. Reposting it here:
conda environment from file not working using nextflow · Issue #1081 · nextflow-io/nextflow: https://github.com/nextflow-io/nextflow/issues/1081
pditommaso commented on Mar 18, 2019
The 120 exit status signals that
it was reached the creation timeout. Try increasing it, eg.
conda.createTimeout = '1 h'

Conda: UnicodeEncodeError: 'charmap' codec can't encode character '\u2580' in position 644: character maps to <undefined>

Problem:
When I try to switch the environment in conda I get an error and I can't activate the environment.
Strangely in the anaconda navigator, I can activate another environment.
I would rather not install conda new if possible.
I tried:
conda update conda
conda anaconda-navigator --reset
Error:
Traceback (most recent call last):
File "D:\Programme\Anaconda3\lib\site-packages\conda\cli\main.py", line 138, in main
return activator_main()
File "D:\Programme\Anaconda3\lib\site-packages\conda\activate.py", line 1093, in main
print(activator.execute(), end='')
File "D:\Programme\Anaconda3\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2580' in position 644: character maps to <undefined>
My System/Enviromental variables from conda:
CIO_TEST=<not set>
CONDA_DEFAULT_ENV=base
CONDA_EXE=D:\Programme\Anaconda3\Scripts\conda.exe
CONDA_PREFIX=D:\Programme\Anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=D:\Programme\Anaconda3\python.exe
CONDA_ROOT=D:\Programme\Anaconda3
CONDA_SHLVL=1
CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2
GIT_LFS_PATH=D:\Programme\Git LFS
HOMEPATH=\Users\schup
NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\
PATH=D:\Programme\Anaconda3;D:\Programme\Anaconda3\Library\mingw-w64\bin;D:
\Programme\Anaconda3\Library\usr\bin;D:\Programme\Anaconda3\Library\bi
n;D:\Programme\Anaconda3\Scripts;D:\Programme\Anaconda3\bin;D:\Program
me\Anaconda3;D:\Programme\Anaconda3\Library\mingw-w64\bin;D:\Programme
\Anaconda3\Library\usr\bin;D:\Programme\Anaconda3\Library\bin;D:\Progr
amme\Anaconda3\Scripts;D:\Programme\Anaconda3\bin;D:\Programme\Anacond
a3\condabin;C:\Program Files\NVIDIA GPU Computing
Toolkit\CUDA\v10.2\bin;C:\Program Files\NVIDIA GPU Computing
Toolkit\CUDA\v10.2\libnvvp;.;C:\ProgramData\DockerDesktop\version-
bin;C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files
(x86)\Common Files\Oracle\Java\javapath;c:\programdata\oracle\java\jav
apath;c:\programme ▀jet java compiler\bin;c:\programme\notepad++\plug
ins\database;c:\programme\notepad++\plugins\php\ext;c:\programme\notep
ad++\plugins\php;c:\windows\system32;c:\windows;c:\windows\system32\wb
em;c:\windows\system32\windowspowershell\v1.0;c:\program
files\dotnet;c:\programme\nodejs;c:\programme\git\cmd;c:\programme\ssh
programm;c:\programme\python 3.6;c:\programme\python 3.4.1;c:\programm
e\gradle\gradle-4.1\bin;d:\programme\java\jdk1.8.0_144\bin;c:\program
files\git\cmd;d:\programme\mingw\bin;c:\users\schup\.dnx\bin;c:\progra
m files\microsoft dnx\dnvm;C:\Program Files (x86)\NVIDIA Corporation\P
hysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:
\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C
:\Program Files (x86)\Windows Live\Shared;C:\Program Files\NVIDIA
Corporation\NVIDIA NvDLISR;D:\Programme\Git LFS;C:\Program Files\Git\c
md;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\
System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program
Files (x86)\QuickTime\QTSystem;D:\Programme\MikeTex\miktex\bin\x64;C:\
Program Files\NVIDIA Corporation\Nsight Compute 2019.5.0;C:\Users\schu
p\AppData\Local\Programs\Python\Python37-32\Scripts;C:\Users\schup\App
Data\Local\Programs\Python\Python37-32;C:\Users\schup\AppData\Local\Mi
crosoft\WindowsApps;C:\Users\schup\AppData\Local\atom\bin;C:\Users\sch
up\AppData\Roaming\npm;D:\Programme\python\Scripts;D:\Programme\java\j
dk1.8.0_144\bin;C:\Users\schup\AppData\Local\GitHubDesktop\bin;C:\Prog
ram Files\JetBrains\PyCharm Community Edition
2019.2.2\bin;.;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.
0\bin;D:\Programme\Anaconda3\envs\coursera;D:\Programme\Anaconda3\envs
\coursera\Lib;C:\Program Files (x86)\Graphviz2.38;C:\Program Files
(x86)\Graphviz2.38\bin;C:\Program Files (x86)\Graphviz2.38\lib;C:\User
s\schup\AppData\Local\Microsoft\WindowsApps;C:\Users\schup\PycharmProj
ects\Workspace;C:\Users\schup\PycharmProjects\Workspace\pygame;C:\User
s\schup\PycharmProjects\Workspace\pygame snake;C:\Program
Files\JetBrains\PyCharm 2019.2.2\bin;.;C:\Users\schup\AppData\Roaming\
Python\Python37\Scripts;G:\programs\MiKTeX2.9\miktex\bin\x64
PSMODULEPATH=C:\Users\schup\Documents\WindowsPowerShell\Modules;C:\Program Files
(x86)\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Mod
ules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;D:\Programme\A
utoIt3\AutoItX
PYTHONPATH=D:\Programme\Python 3.6\Lib;D:\Programme\Python
3.6\DLLs;D:\Programme\Python 3.6\Lib\tkinter
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
VBOX_MSI_INSTALL_PATH=D:\Programme\VirtualBox\
active environment : base
active env location : D:\Programme\Anaconda3
shell level : 1
user config file : C:\Users\schup\.condarc
populated config files : C:\Users\schup\.condarc
conda version : 4.8.1
conda-build version : 3.17.6
python version : 3.7.4.final.0
virtual packages : __cuda=10.2
base environment : D:\Programme\Anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : D:\Programme\Anaconda3\pkgs
C:\Users\schup\.conda\pkgs
C:\Users\schup\AppData\Local\conda\conda\pkgs
envs directories : D:\Programme\Anaconda3\envs
C:\Users\schup\.conda\envs
C:\Users\schup\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.8.1 requests/2.22.0 CPython/3.7.4 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False
For me the solution was setting PYTHONIOENCODING=utf8. No need to manually touch a decoding table for me.
Example:
PYTHONIOENCODING=utf8 conda activate myenv
Answer taken from here.
Fixing process:
1. open file D:\Programme\Anaconda3\lib\encodings\cp1252.py
2. Find the decoding_table
3. add '\u2580'
I don't know what happened nor how and why it happened. So if someone knows I would be glad to hear it.

port isolation with bazel and linux

Trying to test out port isolation with bazel and linux and it fails.
My env is as following (started on aws):
$ cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -mrs
Linux 3.16.0-4-amd64 x86_64
Bazel version
$ bazel version
Build label: 0.5.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 6 10:34:11 2017 (1496745251)
Build timestamp: 1496745251
Build timestamp as int: 1496745251
The repo: https://github.com/ittaiz/bazel-port-isolation
Running the test:
$ bazel test //...
____Loading package:
____Loading package: #bazel_tools//tools/cpp
____Loading package: #local_config_xcode//
____Loading package: #local_jdk//
____Loading package: #local_config_cc//
____Loading complete. Analyzing...
____Loading package: tools/defaults
____Loading package: #bazel_tools//tools/test
____Loading package: #junit_junit//jar
____Found 2 test targets...
____Building...
____[0 / 12] Expanding template SocketIsolation2Test
____[10 / 12] Building SocketIsolationTest.jar (1 source file)
FAIL: //:SocketIsolation2Test (see /home/builduser/.cache/bazel/_bazel_builduser/a589c0f8758972ab3aadcf172c468873/execroot/bazel-port-isolation/bazel-out/local-fastbuild/testlogs/SocketIsolation2Test/test.log)
PASS: //:SocketIsolationTest
____Elapsed time: 11.152s, Critical Path: 7.03s
//:SocketIsolationTest PASSED in 5.3s
//:SocketIsolation2Test FAILED in 0.3s
/home/builduser/.cache/bazel/_bazel_builduser/a589c0f8758972ab3aadcf172c468873/execroot/bazel-port-isolation/bazel-out/local-fastbuild/testlogs/SocketIsolation2Test/test.log
(As you can see - no sandbox failure or warnings)
The tet log show "Address already in use" - which means that there were no port isolation.
Why is it not working?
Found out why...
From here: https://bazel.build/versions/master/docs/bazel-user-manual.html#sandboxing
On some platforms such as Google Container Engine cluster nodes or
Debian, user namespaces are deactivated by default due to security
concerns. This can be checked by looking at the file
/proc/sys/kernel/unprivileged_userns_clone: if it exists and contains
a 0, then user namespaces can be activated with sudo sysctl
kernel.unprivileged_userns_clone=1.
The /proc/sys/kernel/unprivileged_userns_clone existed and had 0 in it.. . so changing it according to the insturction solved it.

Resources