jreades / sds_env Goto Github PK
View Code? Open in Web Editor NEWSpatial Data Science Environment
License: BSD 3-Clause "New" or "Revised" License
Spatial Data Science Environment
License: BSD 3-Clause "New" or "Revised" License
TLDR: this is not to report a problem but a note of the problem that I have met and solved. Think it may be a problem for other Windows users.
Context: the docker desktop on Win10 (with WSL2) suddenly collapsed after Windows updates. The software can't start, stopping after flashing.
Process: I spent nearly 10 hours to fix it - uninstalling and reinstalling. Although there were many posts and answers on docker.com and StackOverflow, most of them didn't work for my case.
Error message of re-installing Docker Desktop:
Component CommunityInstaller.EnableFeaturesAction failed:
em CommunityInstaller.InstallWorkflow.d__30.MoveNext()
— Fim do rastreamento de pilha do local anterior onde a exceção foi gerada —
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em CommunityInstaller.InstallWorkflow.d__24.MoveNext()
Solution:
The solution that solved my problem is here, although I am not 100% sure that many other things that I have attempted are helpful.
@jreades If anyone has a similar problem, I am more than happy to help. Just let me know.
I tried running sh docker.sh start
in Windows WSL, and got the following errors:
docker.sh: 9: [[: not found
Using default configuration as config.sh.
docker.sh: 19: source: not found
docker.sh: 28: [[: not found
docker.sh: 81: [[: not found
You need to pass either start or stop to this script.
Env and settings:
OS: Windows 10, WSL 2
Files: docker.sh and config.sh in the same folder
Can run Jupyter Lab in the WSL terminal of this folder: docker run --name sds --rm -ti -p 8888:8888 -v "$(pwd):/home/jovyan/work" jreades/sds:2022 jupyter lab --LabApp.password='sha1:288f84f833b0:7645388b889d84efbb2716d646e5eadd78b67d10' --ServerApp.password='sha1:288f84f833b0:7645388b889d84efbb2716d646e5eadd78b67d10'
@jreades Jon, any suggestions?
A student failed to install the env using this yml file on Windows 10 (see the error message below).
It was an issue with the syntax of the yml file.
The solution was to copy the content of this yml file to YAML Lint and to download the new content.
Hope that this is helpful!
OS: Windows 10
conda version: conda 4.9.2
Error message:
Traceback (most recent call last):
File "C:\Users\Owner\anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\cli\main.py", line 80, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\cli\main_create.py", line 87, in execute
spec = specs.detect(name=name, filename=filename, directory=os.getcwd())
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\specs\__init__.py", line 43, in detect
if spec.can_handle():
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\specs\yaml_file.py", line 18, in can_handle
self._environment = env.from_file(self.filename)
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\env.py", line 160, in from_file
return from_yaml(yamlstr, filename=filename)
File "C:\Users\Owner\anaconda3\lib\site-packages\conda_env\env.py", line 141, in from_yaml
data = yaml_safe_load(yamlstr)
File "C:\Users\Owner\anaconda3\lib\site-packages\conda\common\serialize.py", line 67, in yaml_safe_load
return yaml.safe_load(string, version="1.2")
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\main.py", line 980, in safe_load
return load(stream, SafeLoader, version)
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\main.py", line 935, in load
return loader._constructor.get_single_data()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\constructor.py", line 109, in get_single_data
node = self.composer.get_single_node()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\composer.py", line 78, in get_single_node
document = self.compose_document()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\composer.py", line 104, in compose_document
self.parser.get_event()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\parser.py", line 163, in get_event
self.current_event = self.state()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\parser.py", line 239, in parse_document_end
token = self.scanner.peek_token()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\scanner.py", line 182, in peek_token
self.fetch_more_tokens()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\scanner.py", line 282, in fetch_more_tokens
return self.fetch_value()
File "C:\Users\Owner\anaconda3\lib\site-packages\ruamel_yaml\scanner.py", line 651, in fetch_value
raise ScannerError(
ruamel_yaml.scanner.ScannerError: mapping values are not allowed here
in "<unicode string>", line 89, column 65:
... e" content="{"version": "4", "rollouts& ...
^ (line: 89)
`$ C:\Users\Owner\anaconda3\Scripts\conda-env-script.py create -f environment_py.yml`
environment variables:
CIO_TEST=<not set>
CONDA_AUTO_UPDATE_CONDA=false
CONDA_DEFAULT_ENV=base
CONDA_EXE=C:\Users\Owner\anaconda3\condabin\..\Scripts\conda.exe
CONDA_PREFIX=C:\Users\Owner\anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=C:\Users\Owner\anaconda3\python.exe
CONDA_ROOT=C:\Users\Owner\anaconda3
CONDA_SHLVL=1
CURL_CA_BUNDLE=<not set>
HOMEPATH=\Users\Owner
MIC_LD_LIBRARY_PATH=C:\Program Files (x86)\Common Files\Intel\Shared
Libraries\compiler\lib\mic
PATH=C:\Users\Owner\anaconda3;C:\Users\Owner\anaconda3\Library\mingw-w64\bi
n;C:\Users\Owner\anaconda3\Library\usr\bin;C:\Users\Owner\anaconda3\Li
brary\bin;C:\Users\Owner\anaconda3\Scripts;C:\Users\Owner\anaconda3\bi
n;C:\Users\Owner\anaconda3\condabin;C:\Program Files (x86)\Common
Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Or
acle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\
Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program
Files\Java\jdk-9.0.1\bin;C:\Program
Files\Java\jdk-9.0.1\bin;C:\Program Files
(x86)\QuickTime\QTSystem;C:\WINDOWS\System32\OpenSSH;C:\Program Files\
dotnet;C:\Users\Owner\AppData\Local\Programs\Python\Python37-32;C:\Pro
gram Files\Intel\WiFi\bin;C:\Program Files\Common
Files\Intel\WirelessCommon;C:\Program Files (x86)\Intel\Intel(R)
Management Engine Components\DAL;C:\Program Files\Intel\Intel(R)
Management Engine Components\DAL;C:\Program Files\MySQL\MySQL Shell 8.
0\bin;C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\Scripts
;C:\Users\Owner\AppData\Local\Programs\Python\Python37-32;C:\Users\Own
er\AppData\Local\Microsoft\WindowsApps;C:\Users\Owner\AppData\Local\at
om\bin;C:\Users\Owner\AppData\Local\Microsoft\WindowsApps;C:\Program
Files\Intel\WiFi\bin;C:\Program Files\Common
Files\Intel\WirelessCommon
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
PowerShell\v1.0\Modules
PYTHON_HOME=C:\Users\Owner\AppData\Local\Programs\Python\Python37-32
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
active environment : base
active env location : C:\Users\Owner\anaconda3
shell level : 1
user config file : C:\Users\Owner\.condarc
populated config files : C:\Users\Owner\.condarc
conda version : 4.9.2
conda-build version : 3.20.5
python version : 3.8.5.final.0
virtual packages : __cuda=11.0=0
__win=0=0
__archspec=1=x86_64
base environment : C:\Users\Owner\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 : C:\Users\Owner\anaconda3\pkgs
C:\Users\Owner\.conda\pkgs
C:\Users\Owner\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\Owner\anaconda3\envs
C:\Users\Owner\.conda\envs
C:\Users\Owner\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.9.2 requests/2.24.0 CPython/3.8.5 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.