Closed silasdao closed 1 year ago
pretty much the same issue. I am on Ubuntu 22.04.2 LTS. The same error on Window 12 as well. TorchStudio 0.9.9 throws the same issue Thanks for any help!
@silasdao @erkara TorchStudio 0.9.15 was just released today, and it should fix installation issues. Can you confirm ?
@silasdao @erkara TorchStudio 0.9.15 was just released today, and it should fix installation issues. Can you confirm ?
I have not tested on Windows but it fixed the error on Ubuntu, I can now access the UI, Thank you!!!
I've gone through the issues threads and tried everything; every way in terms of package manager and installer; it just doesn't want to do anytthing after the local py env is installed but the cli window just hangs after installation completed.
You exit and it's closed unexpectedly error.
I've done the local env install a couple of different ways now and it still does the same thing.
Ventura MacOS. I'm probably doing a total noob thing.
Downloading, installing and setting up a macOS python environment This may take up to 5 minutes depending on your download speed, and up to 5 GB.
Downloading Python installer Miniconda3-latest-MacOSX-arm64.sh... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 41.7M 100 41.7M 0 0 5748k 0 0:00:07 0:00:07 --:--:-- 5954k
Installing Python in /Users/username/torchstudio_env/python... PREFIX=/Users/username/torchstudio_env/python Unpacking payload ...
Installing base environment...
Downloading and Extracting Packages
Downloading and Extracting Packages
Preparing transaction: ...working... done Executing transaction: ...working... done installation finished. Downloading and installing pytorch-nightly packages...
Collecting package metadata (current_repodata.json): ...working... Downloading and installing pytorch packages...
Collecting package metadata (current_repodata.json): ...working... failed KeyError('pkgs_dirs') Traceback (most recent call last): File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/plugins/virtual_packages/cuda.py", line 42, in cuda_version detector.start() File "/Users/user_name/torchstudio_env/python/lib/python3.10/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/Users/user_name/torchstudio_env/python/lib/python3.10/multiprocessing/context.py", line 288, in _Popen return Popen(process_obj) File "/Users/user_name/torchstudio_env/python/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/user_name/torchstudio_env/python/lib/python3.10/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/Users/user_name/torchstudio_env/python/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/user_name/torchstudio_env/python/lib/python3.10/multiprocessing/spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "/Users/user_name/torchstudio_env/python/lib/python3.10/multiprocessing/spawn.py", line 134, in _check_not_importing_main raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/exceptions.py", line 1124, in call return func(*args, kwargs) File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/cli/conda_argparse.py", line 91, in do_call return getattr(module, func_name)(args, parser) File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/notices/core.py", line 109, in wrapper return func(*args, *kwargs) File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/cli/main_install.py", line 20, in execute install(args, parser, 'install') File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/cli/install.py", line 264, in install unlink_link_transaction = solver.solve_for_transaction( File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/core/solve.py", line 132, in solve_for_transaction unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier, File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/core/solve.py", line 175, in solve_for_diff final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned, File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/core/solve.py", line 280, in solve_final_state ssc = self._collect_all_metadata(ssc) File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/common/io.py", line 84, in decorated return f(args, kwds) File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/core/solve.py", line 419, in _collect_all_metadata _supplement_index_with_system(virtual_pkg_index) File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/core/index.py", line 170, in _supplement_index_with_system packages = context.plugin_manager.get_hook_results("virtual_packages") File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/plugins/manager.py", line 77, in get_hook_results plugins = sorted( File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/plugins/manager.py", line 78, in
(item for items in hook() for item in items),
File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/plugins/virtual_packages/cuda.py", line 65, in conda_virtual_packages
cuda_version = cached_cuda_version()
File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/plugins/virtual_packages/cuda.py", line 60, in cached_cuda_version
return cuda_version()
File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/common/decorators.py", line 25, in wrapper
return func(*args, **kwargs)
File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/plugins/virtual_packages/cuda.py", line 46, in cuda_version
detector.kill() # requires Python 3.7+
File "/Users/user_name/torchstudio_env/python/lib/python3.10/multiprocessing/process.py", line 140, in kill
self._popen.kill()
AttributeError: 'NoneType' object has no attribute 'kill'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/exceptions.py", line 1244, in print_unexpected_error_report message_builder.append(get_main_info_str(error_report['conda_info'])) File "/Users/user_name/torchstudio_env/python/lib/python3.10/site-packages/conda/cli/main_info.py", line 236, in get_main_info_str infodict['' + key] = ('\n' + 26 * ' ').join(info_dict[key]) KeyError: 'pkgs_dirs'
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
$ python_api install pytorch::pytorch pytorch::torchvision pytorch::torchaudio pytorch::torchtext -k
environment variables: conda info could not be constructed. KeyError('pkgs_dirs')
An unexpected error has occurred. Conda has prepared the above report.
Upload successful. done Solving environment: ...working... done
Package Plan
environment location: /Users/user_name/torchstudio_env/python
added / updated specs:
The following packages will be downloaded:
The following NEW packages will be INSTALLED:
blas pkgs/main/osx-arm64::blas-1.0-openblas ffmpeg pkgs/main/osx-arm64::ffmpeg-4.2.2-h04105a8_0 filelock pkgs/main/osx-arm64::filelock-3.9.0-py310hca03da5_0 flit-core pkgs/main/noarch::flit-core-3.6.0-pyhd3eb1b0_0 freetype pkgs/main/osx-arm64::freetype-2.12.1-h1192e45_0 gettext pkgs/main/osx-arm64::gettext-0.21.0-h826f4ad_0 giflib pkgs/main/osx-arm64::giflib-5.2.1-h80987f9_3 gmp pkgs/main/osx-arm64::gmp-6.2.1-hc377ac9_3 gmpy2 pkgs/main/osx-arm64::gmpy2-2.1.2-py310h8c48613_0 gnutls pkgs/main/osx-arm64::gnutls-3.6.15-h887c41c_0 icu pkgs/main/osx-arm64::icu-68.1-hc377ac9_0 jinja2 pkgs/main/osx-arm64::jinja2-3.1.2-py310hca03da5_0 jpeg pkgs/main/osx-arm64::jpeg-9e-h80987f9_1 lame pkgs/main/osx-arm64::lame-3.100-h1a28f6b_0 lcms2 pkgs/main/osx-arm64::lcms2-2.12-hba8e193_0 lerc pkgs/main/osx-arm64::lerc-3.0-hc377ac9_0 libcxx pkgs/main/osx-arm64::libcxx-14.0.6-h848a8c0_0 libdeflate pkgs/main/osx-arm64::libdeflate-1.17-h80987f9_0 libgfortran pkgs/main/osx-arm64::libgfortran-5.0.0-11_3_0_hca03da5_28 libgfortran5 pkgs/main/osx-arm64::libgfortran5-11.3.0-h009349e_28 libiconv pkgs/main/osx-arm64::libiconv-1.16-h1a28f6b_2 libidn2 pkgs/main/osx-arm64::libidn2-2.3.1-h1a28f6b_0 libopenblas pkgs/main/osx-arm64::libopenblas-0.3.21-h269037a_0 libopus pkgs/main/osx-arm64::libopus-1.3-h1a28f6b_1 libpng pkgs/main/osx-arm64::libpng-1.6.39-h80987f9_0 libtasn1 pkgs/main/osx-arm64::libtasn1-4.16.0-h1a28f6b_0 libtiff pkgs/main/osx-arm64::libtiff-4.5.0-h313beb8_2 libunistring pkgs/main/osx-arm64::libunistring-0.9.10-h1a28f6b_0 libvpx pkgs/main/osx-arm64::libvpx-1.10.0-hc377ac9_0 libwebp pkgs/main/osx-arm64::libwebp-1.2.4-ha3663a8_1 libwebp-base pkgs/main/osx-arm64::libwebp-base-1.2.4-h80987f9_1 libxml2 pkgs/main/osx-arm64::libxml2-2.9.14-h8c5e841_0 llvm-openmp pkgs/main/osx-arm64::llvm-openmp-14.0.6-hc6e5704_0 lz4-c pkgs/main/osx-arm64::lz4-c-1.9.4-h313beb8_0 markupsafe pkgs/main/osx-arm64::markupsafe-2.1.1-py310h1a28f6b_0 mpc pkgs/main/osx-arm64::mpc-1.1.0-h8c48613_1 mpfr pkgs/main/osx-arm64::mpfr-4.0.2-h695f6f0_1 mpmath pkgs/main/osx-arm64::mpmath-1.2.1-py310hca03da5_0 nettle pkgs/main/osx-arm64::nettle-3.7.3-h84b5d62_1 networkx pkgs/main/osx-arm64::networkx-2.8.4-py310hca03da5_1 numpy pkgs/main/osx-arm64::numpy-1.23.5-py310hb93e574_0 numpy-base pkgs/main/osx-arm64::numpy-base-1.23.5-py310haf87e8b_0 openh264 pkgs/main/osx-arm64::openh264-1.8.0-h98b2900_0 pillow pkgs/main/osx-arm64::pillow-9.4.0-py310h313beb8_0 pytorch pytorch-nightly/osx-arm64::pytorch-2.1.0.dev20230317-py3.10_0 sympy pkgs/main/osx-arm64::sympy-1.11.1-py310hca03da5_0 torchaudio pytorch-nightly/osx-arm64::torchaudio-2.0.0.dev20230317-py310_cpu torchdata pytorch-nightly/osx-arm64::torchdata-0.7.0.dev20230317-py310 torchtext pytorch-nightly/osx-arm64::torchtext-0.15.0.dev20230317-py310 torchvision pytorch-nightly/osx-arm64::torchvision-0.16.0.dev20230317-py310_cpu typing_extensions pkgs/main/osx-arm64::typing_extensions-4.4.0-py310hca03da5_0 x264 pkgs/main/osx-arm64::x264-1!152.20180806-h1a28f6b_0 zstd pkgs/main/osx-arm64::zstd-1.5.2-h8574219_0
The following packages will be UPDATED:
openssl 1.1.1s-h1a28f6b_0 --> 1.1.1t-h1a28f6b_0
Downloading and Extracting Packages
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Downloading and installing conda-forge packages...
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
Package Plan
environment location: /Users/user_name/torchstudio_env/python
added / updated specs:
The following packages will be downloaded:
The following NEW packages will be INSTALLED:
abseil-cpp conda-forge/osx-arm64::abseil-cpp-20211102.0-h6b3803e_1 aiohttp pkgs/main/osx-arm64::aiohttp-3.8.3-py310h80987f9_0 aiosignal conda-forge/noarch::aiosignal-1.3.1-pyhd8ed1ab_0 arrow-cpp pkgs/main/osx-arm64::arrow-cpp-8.0.0-py310ha45eab8_1 async-timeout conda-forge/noarch::async-timeout-4.0.2-pyhd8ed1ab_0 attrs conda-forge/noarch::attrs-22.2.0-pyh71513ae_0 aws-c-common pkgs/main/osx-arm64::aws-c-common-0.6.8-h1a28f6b_0 aws-c-event-stream pkgs/main/osx-arm64::aws-c-event-stream-0.1.6-hc377ac9_5 aws-checksums pkgs/main/osx-arm64::aws-checksums-0.1.11-h1a28f6b_1 aws-sdk-cpp pkgs/main/osx-arm64::aws-sdk-cpp-1.8.185-h4a942e0_0 bcrypt pkgs/main/osx-arm64::bcrypt-3.2.0-py310h1a28f6b_1 boost-cpp conda-forge/osx-arm64::boost-cpp-1.74.0-h32e41df_4 bottleneck pkgs/main/osx-arm64::bottleneck-1.3.5-py310h96f19d2_0 brotli conda-forge/osx-arm64::brotli-1.0.9-h1a8c8d9_8 brotli-bin conda-forge/osx-arm64::brotli-bin-1.0.9-h1a8c8d9_8 c-ares conda-forge/osx-arm64::c-ares-1.18.1-h3422bc3_0 cairo pkgs/main/osx-arm64::cairo-1.16.0-h29d4eff_2 contourpy pkgs/main/osx-arm64::contourpy-1.0.5-py310h525c30c_0 cycler conda-forge/noarch::cycler-0.11.0-pyhd8ed1ab_0 datasets conda-forge/noarch::datasets-2.10.1-pyhd8ed1ab_0 dill conda-forge/noarch::dill-0.3.6-pyhd8ed1ab_1 expat conda-forge/osx-arm64::expat-2.5.0-hb7217d7_0 font-ttf-dejavu-s~ conda-forge/noarch::font-ttf-dejavu-sans-mono-2.37-hab24e00_0 font-ttf-inconsol~ conda-forge/noarch::font-ttf-inconsolata-3.000-h77eed37_0 font-ttf-source-c~ conda-forge/noarch::font-ttf-source-code-pro-2.038-h77eed37_0 font-ttf-ubuntu conda-forge/noarch::font-ttf-ubuntu-0.83-hab24e00_0 fontconfig conda-forge/osx-arm64::fontconfig-2.13.94-heb65262_0 fonts-conda-ecosy~ conda-forge/noarch::fonts-conda-ecosystem-1-0 fonts-conda-forge conda-forge/noarch::fonts-conda-forge-1-0 fonttools pkgs/main/noarch::fonttools-4.25.0-pyhd3eb1b0_0 fribidi conda-forge/osx-arm64::fribidi-1.0.10-h27ca646_0 frozenlist pkgs/main/osx-arm64::frozenlist-1.3.3-py310h80987f9_0 fsspec conda-forge/noarch::fsspec-2023.3.0-pyhd8ed1ab_1 gdk-pixbuf pkgs/main/osx-arm64::gdk-pixbuf-2.42.10-h80987f9_0 gflags conda-forge/osx-arm64::gflags-2.2.2-hc88da5d_1004 glib pkgs/main/osx-arm64::glib-2.69.1-h514c7bf_2 glog conda-forge/osx-arm64::glog-0.6.0-h6da1cb0_0 graphite2 pkgs/main/osx-arm64::graphite2-1.3.14-hc377ac9_1 graphviz pkgs/main/osx-arm64::graphviz-2.50.0-he1da451_0 grpc-cpp pkgs/main/osx-arm64::grpc-cpp-1.46.1-h8e4afa7_1 gts pkgs/main/osx-arm64::gts-0.7.6-hde733a8_3 harfbuzz pkgs/main/osx-arm64::harfbuzz-4.3.0-he9eebac_1 huggingface_hub conda-forge/noarch::huggingface_hub-0.13.2-pyhd8ed1ab_0 importlib-metadata conda-forge/noarch::importlib-metadata-6.0.0-pyha770c72_0 kiwisolver pkgs/main/osx-arm64::kiwisolver-1.4.4-py310h313beb8_0 krb5 conda-forge/osx-arm64::krb5-1.19.3-hf9b2bbe_0 libbrotlicommon conda-forge/osx-arm64::libbrotlicommon-1.0.9-h1a8c8d9_8 libbrotlidec conda-forge/osx-arm64::libbrotlidec-1.0.9-h1a8c8d9_8 libbrotlienc conda-forge/osx-arm64::libbrotlienc-1.0.9-h1a8c8d9_8 libcurl pkgs/main/osx-arm64::libcurl-7.87.0-h0f1d93c_0 libedit conda-forge/osx-arm64::libedit-3.1.20191231-hc8eb9b7_2 libev conda-forge/osx-arm64::libev-4.33-h642e427_1 libevent conda-forge/osx-arm64::libevent-2.1.10-hbae9a57_4 libflac conda-forge/osx-arm64::libflac-1.3.4-h07bb92c_0 libgd pkgs/main/osx-arm64::libgd-2.3.3-h14f8a72_1 libnghttp2 pkgs/main/osx-arm64::libnghttp2-1.46.0-h95c9599_0 libogg conda-forge/osx-arm64::libogg-1.3.4-h27ca646_1 libprotobuf pkgs/main/osx-arm64::libprotobuf-3.20.3-h514c7bf_0 librsvg pkgs/main/osx-arm64::librsvg-2.54.4-h6a74ff0_0 libsndfile conda-forge/osx-arm64::libsndfile-1.0.31-h9f76cd9_1 libsodium conda-forge/osx-arm64::libsodium-1.0.18-h27ca646_1 libssh2 conda-forge/osx-arm64::libssh2-1.10.0-hb80f160_2 libthrift pkgs/main/osx-arm64::libthrift-0.13.0-hd358383_6 libtool conda-forge/osx-arm64::libtool-2.4.7-hb7217d7_0 libvorbis conda-forge/osx-arm64::libvorbis-1.3.7-h9f76cd9_0 matplotlib-base pkgs/main/osx-arm64::matplotlib-base-3.7.1-py310h46d7db6_0 multidict pkgs/main/osx-arm64::multidict-6.0.2-py310h1a28f6b_0 multiprocess pkgs/main/osx-arm64::multiprocess-0.70.14-py310hca03da5_0 munkres conda-forge/noarch::munkres-1.1.4-pyh9f0ad1d_0 numexpr pkgs/main/osx-arm64::numexpr-2.8.4-py310hecc3335_0 orc pkgs/main/osx-arm64::orc-1.7.4-hdca1487_1 packaging conda-forge/noarch::packaging-23.0-pyhd8ed1ab_0 pandas pkgs/main/osx-arm64::pandas-1.5.3-py310h46d7db6_0 pango pkgs/main/osx-arm64::pango-1.50.7-h7271ec9_0 paramiko conda-forge/noarch::paramiko-3.1.0-pyhd8ed1ab_0 pcre conda-forge/osx-arm64::pcre-8.45-hbdafb3b_0 pixman conda-forge/osx-arm64::pixman-0.40.0-h27ca646_0 platformdirs conda-forge/noarch::platformdirs-3.1.1-pyhd8ed1ab_0 pooch conda-forge/noarch::pooch-1.7.0-pyhd8ed1ab_0 pyarrow pkgs/main/osx-arm64::pyarrow-8.0.0-py310hf303d72_0 pynacl pkgs/main/osx-arm64::pynacl-1.5.0-py310h1a28f6b_0 pyparsing conda-forge/noarch::pyparsing-3.0.9-pyhd8ed1ab_0 pysoundfile conda-forge/noarch::pysoundfile-0.11.0-pyhd8ed1ab_0 python-dateutil conda-forge/noarch::python-dateutil-2.8.2-pyhd8ed1ab_0 python-graphviz conda-forge/noarch::python-graphviz-0.20.1-pyh22cad53_0 python-xxhash pkgs/main/osx-arm64::python-xxhash-2.0.2-py310h1a28f6b_1 pytz conda-forge/noarch::pytz-2022.7.1-pyhd8ed1ab_0 pyyaml pkgs/main/osx-arm64::pyyaml-6.0-py310h80987f9_1 re2 conda-forge/osx-arm64::re2-2022.04.01-h6b3803e_0 responses conda-forge/noarch::responses-0.18.0-pyhd8ed1ab_0 scipy pkgs/main/osx-arm64::scipy-1.10.0-py310h20cbe94_1 snappy conda-forge/osx-arm64::snappy-1.1.10-h17c5cce_0 typing-extensions pkgs/main/osx-arm64::typing-extensions-4.4.0-py310hca03da5_0 utf8proc pkgs/main/osx-arm64::utf8proc-2.6.1-h1a28f6b_0 xxhash conda-forge/osx-arm64::xxhash-0.8.0-h27ca646_3 yaml conda-forge/osx-arm64::yaml-0.2.5-h3422bc3_2 yarl pkgs/main/osx-arm64::yarl-1.8.1-py310h1a28f6b_0 zipp conda-forge/noarch::zipp-3.15.0-pyhd8ed1ab_0
The following packages will be UPDATED:
libopus pkgs/main::libopus-1.3-h1a28f6b_1 --> conda-forge::libopus-1.3.1-h27ca646_1
The following packages will be SUPERSEDED by a higher-priority channel:
ca-certificates pkgs/main::ca-certificates-2023.01.10~ --> conda-forge::ca-certificates-2022.12.7-h4653dfc_0 certifi pkgs/main/osx-arm64::certifi-2022.12.~ --> conda-forge/noarch::certifi-2022.12.7-pyhd8ed1ab_0 openssl pkgs/main::openssl-1.1.1t-h1a28f6b_0 --> conda-forge::openssl-1.1.1t-h03a7124_0
Downloading and Extracting Packages
Preparing transaction: ...working... done Verifying transaction: ...working... done Executing transaction: ...working... done
Installation complete.