conda-forge / graphviz-feedstock

A conda-smithy repository for graphviz.
BSD 3-Clause "New" or "Revised" License
5 stars 29 forks source link

**CalledProcessError: Command '['dot.bat', '-Kdot', '-Tpdf', '-O', 'hello.gv']' returned non-zero exit status 1. [stderr: b'The system cannot find the path specified.\r\n']** #65

Closed VasylKolomiiets closed 3 years ago

VasylKolomiiets commented 3 years ago

File image created, but .view() not works.

I have to say that all was working, when Anaconda was placed at SSD disk C:. But it was overfulfilled and I have uninstalled Anaconda and reinstall it on disk D:. But code is not working now.
I even add path to PATH "D:\Games\Anaconda\envs\Torch_ML\Library\bin\graphviz" and "D:\Games\Anaconda\envs\Torch_ML\Library\bin". - but nothing work...

Look this code:

[(Torch_ML) C:\Users\Vasil>python
Python 3.8.8 (default, Feb 24 2021, 15:54:32) [MSC v.1928 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from graphviz import Digraph
>>>
>>> g = Digraph('G', filename='hello.gv')
>>>
>>> g.edge('Hello', 'World')
>>>
>>> print(g)
digraph G {
        Hello -> World
}
>>>
>>> g.view()
The system cannot find the path specified.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Games\Anaconda\envs\Torch_ML\lib\site-packages\graphviz\files.py", line 282, in view
    return self.render(filename=filename, directory=directory,
  File "D:\Games\Anaconda\envs\Torch_ML\lib\site-packages\graphviz\files.py", line 243, in render
    rendered = backend.render(self._engine, format, filepath,
  File "D:\Games\Anaconda\envs\Torch_ML\lib\site-packages\graphviz\backend.py", line 225, in render
    run(cmd, capture_output=True, cwd=cwd, check=True, quiet=quiet)
  File "D:\Games\Anaconda\envs\Torch_ML\lib\site-packages\graphviz\backend.py", line 185, in run
    raise CalledProcessError(proc.returncode, cmd,
graphviz.backend.CalledProcessError: Command '['dot.bat', '-Kdot', '-Tpdf', '-O', 'hello.gv']' returned non-zero exit status 1. [stderr: b'The system cannot find the path specified.\r\n']](url)

I use conda on WIndows10. conda install python-graphviz conda install pydot

The hello.gv.pdf file correcr created!!

nehaljwani commented 3 years ago

@VasilijKolomiets Please share output for:

conda list -ec D:\Games\Anaconda\envs\Torch_ML
VasylKolomiiets commented 3 years ago

(Torch_ML) C:\Users\Vasil>conda list -ec D:\Games\Anaconda\envs\Torch_ML

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "D:\Games\Anaconda\lib\site-packages\conda\exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\conda_argparse.py", line 83, in do_call
    return getattr(module, func_name)(args, parser)
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 140, in execute
    exitcode = print_packages(prefix, regex, format, piplist=args.pip,
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 79, in print_packages
    exitcode, output = list_packages(prefix, regex, format=format,
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 48, in list_packages
    for prec in get_packages(installed, regex) if regex else installed:
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 28, in get_packages
    pat = re.compile(regex, re.I) if regex else None
  File "D:\Games\Anaconda\lib\re.py", line 252, in compile
    return _compile(pattern, flags)
  File "D:\Games\Anaconda\lib\re.py", line 304, in _compile
    p = sre_compile.compile(pattern, flags)
  File "D:\Games\Anaconda\lib\sre_compile.py", line 764, in compile
    p = sre_parse.parse(p, flags)
  File "D:\Games\Anaconda\lib\sre_parse.py", line 948, in parse
    p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
  File "D:\Games\Anaconda\lib\sre_parse.py", line 443, in _parse_sub
    itemsappend(_parse(source, state, verbose, nested + 1,
  File "D:\Games\Anaconda\lib\sre_parse.py", line 525, in _parse
    code = _escape(source, this, state)
  File "D:\Games\Anaconda\lib\sre_parse.py", line 426, in _escape
    raise source.error("bad escape %s" % escape, len(escape))
re.error: bad escape \G at position 2

$ D:\Games\Anaconda\Scripts\conda-script.py list -ec D:\Games\Anaconda\envs\Torch_ML

environment variables: CIO_TEST= CONDA_CUPY_CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1 CONDA_DEFAULT_ENV=Torch_ML CONDA_EXE=D:\Games\Anaconda\condabin..\Scripts\conda.exe CONDA_EXES="D:\Games\Anaconda\condabin..\Scripts\conda.exe" CONDA_PREFIX=D:\Games\Anaconda\envs\Torch_ML CONDA_PROMPT_MODIFIER=(Torch_ML) CONDA_PYTHON_EXE=D:\Games\Anaconda\python.exe CONDA_ROOT=D:\Games\Anaconda CONDA_SHLVL=1 CUDA_PATH=D:\Games\Anaconda\envs\Torch_ML\Library CURL_CA_BUNDLE= HOMEPATH=\Users\Vasil NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\ PATH=D:\Games\Anaconda;D:\Games\Anaconda\Library\mingw-w64\bin;D:\Games\Ana conda\Library\usr\bin;D:\Games\Anaconda\Library\bin;D:\Games\Anaconda\ Scripts;D:\Games\Anaconda\bin;D:\Games\Anaconda\envs\Torch_ML;D:\Games \Anaconda\envs\Torch_ML\Library\mingw-w64\bin;D:\Games\Anaconda\envs\T orch_ML\Library\usr\bin;D:\Games\Anaconda\envs\Torch_ML\Library\bin;D: \Games\Anaconda\envs\Torch_ML\Scripts;D:\Games\Anaconda\envs\Torch_ML\ bin;D:\Games\Anaconda\condabin;D:\Games\Anaconda;D:\Games\Anaconda\Lib rary\mingw-w64\bin;D:\Games\Anaconda\Library\usr\bin;D:\Games\Anaconda \Library\bin;D:\Games\Anaconda\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\C UDA\v10.1\libnvvp;C:\Windows\system32;C:\Windows;C:\Windows\System32\W bem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\Ope nSSH;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.3.0;C:\WINDOWS\system32;C:\WINDOWS;C:\ WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WI NDOWS\System32\OpenSSH;C:\Program Files\PuTTY;D:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Users \Vasil\AppData\Local\Microsoft\WindowsApps;C:\Users\Vasil\AppData\Loca l\Programs\Microsoft VS Code\bin;C:\Users\Vasil\AppData\Local\GitHubDe sktop\bin;C:\Users\Vasil\AppData\Local\Microsoft\WindowsApps;d:\Progra m Files\heroku\bin;C:\Users\Vasil\AppData\Roaming\npm;D:\Games\Anacond a\Library\bin;D:\Games\Anaconda\Library\bin\graphviz;. PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows PowerShell\v1.0\Modules REQUESTS_CA_BUNDLE= SSL_CERT_FILE=

 active environment : Torch_ML
active env location : D:\Games\Anaconda\envs\Torch_ML
        shell level : 1
   user config file : C:\Users\Vasil\.condarc

populated config files : C:\Users\Vasil.condarc conda version : 4.9.2 conda-build version : 3.20.5 python version : 3.8.5.final.0 virtual packages : cuda=11.2=0 win=0=0 __archspec=1=x86_64 base environment : D:\Games\Anaconda (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:\Games\Anaconda\pkgs C:\Users\Vasil.conda\pkgs C:\Users\Vasil\AppData\Local\conda\conda\pkgs envs directories : D:\Games\Anaconda\envs C:\Users\Vasil.conda\envs C:\Users\Vasil\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.19041 administrator : False netrc file : None offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

If submitted, this report will be used by core maintainers to improve future releases of conda. Would you like conda to send this report to the core maintainers?

[y/N]:

VasylKolomiiets commented 3 years ago

@VasilijKolomiets Please share output for:

conda list -ec D:\Games\Anaconda\envs\Torch_ML

I am ready install all again ) . Now I am creating new "clear" env for Pythorch. Please help me I install PyTorch, SpaCY and wanna install torchviz - Can You help me? Pleeease )

I did in new env:

conda install pytorch torchvision torchaudio cudatoolkit=10.1 -c pytorch

conda install -c conda-forge spacy
conda install -c conda-forge cupy
python -m spacy download en_core_web_trf
python -m spacy download ru_core_news_lg

Now I am waiting for advice ...

LOOK! Empty env - without graphviz gives the same error. I did only 5 installs above!!

(ML) C:\Users\Vasil>conda list -ec D:\Games\Anaconda\envs\ML

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "D:\Games\Anaconda\lib\site-packages\conda\exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\conda_argparse.py", line 83, in do_call
    return getattr(module, func_name)(args, parser)
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 140, in execute
    exitcode = print_packages(prefix, regex, format, piplist=args.pip,
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 79, in print_packages
    exitcode, output = list_packages(prefix, regex, format=format,
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 48, in list_packages
    for prec in get_packages(installed, regex) if regex else installed:
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 28, in get_packages
    pat = re.compile(regex, re.I) if regex else None
  File "D:\Games\Anaconda\lib\re.py", line 252, in compile
    return _compile(pattern, flags)
  File "D:\Games\Anaconda\lib\re.py", line 304, in _compile
    p = sre_compile.compile(pattern, flags)
  File "D:\Games\Anaconda\lib\sre_compile.py", line 764, in compile
    p = sre_parse.parse(p, flags)
  File "D:\Games\Anaconda\lib\sre_parse.py", line 948, in parse
    p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
  File "D:\Games\Anaconda\lib\sre_parse.py", line 443, in _parse_sub
    itemsappend(_parse(source, state, verbose, nested + 1,
  File "D:\Games\Anaconda\lib\sre_parse.py", line 525, in _parse
    code = _escape(source, this, state)
  File "D:\Games\Anaconda\lib\sre_parse.py", line 426, in _escape
    raise source.error("bad escape %s" % escape, len(escape))
re.error: bad escape \G at position 2

$ D:\Games\Anaconda\Scripts\conda-script.py list -ec D:\Games\Anaconda\envs\ML

environment variables: CIO_TEST= CONDA_DEFAULT_ENV=ML CONDA_EXE=D:\Games\Anaconda\condabin..\Scripts\conda.exe CONDA_EXES="D:\Games\Anaconda\condabin..\Scripts\conda.exe" CONDA_PREFIX=D:\Games\Anaconda\envs\ML CONDA_PROMPT_MODIFIER=(ML) CONDA_PYTHON_EXE=D:\Games\Anaconda\python.exe CONDA_ROOT=D:\Games\Anaconda CONDA_SHLVL=1 CUDA_PATH=D:\Games\Anaconda\envs\ML\Library CURL_CA_BUNDLE= HOMEPATH=\Users\Vasil NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\ PATH=D:\Games\Anaconda;D:\Games\Anaconda\Library\mingw-w64\bin;D:\Games\Ana conda\Library\usr\bin;D:\Games\Anaconda\Library\bin;D:\Games\Anaconda\ Scripts;D:\Games\Anaconda\bin;D:\Games\Anaconda\envs\ML;D:\Games\Anaco nda\envs\ML\Library\mingw-w64\bin;D:\Games\Anaconda\envs\ML\Library\us r\bin;D:\Games\Anaconda\envs\ML\Library\bin;D:\Games\Anaconda\envs\ML\ Scripts;D:\Games\Anaconda\envs\ML\bin;D:\Games\Anaconda\condabin;D:\Ga mes\Anaconda;D:\Games\Anaconda\Library\mingw-w64\bin;D:\Games\Anaconda \Library\usr\bin;D:\Games\Anaconda\Library\bin;D:\Games\Anaconda\Scrip ts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;C:\Windows\syste m32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPow erShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.3.0;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wb em;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\Open SSH;C:\Program Files\PuTTY;D:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Users\Vasil\AppData\Local\Micr osoft\WindowsApps;C:\Users\Vasil\AppData\Local\Programs\Microsoft VS C ode\bin;C:\Users\Vasil\AppData\Local\GitHubDesktop\bin;C:\Users\Vasil\ AppData\Local\Microsoft\WindowsApps;d:\Program Files\heroku\bin;C:\Use rs\Vasil\AppData\Roaming\npm;D:\Games\Anaconda\Library\bin;D:\Games\An aconda\Library\bin\graphviz;. PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows PowerShell\v1.0\Modules REQUESTS_CA_BUNDLE= SSL_CERT_FILE=

 active environment : ML
active env location : D:\Games\Anaconda\envs\ML
        shell level : 1
   user config file : C:\Users\Vasil\.condarc

populated config files : C:\Users\Vasil.condarc conda version : 4.9.2 conda-build version : 3.20.5 python version : 3.8.5.final.0 virtual packages : cuda=11.2=0 win=0=0 __archspec=1=x86_64 base environment : D:\Games\Anaconda (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:\Games\Anaconda\pkgs C:\Users\Vasil.conda\pkgs C:\Users\Vasil\AppData\Local\conda\conda\pkgs envs directories : D:\Games\Anaconda\envs C:\Users\Vasil.conda\envs C:\Users\Vasil\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.19041 administrator : False netrc file : None offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

Upload successful.

(ML) C:\Users\Vasil> pytorch_2021-03-03 131503 spaCy_2021-03-03 131609

I only did that official sites recommended ((

nehaljwani commented 3 years ago

@VasilijKolomiets Okay, could you modify the command to just: conda list and share the output, after activating the corresponding environment?

VasylKolomiiets commented 3 years ago

@VasilijKolomiets Okay, could you modify the command to just: conda list and share the output, after activating the corresponding environment?

Look. I have removed Anaconda again. Clean previous 2 rests of pre and previous Anaconda. Install all again, And - nothing

look NEW conda list:

(ML) C:\Users\Vasil>conda list

packages in environment at D:\Games\Anaconda\envs\ML:

#

Name Version Build Channel

aiohttp 3.7.4 py38h294d835_0 conda-forge alabaster 0.7.12 pyhd3eb1b0_0 appdirs 1.4.4 py_0 argh 0.26.2 py38_0 astroid 2.5 py38haa95532_1 async-timeout 3.0.1 py_1000 conda-forge async_generator 1.10 pyhd3eb1b0_0 atomicwrites 1.4.0 py_0 attrs 20.3.0 pyhd3deb0d_0 conda-forge autopep8 1.5.5 pyhd3eb1b0_0 babel 2.9.0 pyhd3eb1b0_0 backcall 0.2.0 pyhd3eb1b0_0 bcrypt 3.2.0 py38he774522_0 black 19.10b0 py_0 blas 1.0 mkl bleach 3.3.0 pyhd3eb1b0_0 boto 2.49.0 py_0 conda-forge boto3 1.17.19 pyhd8ed1ab_0 conda-forge botocore 1.20.19 pyhd8ed1ab_0 conda-forge brotlipy 0.7.0 py38h294d835_1001 conda-forge bz2file 0.98 py_0 conda-forge ca-certificates 2021.1.19 haa95532_0 cachetools 4.2.1 pyhd8ed1ab_0 conda-forge catalogue 2.0.1 py38haa244fe_2 conda-forge certifi 2020.12.5 py38haa95532_0 cffi 1.14.5 py38hd8c33c5_0 conda-forge chardet 4.0.0 py38haa244fe_1 conda-forge click 7.1.2 pyh9f0ad1d_0 conda-forge cloudpickle 1.6.0 py_0 colorama 0.4.4 pyh9f0ad1d_0 conda-forge cryptography 3.4.4 py38hb7941b4_0 conda-forge cudatoolkit 10.1.243 h74a9793_0 cudnn 7.6.5 cuda10.1_0 cupy 8.3.0 py38hd4ca531_0 cycler 0.10.0 py38_0 cymem 2.0.5 py38h885f38d_1 conda-forge cython-blis 0.7.4 py38h347fdf6_0 conda-forge dataclasses 0.7 pyhb2cacf7_7 conda-forge dawg-python 0.7.2 pypi_0 pypi decorator 4.4.2 pyhd3eb1b0_0 defusedxml 0.6.0 pyhd3eb1b0_0 diff-match-patch 20200713 py_0 docopt 0.6.2 pypi_0 pypi docutils 0.16 py38_1 en-core-web-trf 3.0.0 pypi_0 pypi entrypoints 0.3 py38_0 fastrlock 0.5 py38h885f38d_2 conda-forge filelock 3.0.12 pypi_0 pypi flake8 3.8.4 py_0 freetype 2.10.4 hd328e21_0 ftfy 5.9 pypi_0 pypi future 0.18.2 py38_1 google-api-core 1.25.1 pyh44b312d_0 conda-forge google-auth 1.24.0 pyhd3deb0d_0 conda-forge google-cloud-core 1.5.0 pyhd3deb0d_0 conda-forge google-cloud-storage 1.19.0 py_0 conda-forge google-crc32c 1.1.2 py38h554a69a_0 conda-forge google-resumable-media 1.2.0 pyhd3deb0d_0 conda-forge googleapis-common-protos 1.52.0 py38h5b57dd5_1 conda-forge graphviz 2.38 hfd603c8_2 grpcio 1.36.0 py38he5377a8_0 conda-forge icu 58.2 ha925a31_3 idna 2.10 pyh9f0ad1d_0 conda-forge imagesize 1.2.0 pyhd3eb1b0_0 importlib-metadata 2.0.0 py_1 importlib_metadata 2.0.0 1 intel-openmp 2020.2 254 intervaltree 3.1.0 py_0 ipykernel 5.3.4 py38h5ca1d4c_0 ipython 7.21.0 py38hd4e2768_0 ipython_genutils 0.2.0 pyhd3eb1b0_1 isort 5.7.0 pyhd3eb1b0_0 jedi 0.17.2 py38haa95532_1 jinja2 2.11.3 pyh44b312d_0 conda-forge jmespath 0.10.0 pyh9f0ad1d_0 conda-forge joblib 1.0.1 pypi_0 pypi jpeg 9b hb83a4c4_2 jsonschema 3.2.0 py_2 jupyter_client 6.1.7 py_0 jupyter_core 4.7.1 py38haa95532_0 jupyterlab_pygments 0.1.2 py_0 keyring 22.3.0 py38haa95532_0 kiwisolver 1.3.1 py38hd77b12b_0 lazy-object-proxy 1.5.2 py38h2bbff1b_0 libcrc32c 1.1.1 h0e60522_2 conda-forge libpng 1.6.37 h2a8f88b_0 libprotobuf 3.15.3 h7755175_0 conda-forge libsodium 1.0.18 h62dcd97_0 libspatialindex 1.9.3 h33f27b4_0 libtiff 4.1.0 h56a325e_1 libuv 1.40.0 he774522_0 lz4-c 1.9.3 h2bbff1b_0 markupsafe 1.1.1 py38h294d835_3 conda-forge matplotlib 3.3.4 py38haa95532_0 matplotlib-base 3.3.4 py38h49ac443_0 mccabe 0.6.1 py38_1 mistune 0.8.4 py38he774522_1000 mkl 2020.2 256 mkl-service 2.3.0 py38h196d8e1_0 mkl_fft 1.3.0 py38h46781fe_0 mkl_random 1.1.1 py38h47e9c7a_0 multidict 5.1.0 py38h294d835_1 conda-forge murmurhash 1.0.5 py38h885f38d_0 conda-forge mypy_extensions 0.4.3 py38_0 nbclient 0.5.3 pyhd3eb1b0_0 nbconvert 6.0.7 py38_0 nbformat 5.1.2 pyhd3eb1b0_1 nest-asyncio 1.5.1 pyhd3eb1b0_0 ninja 1.10.2 py38h6d14046_0 numpy 1.19.2 py38hadc3359_0 numpy-base 1.19.2 py38ha3acd2a_0 numpydoc 1.1.0 pyhd3eb1b0_1 olefile 0.46 py_0 openssl 1.1.1j h2bbff1b_0 packaging 20.9 pyh44b312d_0 conda-forge pandoc 2.11 h9490d1a_0 pandocfilters 1.4.3 py38haa95532_1 paramiko 2.7.2 py_0 parso 0.7.0 py_0 pathspec 0.7.0 py_0 pathy 0.4.0 pyhd8ed1ab_0 conda-forge pexpect 4.8.0 pyhd3eb1b0_3 pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 8.1.1 py38h4fa10fc_0 pip 21.0.1 py38haa95532_0 pluggy 0.13.1 py38_0 preshed 3.0.5 py38h885f38d_0 conda-forge prompt-toolkit 3.0.8 py_0 protobuf 3.15.3 py38h885f38d_0 conda-forge psutil 5.8.0 py38h2bbff1b_1 ptyprocess 0.7.0 pyhd3eb1b0_2 pyasn1 0.4.8 py_0 conda-forge pyasn1-modules 0.2.7 py_0 conda-forge pycodestyle 2.6.0 pyhd3eb1b0_0 pycparser 2.20 pyh9f0ad1d_2 conda-forge pydantic 1.7.3 py38h294d835_1 conda-forge pydocstyle 5.1.1 py_0 pydot 1.4.1 py38_0 pyflakes 2.2.0 pyhd3eb1b0_0 pygments 2.8.0 pyhd3eb1b0_0 pylint 2.7.1 py38haa95532_1 pyls-black 0.4.6 hd3eb1b0_0 pyls-spyder 0.3.2 pyhd3eb1b0_0 pymorphy2 0.9.1 pypi_0 pypi pymorphy2-dicts-ru 2.4.417127.4579844 pypi_0 pypi pynacl 1.4.0 py38h62dcd97_1 pyopenssl 20.0.1 pyhd8ed1ab_0 conda-forge pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge pyqt 5.9.2 py38ha925a31_4 pyrsistent 0.17.3 py38he774522_0 pysocks 1.7.1 py38haa244fe_3 conda-forge python 3.8.8 hdbf39b2_4 python-dateutil 2.8.1 py_0 conda-forge python-graphviz 0.16 pyhd3eb1b0_1 python-jsonrpc-server 0.4.0 py_0 python-language-server 0.36.2 pyhd3eb1b0_0 python_abi 3.8 1_cp38 conda-forge pytorch 1.7.1 py3.8_cuda101_cudnn7_0 pytorch pytz 2021.1 pyhd8ed1ab_0 conda-forge pywin32 227 py38he774522_1 pywin32-ctypes 0.2.0 py38_1000 pyyaml 5.4.1 py38h2bbff1b_1 pyzmq 20.0.0 py38hd77b12b_1 qdarkstyle 2.8.1 py_0 qt 5.9.7 vc14h73c81de_0 qtawesome 1.0.1 py_0 qtconsole 5.0.2 pyhd3eb1b0_0 qtpy 1.9.0 py_0 regex 2020.11.13 py38h2bbff1b_0 requests 2.25.1 pyhd3deb0d_0 conda-forge rope 0.18.0 py_0 rsa 4.7.2 pyh44b312d_0 conda-forge rtree 0.9.4 py38h21ff451_1 ru-core-news-lg 3.0.0 pypi_0 pypi s3transfer 0.3.4 pyhd8ed1ab_0 conda-forge sacremoses 0.0.43 pypi_0 pypi setuptools 52.0.0 py38haa95532_0 shellingham 1.4.0 pyh44b312d_0 conda-forge sip 4.19.13 py38ha925a31_0 six 1.15.0 py38haa95532_0 smart_open 2.2.1 pyh9f0ad1d_0 conda-forge snowballstemmer 2.1.0 pyhd3eb1b0_0 sortedcontainers 2.3.0 pyhd3eb1b0_0 spacy 3.0.3 py38h1266d08_0 conda-forge spacy-alignments 0.7.2 pypi_0 pypi spacy-legacy 3.0.1 pyhd8ed1ab_0 conda-forge spacy-transformers 1.0.1 pypi_0 pypi sphinx 3.5.1 pyhd3eb1b0_0 sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0 sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0 sphinxcontrib-htmlhelp 1.0.3 pyhd3eb1b0_0 sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0 sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0 sphinxcontrib-serializinghtml 1.1.4 pyhd3eb1b0_0 spyder 4.2.1 py38haa95532_1 spyder-kernels 1.10.2 py38haa95532_0 sqlite 3.33.0 h2a8f88b_0 srsly 2.4.0 py38h885f38d_2 conda-forge testpath 0.4.4 pyhd3eb1b0_0 textdistance 4.2.1 pyhd3eb1b0_0 thinc 8.0.1 py38h1266d08_1 conda-forge three-merge 0.1.1 pyhd3eb1b0_0 tk 8.6.10 he774522_0 tokenizers 0.9.4 pypi_0 pypi toml 0.10.1 py_0 torchaudio 0.7.2 py38 pytorch torchcontrib 0.0.2 pypi_0 pypi torchvision 0.8.2 py38_cu101 pytorch tornado 6.1 py38h2bbff1b_0 tqdm 4.58.0 pyhd8ed1ab_0 conda-forge traitlets 5.0.5 pyhd3eb1b0_0 transformers 4.2.2 pypi_0 pypi typed-ast 1.4.2 py38h2bbff1b_1 typer 0.3.2 pyhd8ed1ab_0 conda-forge typing-extensions 3.7.4.3 0 conda-forge typing_extensions 3.7.4.3 py_0 conda-forge ujson 4.0.2 py38hd77b12b_0 urllib3 1.26.3 pyhd8ed1ab_0 conda-forge vc 14.2 h21ff451_1 vs2015_runtime 14.27.29016 h5e58377_2 wasabi 0.8.2 pyh44b312d_0 conda-forge watchdog 1.0.2 py38haa95532_1 wcwidth 0.2.5 py_0 webencodings 0.5.1 py38_1 wheel 0.36.2 pyhd3eb1b0_0 win_inet_pton 1.1.0 py38haa244fe_2 conda-forge wincertstore 0.2 py38_0 wrapt 1.12.1 py38he774522_1 xz 5.2.5 h62dcd97_0 yaml 0.2.5 he774522_0 yapf 0.30.0 py_0 yarl 1.6.3 py38h294d835_1 conda-forge zeromq 4.3.3 ha925a31_3 zipp 3.4.0 pyhd3eb1b0_0 zlib 1.2.11 h62dcd97_4 zstd 1.4.5 h04227a9_0

AND NEW ERROR REPORT:

(ML) C:\Users\Vasil>conda list -ec D:\Games\Anaconda\envs\Torch_ML

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "D:\Games\Anaconda\lib\site-packages\conda\exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\conda_argparse.py", line 83, in do_call
    return getattr(module, func_name)(args, parser)
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 140, in execute
    exitcode = print_packages(prefix, regex, format, piplist=args.pip,
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 79, in print_packages
    exitcode, output = list_packages(prefix, regex, format=format,
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 48, in list_packages
    for prec in get_packages(installed, regex) if regex else installed:
  File "D:\Games\Anaconda\lib\site-packages\conda\cli\main_list.py", line 28, in get_packages
    pat = re.compile(regex, re.I) if regex else None
  File "D:\Games\Anaconda\lib\re.py", line 252, in compile
    return _compile(pattern, flags)
  File "D:\Games\Anaconda\lib\re.py", line 304, in _compile
    p = sre_compile.compile(pattern, flags)
  File "D:\Games\Anaconda\lib\sre_compile.py", line 764, in compile
    p = sre_parse.parse(p, flags)
  File "D:\Games\Anaconda\lib\sre_parse.py", line 948, in parse
    p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
  File "D:\Games\Anaconda\lib\sre_parse.py", line 443, in _parse_sub
    itemsappend(_parse(source, state, verbose, nested + 1,
  File "D:\Games\Anaconda\lib\sre_parse.py", line 525, in _parse
    code = _escape(source, this, state)
  File "D:\Games\Anaconda\lib\sre_parse.py", line 426, in _escape
    raise source.error("bad escape %s" % escape, len(escape))
re.error: bad escape \G at position 2

$ D:\Games\Anaconda\Scripts\conda-script.py list -ec D:\Games\Anaconda\envs\Torch_ML

environment variables: CIO_TEST= CONDA_CUPY_CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1 CONDA_DEFAULT_ENV=ML CONDA_EXE=D:\Games\Anaconda\condabin..\Scripts\conda.exe CONDA_EXES="D:\Games\Anaconda\condabin..\Scripts\conda.exe" CONDA_PREFIX=D:\Games\Anaconda\envs\ML CONDA_PROMPT_MODIFIER=(ML) CONDA_PYTHON_EXE=D:\Games\Anaconda\python.exe CONDA_ROOT=D:\Games\Anaconda CONDA_SHLVL=1 CUDA_PATH=D:\Games\Anaconda\envs\ML\Library CURL_CA_BUNDLE= HOMEPATH=\Users\Vasil NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\ PATH=D:\Games\Anaconda;D:\Games\Anaconda\Library\mingw-w64\bin;D:\Games\Ana conda\Library\usr\bin;D:\Games\Anaconda\Library\bin;D:\Games\Anaconda\ Scripts;D:\Games\Anaconda\bin;D:\Games\Anaconda\envs\ML;D:\Games\Anaco nda\envs\ML\Library\mingw-w64\bin;D:\Games\Anaconda\envs\ML\Library\us r\bin;D:\Games\Anaconda\envs\ML\Library\bin;D:\Games\Anaconda\envs\ML\ Scripts;D:\Games\Anaconda\envs\ML\bin;D:\Games\Anaconda\condabin;D:\Ga mes\Anaconda;D:\Games\Anaconda\Library\mingw-w64\bin;D:\Games\Anaconda \Library\usr\bin;D:\Games\Anaconda\Library\bin;D:\Games\Anaconda\Scrip ts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;C:\Windows\syste m32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPow erShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.3.0;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wb em;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\Open SSH;C:\Program Files\PuTTY;D:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Users\Vasil\AppData\Local\Micr osoft\WindowsApps;C:\Users\Vasil\AppData\Local\Programs\Microsoft VS C ode\bin;C:\Users\Vasil\AppData\Local\GitHubDesktop\bin;C:\Users\Vasil\ AppData\Local\Microsoft\WindowsApps;d:\Program Files\heroku\bin;C:\Use rs\Vasil\AppData\Roaming\npm;D:\Games\Anaconda\Library\bin\graphviz PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows PowerShell\v1.0\Modules REQUESTS_CA_BUNDLE= SSL_CERT_FILE=

 active environment : ML
active env location : D:\Games\Anaconda\envs\ML
        shell level : 1
   user config file : C:\Users\Vasil\.condarc

populated config files : C:\Users\Vasil.condarc conda version : 4.9.2 conda-build version : 3.20.5 python version : 3.8.5.final.0 virtual packages : cuda=11.2=0 win=0=0 __archspec=1=x86_64 base environment : D:\Games\Anaconda (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:\Games\Anaconda\pkgs C:\Users\Vasil.conda\pkgs C:\Users\Vasil\AppData\Local\conda\conda\pkgs envs directories : D:\Games\Anaconda\envs C:\Users\Vasil.conda\envs C:\Users\Vasil\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.19041 administrator : False netrc file : None offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

Upload successful.

(ML) C:\Users\Vasil>

nehaljwani commented 3 years ago

As you can see, these two packages have not been installed from conda-forge:

python-graphviz 0.16 pyhd3eb1b0_1
graphviz 2.38 hfd603c8_2

Please type:

conda install python-graphviz graphviz=2.46.1 -c conda-forge
VasylKolomiiets commented 3 years ago

As you can see, these two packages have not been installed from conda-forge:

python-graphviz 0.16 pyhd3eb1b0_1
graphviz 2.38 hfd603c8_2

Please type:

conda install python-graphviz graphviz=2.46.1 -c conda-forge

but first uninstall conda uninstall python-graphviz ? Or no?

I did: conda uninstall python-graphviz conda install python-graphviz graphviz=2.46.1 -c conda-forge

An d now 10+ minutes it hanging. I see this:

(ML) C:\Users\Vasil>conda install python-graphviz graphviz=2.46.1 -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \

Thanks! I'll try to do it ))

nehaljwani commented 3 years ago

Depending on a lot of factors, it can either replace or stay the same. So yes, you can uninstall first too. In the end, please try to ensure that both packages are from conda-forge.

VasylKolomiiets commented 3 years ago

Depending on a lot of factors, it can either replace or stay the same. So yes, you can uninstall first too. In the end, please try to ensure that both packages are from conda-forge.

Ok. I have understood the idea. Ill write the result )

Now the wheels are rotating )

VasylKolomiiets commented 3 years ago

1) graphviz=2.46.1 can't install ... 2) even conda install python-graphviz graphviz -c conda-forge force installing graphviz from pkgs/main - not from conda-forge

Thanks for trying.
graphviz_2021-03-03 131609

hmm... the same thing

nehaljwani commented 3 years ago

Give this a try too:

conda install conda-forge::python-graphviz conda-forge::graphviz
VasylKolomiiets commented 3 years ago

Give this a try too:

conda install conda-forge::python-graphviz conda-forge::graphviz

Yes - this way graphviz installed from conda-forge.

python-graphviz 0.16 pyhd3deb0d_1 conda-forge graphviz 2.38.0 h6538335_1011 conda-forge

But result is the same....

CalledProcessError: Command '['dot.bat', '-Kdot', '-Tpdf', '-O', 'hello.gv']' returned non-zero exit status 1. [stderr: b'The system cannot find the path specified.\r\n']

VasylKolomiiets commented 3 years ago

Give this a try too:

conda install conda-forge::python-graphviz conda-forge::graphviz

By the way - mat be it will be interesting - i try to use module torchviz. It is not found in conda-forge ))

nehaljwani commented 3 years ago

I forgot to add the pin, try:

conda install conda-forge::python-graphviz conda-forge::graphviz=2.46.1
VasylKolomiiets commented 3 years ago

conda install conda-forge::python-graphviz conda-forge::graphviz=2.46.1

2.46.1 is available Unix only

nehaljwani commented 3 years ago

That's not true:

$ conda search 'conda-forge::graphviz=2.46.1[subdir=win-64]'
Loading channels: done
# Name                       Version           Build  Channel             
graphviz                      2.46.1      h08d4dcb_0  conda-forge         
graphviz                      2.46.1      h08d4dcb_1  conda-forge         
graphviz                      2.46.1      h08d4dcb_2  conda-forge         
graphviz                      2.46.1      h08d4dcb_3  conda-forge         
graphviz                      2.46.1      h08d4dcb_4  conda-forge         
VasylKolomiiets commented 3 years ago

That's not true:

$ conda search 'conda-forge::graphviz=2.46.1[subdir=win-64]'
Loading channels: done
# Name                       Version           Build  Channel             
graphviz                      2.46.1      h08d4dcb_0  conda-forge         
graphviz                      2.46.1      h08d4dcb_1  conda-forge         
graphviz                      2.46.1      h08d4dcb_2  conda-forge         
graphviz                      2.46.1      h08d4dcb_3  conda-forge         
graphviz                      2.46.1      h08d4dcb_4  conda-forge         
VasylKolomiiets commented 3 years ago

I see. But I mean - conda again hang up after conda install conda-forge::python-graphviz conda-forge::graphviz=2.46.1. And after long time said: "Found conflict". Ill uninstall old graphviz and look tomorrow )

Found conflicts! Looking for incompatible packages.

jakirkham commented 3 years ago

Might be worth trying with a new env

VasylKolomiiets commented 3 years ago

Might be worth trying with a new env

I did new env 3 times. All time the same shit. But when conda was at C: disk - all was Ok

jakirkham commented 3 years ago

Can you please share what was run and the output?

VasylKolomiiets commented 3 years ago

Can you please share what was run and the output?

I edited my question. You can see in it the code and the error message.

VasylKolomiiets commented 3 years ago

It seams I found. The problem of installation was in python version. My previous Anaconda installation was with Python early 3.8. New version Anaconda bring Python 3.8.4 But! See the one of constrains:

- defaults/win-64::bcrypt==3.2.0=py38he774522_0 -> python[version='2.7.*|3.5.*|3.6.*|3.6.12|3.6.12|>=3.6,<3.7.0a0|>=3.9,<3.10.0a0|>=3.7,<3.8.0a0|3.7.9|3.6.9|3.6.9|3.6.9|

It is no place for 3.8+ Just now I am installing PyTorch. Then we can see ) BC - ALL I want see - how will work torchviz

addition at 14:13 pip install torchviz fail - bc high version graphviz )))))))))))))))))))))))))))))))))))))))

VasylKolomiiets commented 3 years ago

Dear Boss!!

It works. But important the sequence of installation. And graphviz 2.38 - does not work. Or I cant work with it

1) switch to conda-forge channel 2) install spaCy, NLTK (skip, if you are need not) 3) install pytorch 4) install jupyter with conda install jupyter 5) install graphviz with conda install conda-forge::python-graphviz conda-forge::graphviz=2.46.1 6) install torchviz with pip install torchviz

DONT CHANGE sequence between steps!! It is hard three days experience!!

and - see here (voila) )) ML_2021-03-04 154121