问:
Cannot Install PIP in a conda enviroment created form a .txt file
I am using Windows subsystem for Linux v2.

We are working on a project and I am trying to create a conda enviroment from a enviroment.txt that a coworker made in her OS system and install all requirements.txt used in pip.

The problem is that I have a lot of conflicts with dependecies and I cannot even install the pip.

So far we've tried on the OSX system:

```<code>conda env export > environment.yml
</code>```

which theoretically has the conda and pip packages. It gives me the following output:

```<code>name: MLOps_Project
channels:
  - pytorch
  - conda-forge
  - defaults
dependencies:
  - absl-py=1.3.0=pyhd8ed1ab_0
  - aiohttp=3.8.3=py310h90acd4f_1
  - aiosignal=1.3.1=pyhd8ed1ab_0
  - async-timeout=4.0.2=pyhd8ed1ab_0
  - attrs=22.2.0=pyh71513ae_0
  - blas=1.0=mkl
  - blinker=1.5=pyhd8ed1ab_0
  - bottleneck=1.3.5=py310h4e76f89_0
  - brotli=1.0.9=hca72f7f_7
  - brotli-bin=1.0.9=hca72f7f_7
  - brotlipy=0.7.0=py310hca72f7f_1002
  - bzip2=1.0.8=h1de35cc_0
  - c-ares=1.18.1=h0d85af4_0
  - ca-certificates=2022.12.7=h033912b_0
  - certifi=2022.12.7=pyhd8ed1ab_0
  - cffi=1.15.1=py310h6c40b1e_3
  - charset-normalizer=2.0.4=pyhd3eb1b0_0
  - click=8.0.4=py310hecd8cb5_0
  - colorama=0.4.6=pyhd8ed1ab_0
  - contourpy=1.0.5=py310haf03e11_0
  - cryptography=38.0.1=py310hf6deb26_0
  - cycler=0.11.0=pyhd3eb1b0_0
  - ffmpeg=4.3=h0a44026_0
  - flit-core=3.6.0=pyhd3eb1b0_0
  - fonttools=4.25.0=pyhd3eb1b0_0
  - freetype=2.12.1=hd8bbffd_0
  - frozenlist=1.3.3=py310h90acd4f_0
  - fsspec=2022.11.0=pyhd8ed1ab_0
  - gettext=0.21.0=h7535e17_0
  - giflib=5.2.1=haf1e3a3_0
  - gmp=6.2.1=he9d5cce_3
  - gnutls=3.6.15=hed9c0bf_0
  - google-auth-oauthlib=0.4.6=pyhd8ed1ab_0
  - grpcio=1.42.0=py310ha29bfda_0
  - icu=58.2=h0a44026_3
  - idna=3.4=py310hecd8cb5_0
  - importlib-metadata=6.0.0=pyha770c72_0
  - intel-openmp=2021.4.0=hecd8cb5_3538
  - jpeg=9e=hca72f7f_0
  - kiwisolver=1.4.4=py310hcec6c5f_0
  - lame=3.100=h1de35cc_0
  - lcms2=2.12=hf1fd2bf_0
  - lerc=3.0=he9d5cce_0
  - libbrotlicommon=1.0.9=hca72f7f_7
  - libbrotlidec=1.0.9=hca72f7f_7
  - libbrotlienc=1.0.9=hca72f7f_7
  - libcxx=14.0.6=h9765a3e_0
  - libdeflate=1.8=h9ed2024_5
  - libffi=3.4.2=hecd8cb5_6
  - libiconv=1.16=hca72f7f_2
  - libidn2=2.3.2=h9ed2024_0
  - libpng=1.6.37=ha441bb4_0
  - libprotobuf=3.20.1=h8346a28_0
  - libtasn1=4.16.0=h9ed2024_0
  - libtiff=4.4.0=h2cd0358_2
  - libunistring=0.9.10=h9ed2024_0
  - libwebp=1.2.4=h56c3ce4_0
  - libwebp-base=1.2.4=hca72f7f_0
  - libxml2=2.9.14=hbf8cd5e_0
  - lightning-utilities=0.5.0=pyhd8ed1ab_0
  - llvm-openmp=14.0.6=h0dcd299_0
  - lz4-c=1.9.4=hcec6c5f_0
  - markdown=3.4.1=pyhd8ed1ab_0
  - markupsafe=2.1.1=py310h90acd4f_2
  - matplotlib=3.6.2=py310hecd8cb5_0
  - matplotlib-base=3.6.2=py310h220de94_0
  - mkl=2021.4.0=hecd8cb5_637
  - mkl-service=2.4.0=py310hca72f7f_0
  - mkl_fft=1.3.1=py310hf879493_0
  - mkl_random=1.2.2=py310hc081a56_0
  - multidict=6.0.4=py310h90acd4f_0
  - munkres=1.1.4=py_0
  - ncurses=6.3=hca72f7f_3
  - nettle=3.7.3=h230ac6f_1
  - numexpr=2.8.4=py310h9638375_0
  - numpy=1.23.5=py310h9638375_0
  - numpy-base=1.23.5=py310ha98c3c9_0
  - oauthlib=3.2.2=pyhd8ed1ab_0
  - openh264=2.1.1=h8346a28_0
  - openssl=1.1.1s=hfd90126_1
  - packaging=22.0=py310hecd8cb5_0
  - pandas=1.5.2=py310h3ea8b11_0
  - pillow=9.3.0=py310h81888ad_1
  - pip=22.3.1=py310hecd8cb5_0
  - pyasn1=0.4.8=py_0
  - pycparser=2.21=pyhd3eb1b0_0
  - pyjwt=2.6.0=pyhd8ed1ab_0
  - pyopenssl=22.0.0=pyhd3eb1b0_0
  - pyparsing=3.0.9=py310hecd8cb5_0
  - pysocks=1.7.1=py310hecd8cb5_0
  - python=3.10.8=h218abb5_1
  - python-dateutil=2.8.2=pyhd3eb1b0_0
  - python-dotenv=0.21.0=py310hecd8cb5_0
  - python_abi=3.10=2_cp310
  - pytorch=1.13.1=py3.10_0
  - pytorch-lightning=1.8.1=pyhd8ed1ab_0
  - pytz=2022.7=py310hecd8cb5_0
  - pyu2f=0.1.5=pyhd8ed1ab_0
  - pyyaml=6.0=py310h90acd4f_5
  - readline=8.2=hca72f7f_0
  - regex=2022.7.9=py310hca72f7f_0
  - requests=2.28.1=py310hecd8cb5_0
  - requests-oauthlib=1.3.1=pyhd8ed1ab_0
  - rsa=4.9=pyhd8ed1ab_0
  - setuptools=65.5.0=py310hecd8cb5_0
  - six=1.16.0=pyhd3eb1b0_1
  - sqlite=3.40.0=h880c91c_0
  - tensorboard=2.11.0=pyhd8ed1ab_0
  - tensorboard-data-server=0.6.1=py310h23bb4e6_4
  - tensorboard-plugin-wit=1.8.1=pyhd8ed1ab_0
  - tk=8.6.12=h5d9f67b_0
  - torchaudio=0.13.1=py310_cpu
  - torchmetrics=0.11.0=pyhd8ed1ab_0
  - torchvision=0.14.1=py310_cpu
  - tornado=6.2=py310hca72f7f_0
  - tqdm=4.64.1=pyhd8ed1ab_0
  - typing-extensions=4.4.0=py310hecd8cb5_0
  - typing_extensions=4.4.0=py310hecd8cb5_0
  - tzdata=2022g=h04d1e81_0
  - urllib3=1.26.13=py310hecd8cb5_0
  - werkzeug=2.2.2=pyhd8ed1ab_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.2.8=h6c40b1e_0
  - yaml=0.2.5=h0d85af4_2
  - yarl=1.8.2=py310h90acd4f_0
  - zipp=3.11.0=pyhd8ed1ab_0
  - zlib=1.2.13=h4dc903c_0
  - zstd=1.5.2=hcb37349_0
  - pip:
    - aiohttp-retry==2.8.3
    - amqp==5.1.1
    - antlr4-python3-runtime==4.9.3
    - anyio==3.6.2
    - appdirs==1.4.4
    - arrow==1.2.3
    - asyncssh==2.13.0
    - atpublic==3.1.1
    - beautifulsoup4==4.11.1
    - billiard==3.6.4.0
    - blessed==1.19.1
    - cachetools==5.2.1
    - celery==5.2.7
    - click-didyoumean==0.3.0
    - click-plugins==1.1.1
    - click-repl==0.2.0
    - commonmark==0.9.1
    - configobj==5.0.6
    - croniter==1.3.8
    - deepdiff==6.2.3
    - dictdiffer==0.9.0
    - diskcache==5.4.0
    - distro==1.8.0
    - dnspython==2.2.1
    - dpath==2.1.4
    - dulwich==0.20.50
    - dvc==2.41.1
    - dvc-data==0.29.0
    - dvc-gdrive==2.19.1
    - dvc-http==2.30.0
    - dvc-objects==0.14.1
    - dvc-render==0.0.17
    - dvc-studio-client==0.3.0
    - dvc-task==0.1.9
    - dvclive==1.3.2
    - email-validator==1.3.0
    - fastapi==0.89.1
    - filelock==3.9.0
    - flatten-dict==0.4.2
    - flufl-lock==7.1.1
    - funcy==1.17
    - future==0.18.2
    - gitdb==4.0.10
    - gitpython==3.1.30
    - google-api-core==2.11.0
    - google-api-python-client==2.72.0
    - google-auth==2.16.0
    - google-auth-httplib2==0.1.0
    - googleapis-common-protos==1.58.0
    - grandalf==0.6
    - h11==0.14.0
    - httpcore==0.16.3
    - httplib2==0.21.0
    - httptools==0.5.0
    - httpx==0.23.3
    - hydra-core==1.3.1
    - inquirer==3.1.2
    - iterative-telemetry==0.0.6
    - itsdangerous==2.1.2
    - jinja2==3.1.2
    - kaggle==1.5.12
    - kombu==5.2.4
    - lightning==1.8.6
    - lightning-cloud==0.5.16
    - nanotime==0.5.2
    - networkx==3.0
    - oauth2client==4.1.3
    - omegaconf==2.3.0
    - ordered-set==4.1.0
    - orjson==3.8.5
    - pathspec==0.9.0
    - prompt-toolkit==3.0.36
    - protobuf==3.20.1
    - psutil==5.9.4
    - pyasn1-modules==0.2.8
    - pydantic==1.10.4
    - pydot==1.4.2
    - pydrive2==1.15.0
    - pygit2==1.11.1
    - pygments==2.14.0
    - pygtrie==2.5.0
    - python-editor==1.0.4
    - python-multipart==0.0.5
    - python-slugify==7.0.0
    - readchar==4.0.3
    - rfc3986==1.5.0
    - rich==13.0.1
    - ruamel-yaml==0.17.21
    - ruamel-yaml-clib==0.2.7
    - scmrepo==0.1.5
    - shortuuid==1.0.11
    - shtab==1.5.8
    - smmap==5.0.0
    - sniffio==1.3.0
    - soupsieve==2.3.2.post1
    - starlette==0.22.0
    - starsessions==1.3.0
    - tabulate==0.9.0
    - tensorboardx==2.5.1
    - text-unidecode==1.3
    - tomlkit==0.11.6
    - traitlets==5.8.1
    - ujson==5.7.0
    - uritemplate==4.1.1
    - uvicorn==0.20.0
    - uvloop==0.17.0
    - vine==5.0.0
    - voluptuous==0.13.1
    - watchfiles==0.18.1
    - wcwidth==0.2.5
    - websocket-client==1.4.2
    - websockets==10.4
    - zc-lockfile==2.0
prefix: /opt/anaconda3/envs/MLOps_Project
</code>```

But when I create the enviroment using:

```<code>conda env create -f environment.yml
</code>```

It gives me the following error:

```<code>Solving environment: failed

ResolvePackageNotFound:
  - idna==3.4=py310hecd8cb5_0
  - zlib==1.2.13=h4dc903c_0
  - brotlipy==0.7.0=py310hca72f7f_1002
  - libwebp==1.2.4=h56c3ce4_0
  - python-dotenv==0.21.0=py310hecd8cb5_0
  - kiwisolver==1.4.4=py310hcec6c5f_0
  - tk==8.6.12=h5d9f67b_0
  - requests==2.28.1=py310hecd8cb5_0
  - lz4-c==1.9.4=hcec6c5f_0
  - mkl_random==1.2.2=py310hc081a56_0
  - yaml==0.2.5=h0d85af4_2
  - mkl-service==2.4.0=py310hca72f7f_0
  - gnutls==3.6.15=hed9c0bf_0
  - frozenlist==1.3.3=py310h90acd4f_0
  - brotli-bin==1.0.9=hca72f7f_7
  - c-ares==1.18.1=h0d85af4_0
  - python==3.10.8=h218abb5_1
  - libdeflate==1.8=h9ed2024_5
  - packaging==22.0=py310hecd8cb5_0
  - typing_extensions==4.4.0=py310hecd8cb5_0
  - libxml2==2.9.14=hbf8cd5e_0
  - click==8.0.4=py310hecd8cb5_0
  - brotli==1.0.9=hca72f7f_7
  - pillow==9.3.0=py310h81888ad_1
  - matplotlib==3.6.2=py310hecd8cb5_0
  - giflib==5.2.1=haf1e3a3_0
  - sqlite==3.40.0=h880c91c_0
  - freetype==2.12.1=hd8bbffd_0
  - ffmpeg==4.3=h0a44026_0
  - libbrotlienc==1.0.9=hca72f7f_7
  - libidn2==2.3.2=h9ed2024_0
  - readline==8.2=hca72f7f_0
  - nettle==3.7.3=h230ac6f_1
  - urllib3==1.26.13=py310hecd8cb5_0
  - openh264==2.1.1=h8346a28_0
  - bzip2==1.0.8=h1de35cc_0
  - libcxx==14.0.6=h9765a3e_0
  - cryptography==38.0.1=py310hf6deb26_0
  - setuptools==65.5.0=py310hecd8cb5_0
  - xz==5.2.8=h6c40b1e_0
  - icu==58.2=h0a44026_3
  - ca-certificates==2022.12.7=h033912b_0
  - libunistring==0.9.10=h9ed2024_0
  - cffi==1.15.1=py310h6c40b1e_3
  - intel-openmp==2021.4.0=hecd8cb5_3538
  - regex==2022.7.9=py310hca72f7f_0
  - libpng==1.6.37=ha441bb4_0
  - contourpy==1.0.5=py310haf03e11_0
  - markupsafe==2.1.1=py310h90acd4f_2
  - lerc==3.0=he9d5cce_0
  - libbrotlicommon==1.0.9=hca72f7f_7
  - libtasn1==4.16.0=h9ed2024_0
  - llvm-openmp==14.0.6=h0dcd299_0
  - bottleneck==1.3.5=py310h4e76f89_0
  - yarl==1.8.2=py310h90acd4f_0
  - openssl==1.1.1s=hfd90126_1
  - libprotobuf==3.20.1=h8346a28_0
  - matplotlib-base==3.6.2=py310h220de94_0
  - numexpr==2.8.4=py310h9638375_0
  - numpy==1.23.5=py310h9638375_0
  - typing-extensions==4.4.0=py310hecd8cb5_0
  - pandas==1.5.2=py310h3ea8b11_0
  - multidict==6.0.4=py310h90acd4f_0
  - tornado==6.2=py310hca72f7f_0
  - grpcio==1.42.0=py310ha29bfda_0
  - lame==3.100=h1de35cc_0
  - gettext==0.21.0=h7535e17_0
  - libbrotlidec==1.0.9=hca72f7f_7
  - libffi==3.4.2=hecd8cb5_6
  - aiohttp==3.8.3=py310h90acd4f_1
  - libtiff==4.4.0=h2cd0358_2
  - jpeg==9e=hca72f7f_0
  - pip==22.3.1=py310hecd8cb5_0
  - pytorch==1.13.1=py3.10_0
  - pytz==2022.7=py310hecd8cb5_0
  - libwebp-base==1.2.4=hca72f7f_0
  - lcms2==2.12=hf1fd2bf_0
  - gmp==6.2.1=he9d5cce_3
  - pyparsing==3.0.9=py310hecd8cb5_0
  - pyyaml==6.0=py310h90acd4f_5
  - mkl_fft==1.3.1=py310hf879493_0
  - numpy-base==1.23.5=py310ha98c3c9_0
  - tensorboard-data-server==0.6.1=py310h23bb4e6_4
  - mkl==2021.4.0=hecd8cb5_637
  - zstd==1.5.2=hcb37349_0
  - libiconv==1.16=hca72f7f_2
  - pysocks==1.7.1=py310hecd8cb5_0
  - ncurses==6.3=hca72f7f_3
</code>```

Then we've tried on the OSX system:

```<code>conda list --export > conda-requirements.txt
</code>```

Which gives the following output:

```<code># This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: osx-64
aiohttp=3.8.3=pypi_0
aiohttp-retry=2.8.3=pypi_0
aiosignal=1.3.1=pypi_0
amqp=5.1.1=pypi_0
antlr4-python3-runtime=4.9.3=pypi_0
appdirs=1.4.4=pypi_0
async-timeout=4.0.2=pypi_0
asyncssh=2.13.0=pypi_0
atpublic=3.1.1=pypi_0
attrs=22.2.0=pypi_0
billiard=3.6.4.0=pypi_0
blas=1.0=mkl
bottleneck=1.3.5=py310h4e76f89_0
brotli=1.0.9=hca72f7f_7
brotli-bin=1.0.9=hca72f7f_7
brotlipy=0.7.0=py310hca72f7f_1002
bzip2=1.0.8=h1de35cc_0
ca-certificates=2022.10.11=hecd8cb5_0
cachetools=5.2.1=pypi_0
celery=5.2.7=pypi_0
certifi=2022.12.7=py310hecd8cb5_0
cffi=1.15.1=py310h6c40b1e_3
charset-normalizer=2.0.4=pyhd3eb1b0_0
click=8.0.4=py310hecd8cb5_0
click-didyoumean=0.3.0=pypi_0
click-plugins=1.1.1=pypi_0
click-repl=0.2.0=pypi_0
colorama=0.4.6=pypi_0
commonmark=0.9.1=pypi_0
configobj=5.0.6=pypi_0
contourpy=1.0.5=py310haf03e11_0
cryptography=38.0.1=py310hf6deb26_0
cycler=0.11.0=pyhd3eb1b0_0
dictdiffer=0.9.0=pypi_0
diskcache=5.4.0=pypi_0
distro=1.8.0=pypi_0
dpath=2.1.4=pypi_0
dulwich=0.20.50=pypi_0
dvc=2.41.1=pypi_0
dvc-data=0.29.0=pypi_0
dvc-gdrive=2.19.1=pypi_0
dvc-http=2.30.0=pypi_0
dvc-objects=0.14.1=pypi_0
dvc-render=0.0.17=pypi_0
dvc-studio-client=0.3.0=pypi_0
dvc-task=0.1.9=pypi_0
dvclive=1.3.2=pypi_0
ffmpeg=4.3=h0a44026_0
filelock=3.9.0=pypi_0
flatten-dict=0.4.2=pypi_0
flit-core=3.6.0=pyhd3eb1b0_0
flufl-lock=7.1.1=pypi_0
fonttools=4.25.0=pyhd3eb1b0_0
freetype=2.12.1=hd8bbffd_0
frozenlist=1.3.3=pypi_0
fsspec=2022.11.0=pypi_0
funcy=1.17=pypi_0
future=0.18.2=pypi_0
gettext=0.21.0=h7535e17_0
giflib=5.2.1=haf1e3a3_0
gitdb=4.0.10=pypi_0
gitpython=3.1.30=pypi_0
gmp=6.2.1=he9d5cce_3
gnutls=3.6.15=hed9c0bf_0
google-api-core=2.11.0=pypi_0
google-api-python-client=2.72.0=pypi_0
google-auth=2.16.0=pypi_0
google-auth-httplib2=0.1.0=pypi_0
googleapis-common-protos=1.58.0=pypi_0
grandalf=0.6=pypi_0
httplib2=0.21.0=pypi_0
hydra-core=1.3.1=pypi_0
icu=58.2=h0a44026_3
idna=3.4=py310hecd8cb5_0
intel-openmp=2021.4.0=hecd8cb5_3538
iterative-telemetry=0.0.6=pypi_0
jpeg=9e=hca72f7f_0
kaggle=1.5.12=pypi_0
kiwisolver=1.4.4=py310hcec6c5f_0
kombu=5.2.4=pypi_0
lame=3.100=h1de35cc_0
lcms2=2.12=hf1fd2bf_0
lerc=3.0=he9d5cce_0
libbrotlicommon=1.0.9=hca72f7f_7
libbrotlidec=1.0.9=hca72f7f_7
libbrotlienc=1.0.9=hca72f7f_7
libcxx=14.0.6=h9765a3e_0
libdeflate=1.8=h9ed2024_5
libffi=3.4.2=hecd8cb5_6
libiconv=1.16=hca72f7f_2
libidn2=2.3.2=h9ed2024_0
libpng=1.6.37=ha441bb4_0
libtasn1=4.16.0=h9ed2024_0
libtiff=4.4.0=h2cd0358_2
libunistring=0.9.10=h9ed2024_0
libwebp=1.2.4=h56c3ce4_0
libwebp-base=1.2.4=hca72f7f_0
libxml2=2.9.14=hbf8cd5e_0
llvm-openmp=14.0.6=h0dcd299_0
lz4-c=1.9.4=hcec6c5f_0
matplotlib=3.6.2=py310hecd8cb5_0
matplotlib-base=3.6.2=py310h220de94_0
mkl=2021.4.0=hecd8cb5_637
mkl-service=2.4.0=py310hca72f7f_0
mkl_fft=1.3.1=py310hf879493_0
mkl_random=1.2.2=py310hc081a56_0
multidict=6.0.4=pypi_0
munkres=1.1.4=py_0
nanotime=0.5.2=pypi_0
ncurses=6.3=hca72f7f_3
nettle=3.7.3=h230ac6f_1
networkx=3.0=pypi_0
numexpr=2.8.4=py310h9638375_0
numpy=1.23.5=py310h9638375_0
numpy-base=1.23.5=py310ha98c3c9_0
oauth2client=4.1.3=pypi_0
omegaconf=2.3.0=pypi_0
openh264=2.1.1=h8346a28_0
openssl=1.1.1s=hca72f7f_0
packaging=22.0=py310hecd8cb5_0
pandas=1.5.2=py310h3ea8b11_0
pathspec=0.9.0=pypi_0
pillow=9.3.0=py310h81888ad_1
pip=22.3.1=py310hecd8cb5_0
prompt-toolkit=3.0.36=pypi_0
protobuf=4.21.12=pypi_0
psutil=5.9.4=pypi_0
pyasn1=0.4.8=pypi_0
pyasn1-modules=0.2.8=pypi_0
pycparser=2.21=pyhd3eb1b0_0
pydot=1.4.2=pypi_0
pydrive2=1.15.0=pypi_0
pygit2=1.11.1=pypi_0
pygments=2.14.0=pypi_0
pygtrie=2.5.0=pypi_0
pyopenssl=22.0.0=pyhd3eb1b0_0
pyparsing=3.0.9=py310hecd8cb5_0
pysocks=1.7.1=py310hecd8cb5_0
python=3.10.8=h218abb5_1
python-dateutil=2.8.2=pyhd3eb1b0_0
python-dotenv=0.21.0=py310hecd8cb5_0
python-slugify=7.0.0=pypi_0
pytorch=1.13.1=py3.10_0
pytz=2022.7=py310hecd8cb5_0
pyyaml=6.0=pypi_0
readline=8.2=hca72f7f_0
regex=2022.7.9=py310hca72f7f_0
requests=2.28.1=py310hecd8cb5_0
rich=13.0.1=pypi_0
rsa=4.9=pypi_0
ruamel-yaml=0.17.21=pypi_0
ruamel-yaml-clib=0.2.7=pypi_0
scmrepo=0.1.5=pypi_0
setuptools=65.5.0=py310hecd8cb5_0
shortuuid=1.0.11=pypi_0
shtab=1.5.8=pypi_0
six=1.16.0=pyhd3eb1b0_1
smmap=5.0.0=pypi_0
sqlite=3.40.0=h880c91c_0
tabulate=0.9.0=pypi_0
text-unidecode=1.3=pypi_0
tk=8.6.12=h5d9f67b_0
tomlkit=0.11.6=pypi_0
torchaudio=0.13.1=py310_cpu
torchvision=0.14.1=py310_cpu
tornado=6.2=py310hca72f7f_0
tqdm=4.64.1=pypi_0
typing_extensions=4.4.0=py310hecd8cb5_0
tzdata=2022g=h04d1e81_0
uritemplate=4.1.1=pypi_0
urllib3=1.26.13=py310hecd8cb5_0
vine=5.0.0=pypi_0
voluptuous=0.13.1=pypi_0
wcwidth=0.2.5=pypi_0
wheel=0.37.1=pyhd3eb1b0_0
xz=5.2.8=h6c40b1e_0
yarl=1.8.2=pypi_0
zc-lockfile=2.0=pypi_0
zlib=1.2.13=h4dc903c_0
zstd=1.5.2=hcb37349_0
</code>```

Then to get the packages from pip:

```<code> pip freeze > requirements.txt
</code>```

Which gives the following output:

```<code>aiohttp==3.8.3
aiohttp-retry==2.8.3
aiosignal==1.3.1
amqp==5.1.1
antlr4-python3-runtime==4.9.3
appdirs==1.4.4
async-timeout==4.0.2
asyncssh==2.13.0
atpublic==3.1.1
attrs==22.2.0
billiard==3.6.4.0
Bottleneck @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_29949159-f86f-474b-bc1f-aaa1e0e222b4ofusifik/croots/recipe/bottleneck_1657175564045/work
brotlipy==0.7.0
cachetools==5.2.1
celery==5.2.7
certifi @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_477u68wvzm/croot/certifi_1671487773341/work/certifi
cffi @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_1b0qzba5nr/croot/cffi_1670423213150/work
charset-normalizer @ file:///tmp/build/80754af9/charset-normalizer_1630003229654/work
click @ file:///opt/concourse/worker/volumes/live/2d66025a-4d79-47c4-43be-6220928b6c82/volume/click_1646056610594/work
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
colorama==0.4.6
commonmark==0.9.1
configobj==5.0.6
contourpy @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_17gskqgptz/croots/recipe/contourpy_1663827415320/work
cryptography @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_3evwafgyg8/croot/cryptography_1665612651044/work
cycler @ file:///tmp/build/80754af9/cycler_1637851556182/work
dictdiffer==0.9.0
diskcache==5.4.0
distro==1.8.0
dpath==2.1.4
dulwich==0.20.50
dvc==2.41.1
dvc-data==0.29.0
dvc-gdrive==2.19.1
dvc-http==2.30.0
dvc-objects==0.14.1
dvc-render==0.0.17
dvc-studio-client==0.3.0
dvc-task==0.1.9
dvclive==1.3.2
filelock==3.9.0
flatten-dict==0.4.2
flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core
flufl.lock==7.1.1
fonttools==4.25.0
frozenlist==1.3.3
fsspec==2022.11.0
funcy==1.17
future==0.18.2
gitdb==4.0.10
GitPython==3.1.30
google-api-core==2.11.0
google-api-python-client==2.72.0
google-auth==2.16.0
google-auth-httplib2==0.1.0
googleapis-common-protos==1.58.0
grandalf==0.6
httplib2==0.21.0
hydra-core==1.3.1
idna @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_00jf0h4zbt/croot/idna_1666125573348/work
iterative-telemetry==0.0.6
kaggle==1.5.12
kiwisolver @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_e26jwrjf6j/croot/kiwisolver_1672387151391/work
kombu==5.2.4
matplotlib @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_35aw7vfp_z/croot/matplotlib-suite_1670466139477/work
mkl-fft==1.3.1
mkl-random @ file:///opt/concourse/worker/volumes/live/a9eca864-069c-4240-73c8-4e51b036a10d/volume/mkl_random_1639994047876/work
mkl-service==2.4.0
multidict==6.0.4
munkres==1.1.4
nanotime==0.5.2
networkx==3.0
numexpr @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_cef3ah6r8w/croot/numexpr_1668713880672/work
numpy @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_8cgikbzvtd/croot/numpy_and_numpy_base_1672336184666/work
oauth2client==4.1.3
omegaconf==2.3.0
packaging @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_bet5qdixgt/croot/packaging_1671697440883/work
pandas==1.5.2
pathspec==0.9.0
Pillow==9.3.0
prompt-toolkit==3.0.36
protobuf==4.21.12
psutil==5.9.4
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser @ file:///tmp/build/80754af9/pycparser_1636541352034/work
pydot==1.4.2
PyDrive2==1.15.0
pygit2==1.11.1
Pygments==2.14.0
pygtrie==2.5.0
pyOpenSSL @ file:///opt/conda/conda-bld/pyopenssl_1643788558760/work
pyparsing @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_3a17y2delq/croots/recipe/pyparsing_1661452538853/work
PySocks @ file:///Users/builder/ci_310/pysocks_1642536366386/work
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
python-dotenv @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_ebulf7sz20/croot/python-dotenv_1669132564141/work
python-slugify==7.0.0
pytz @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_ddzpsmm2_f/croot/pytz_1671697430473/work
PyYAML==6.0
regex @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_978efa21-43f5-4f43-9f25-acd8393817ddce2xcjaf/croots/recipe/regex_1658257186496/work
requests @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_516b78ce-034d-4395-b9b5-1d78c2847384qtnol99l/croots/recipe/requests_1657734628886/work
rich==13.0.1
rsa==4.9
ruamel.yaml==0.17.21
ruamel.yaml.clib==0.2.7
scmrepo==0.1.5
shortuuid==1.0.11
shtab==1.5.8
six @ file:///tmp/build/80754af9/six_1644875935023/work
smmap==5.0.0
tabulate==0.9.0
text-unidecode==1.3
tomlkit==0.11.6
torch==1.13.1
torchaudio==0.13.1
torchvision==0.14.1
tornado @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_1fimz6o0gc/croots/recipe/tornado_1662061695695/work
tqdm==4.64.1
typing_extensions @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_4b7xacf029/croot/typing_extensions_1669923792404/work
uritemplate==4.1.1
urllib3 @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_ffvqcdv424/croot/urllib3_1670526991804/work
vine==5.0.0
voluptuous==0.13.1
wcwidth==0.2.5
yarl==1.8.2
zc.lockfile==2.0
</code>```

With this two requirements files I've tried to create the enviroment with conda, which creates the env successfully. But when I try to intall pip in the enviroment, it gives me the following error: (I will only copy part of the output as it gives me conflicts with each package)

```<code>Package futures conflicts for:
conda-forge/noarch::tensorboard==2.11.0=pyhd8ed1ab_0 -> grpcio[version='>=1.24.3'] -> futures[version='>=2.2.0']
defaults/osx-64::matplotlib==3.6.2=py310hecd8cb5_0 -> tornado[version='>=5'] -> futures

Package libbrotlienc conflicts for:
defaults/osx-64::brotli-bin==1.0.9=hca72f7f_7 -> libbrotlienc==1.0.9=hca72f7f_7
defaults/osx-64::brotli==1.0.9=hca72f7f_7 -> libbrotlienc==1.0.9=hca72f7f_7
defaults/noarch::fonttools==4.25.0=pyhd3eb1b0_0 -> brotli[version='>=1.0.1'] -> libbrotlienc==1.0.9[build='hca72f7f_7|h5eee18b_7']

Package llvm-openmp conflicts for:
defaults/osx-64::gettext==0.21.0=h7535e17_0 -> llvm-openmp[version='>=10.0.0']
defaults/osx-64::gnutls==3.6.15=hed9c0bf_0 -> gettext[version='>=0.19.8.1'] -> llvm-openmp[version='>=10.0.0']

Package tensorboard-plugin-wit conflicts for:
conda-forge/noarch::pytorch-lightning==1.8.1=pyhd8ed1ab_0 -> tensorboard[version='>=2.9.1'] -> tensorboard-plugin-wit[version='>=1.6.0']
conda-forge/noarch::tensorboard==2.11.0=pyhd8ed1ab_0 -> tensorboard-plugin-wit[version='>=1.6.0']

Package fonttools conflicts for:
defaults/osx-64::matplotlib==3.6.2=py310hecd8cb5_0 -> matplotlib-base[version='>=3.6.2,<3.6.3.0a0'] -> fonttools[version='>=4.22.0']
defaults/osx-64::matplotlib-base==3.6.2=py310h220de94_0 -> fonttools[version='>=4.22.0']

Package kiwisolver conflicts for:
defaults/osx-64::matplotlib==3.6.2=py310hecd8cb5_0 -> matplotlib-base[version='>=3.6.2,<3.6.3.0a0'] -> kiwisolver[version='>=1.0.1']
defaults/osx-64::matplotlib-base==3.6.2=py310h220de94_0 -> kiwisolver[version='>=1.0.1']

Package aiohttp conflicts for:
conda-forge/noarch::google-auth-oauthlib==0.4.6=pyhd8ed1ab_0 -> google-auth[version='>=1.0.0'] -> aiohttp[version='>=3.6.2,<4.0.0dev']
conda-forge/noarch::google-auth==2.15.0=pyh1a96a4e_0 -> aiohttp[version='>=3.6.2,<4.0.0dev']
conda-forge/noarch::tensorboard==2.11.0=pyhd8ed1ab_0 -> google-auth[version='>=1.6.3,<3'] -> aiohttp[version='>=3.6.2,<4.0.0dev']The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.35=0
  - feature:|@/linux-64::__glibc==2.35=0
  - conda-forge/noarch::tensorboard==2.11.0=pyhd8ed1ab_0 -> grpcio[version='>=1.24.3'] -> __osx[version='>=10.10']
  - defaults/osx-64::grpcio==1.42.0=py310ha29bfda_0 -> __osx[version='>=10.10']
  - defaults/osx-64::matplotlib-base==3.6.2=py310h220de94_0 -> __osx[version='>=10.11']
  - defaults/osx-64::matplotlib==3.6.2=py310hecd8cb5_0 -> matplotlib-base[version='>=3.6.2,<3.6.3.0a0'] -> __osx[version='>=10.11']
  - openssl -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.35
</code>```

I have no clue how to fix the problem.

If you can give a hand I'll apreciate it. If you need any extra specs, please let me know.

Thanks

Body:
I am using Windows subsystem for Linux v2.

We are working on a project and I am trying to create a conda enviroment from a enviroment.txt that a coworker made in her OS system and install all requirements.txt used in pip.

The problem is that I have a lot of conflicts with dependecies and I cannot even install the pip.

So far we've tried on the OSX system:

conda env export > environment.yml

which theoretically has the conda and pip packages. It gives me the following output:

name: MLOps_Project
channels:
  - pytorch
  - conda-forge
  - defaults
dependencies:
  - absl-py=1.3.0=pyhd8ed1ab_0
  - aiohttp=3.8.3=py310h90acd4f_1
  - aiosignal=1.3.1=pyhd8ed1ab_0
  - async-timeout=4.0.2=pyhd8ed1ab_0
  - attrs=22.2.0=pyh71513ae_0
  - blas=1.0=mkl
  - blinker=1.5=pyhd8ed1ab_0
  - bottleneck=1.3.5=py310h4e76f89_0
  - brotli=1.0.9=hca72f7f_7
  - brotli-bin=1.0.9=hca72f7f_7
  - brotlipy=0.7.0=py310hca72f7f_1002
  - bzip2=1.0.8=h1de35cc_0
  - c-ares=1.18.1=h0d85af4_0
  - ca-certificates=2022.12.7=h033912b_0
  - certifi=2022.12.7=pyhd8ed1ab_0
  - cffi=1.15.1=py310h6c40b1e_3
  - charset-normalizer=2.0.4=pyhd3eb1b0_0
  - click=8.0.4=py310hecd8cb5_0
  - colorama=0.4.6=pyhd8ed1ab_0
  - contourpy=1.0.5=py310haf03e11_0
  - cryptography=38.0.1=py310hf6deb26_0
  - cycler=0.11.0=pyhd3eb1b0_0
  - ffmpeg=4.3=h0a44026_0
  - flit-core=3.6.0=pyhd3eb1b0_0
  - fonttools=4.25.0=pyhd3eb1b0_0
  - freetype=2.12.1=hd8bbffd_0
  - frozenlist=1.3.3=py310h90acd4f_0
  - fsspec=2022.11.0=pyhd8ed1ab_0
  - gettext=0.21.0=h7535e17_0
  - giflib=5.2.1=haf1e3a3_0
  - gmp=6.2.1=he9d5cce_3
  - gnutls=3.6.15=hed9c0bf_0
  - google-auth-oauthlib=0.4.6=pyhd8ed1ab_0
  - grpcio=1.42.0=py310ha29bfda_0
  - icu=58.2=h0a44026_3
  - idna=3.4=py310hecd8cb5_0
  - importlib-metadata=6.0.0=pyha770c72_0
  - intel-openmp=2021.4.0=hecd8cb5_3538
  - jpeg=9e=hca72f7f_0
  - kiwisolver=1.4.4=py310hcec6c5f_0
  - lame=3.100=h1de35cc_0
  - lcms2=2.12=hf1fd2bf_0
  - lerc=3.0=he9d5cce_0
  - libbrotlicommon=1.0.9=hca72f7f_7
  - libbrotlidec=1.0.9=hca72f7f_7
  - libbrotlienc=1.0.9=hca72f7f_7
  - libcxx=14.0.6=h9765a3e_0
  - libdeflate=1.8=h9ed2024_5
  - libffi=3.4.2=hecd8cb5_6
  - libiconv=1.16=hca72f7f_2
  - libidn2=2.3.2=h9ed2024_0
  - libpng=1.6.37=ha441bb4_0
  - libprotobuf=3.20.1=h8346a28_0
  - libtasn1=4.16.0=h9ed2024_0
  - libtiff=4.4.0=h2cd0358_2
  - libunistring=0.9.10=h9ed2024_0
  - libwebp=1.2.4=h56c3ce4_0
  - libwebp-base=1.2.4=hca72f7f_0
  - libxml2=2.9.14=hbf8cd5e_0
  - lightning-utilities=0.5.0=pyhd8ed1ab_0
  - llvm-openmp=14.0.6=h0dcd299_0
  - lz4-c=1.9.4=hcec6c5f_0
  - markdown=3.4.1=pyhd8ed1ab_0
  - markupsafe=2.1.1=py310h90acd4f_2
  - matplotlib=3.6.2=py310hecd8cb5_0
  - matplotlib-base=3.6.2=py310h220de94_0
  - mkl=2021.4.0=hecd8cb5_637
  - mkl-service=2.4.0=py310hca72f7f_0
  - mkl_fft=1.3.1=py310hf879493_0
  - mkl_random=1.2.2=py310hc081a56_0
  - multidict=6.0.4=py310h90acd4f_0
  - munkres=1.1.4=py_0
  - ncurses=6.3=hca72f7f_3
  - nettle=3.7.3=h230ac6f_1
  - numexpr=2.8.4=py310h9638375_0
  - numpy=1.23.5=py310h9638375_0
  - numpy-base=1.23.5=py310ha98c3c9_0
  - oauthlib=3.2.2=pyhd8ed1ab_0
  - openh264=2.1.1=h8346a28_0
  - openssl=1.1.1s=hfd90126_1
  - packaging=22.0=py310hecd8cb5_0
  - pandas=1.5.2=py310h3ea8b11_0
  - pillow=9.3.0=py310h81888ad_1
  - pip=22.3.1=py310hecd8cb5_0
  - pyasn1=0.4.8=py_0
  - pycparser=2.21=pyhd3eb1b0_0
  - pyjwt=2.6.0=pyhd8ed1ab_0
  - pyopenssl=22.0.0=pyhd3eb1b0_0
  - pyparsing=3.0.9=py310hecd8cb5_0
  - pysocks=1.7.1=py310hecd8cb5_0
  - python=3.10.8=h218abb5_1
  - python-dateutil=2.8.2=pyhd3eb1b0_0
  - python-dotenv=0.21.0=py310hecd8cb5_0
  - python_abi=3.10=2_cp310
  - pytorch=1.13.1=py3.10_0
  - pytorch-lightning=1.8.1=pyhd8ed1ab_0
  - pytz=2022.7=py310hecd8cb5_0
  - pyu2f=0.1.5=pyhd8ed1ab_0
  - pyyaml=6.0=py310h90acd4f_5
  - readline=8.2=hca72f7f_0
  - regex=2022.7.9=py310hca72f7f_0
  - requests=2.28.1=py310hecd8cb5_0
  - requests-oauthlib=1.3.1=pyhd8ed1ab_0
  - rsa=4.9=pyhd8ed1ab_0
  - setuptools=65.5.0=py310hecd8cb5_0
  - six=1.16.0=pyhd3eb1b0_1
  - sqlite=3.40.0=h880c91c_0
  - tensorboard=2.11.0=pyhd8ed1ab_0
  - tensorboard-data-server=0.6.1=py310h23bb4e6_4
  - tensorboard-plugin-wit=1.8.1=pyhd8ed1ab_0
  - tk=8.6.12=h5d9f67b_0
  - torchaudio=0.13.1=py310_cpu
  - torchmetrics=0.11.0=pyhd8ed1ab_0
  - torchvision=0.14.1=py310_cpu
  - tornado=6.2=py310hca72f7f_0
  - tqdm=4.64.1=pyhd8ed1ab_0
  - typing-extensions=4.4.0=py310hecd8cb5_0
  - typing_extensions=4.4.0=py310hecd8cb5_0
  - tzdata=2022g=h04d1e81_0
  - urllib3=1.26.13=py310hecd8cb5_0
  - werkzeug=2.2.2=pyhd8ed1ab_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.2.8=h6c40b1e_0
  - yaml=0.2.5=h0d85af4_2
  - yarl=1.8.2=py310h90acd4f_0
  - zipp=3.11.0=pyhd8ed1ab_0
  - zlib=1.2.13=h4dc903c_0
  - zstd=1.5.2=hcb37349_0
  - pip:
    - aiohttp-retry==2.8.3
    - amqp==5.1.1
    - antlr4-python3-runtime==4.9.3
    - anyio==3.6.2
    - appdirs==1.4.4
    - arrow==1.2.3
    - asyncssh==2.13.0
    - atpublic==3.1.1
    - beautifulsoup4==4.11.1
    - billiard==3.6.4.0
    - blessed==1.19.1
    - cachetools==5.2.1
    - celery==5.2.7
    - click-didyoumean==0.3.0
    - click-plugins==1.1.1
    - click-repl==0.2.0
    - commonmark==0.9.1
    - configobj==5.0.6
    - croniter==1.3.8
    - deepdiff==6.2.3
    - dictdiffer==0.9.0
    - diskcache==5.4.0
    - distro==1.8.0
    - dnspython==2.2.1
    - dpath==2.1.4
    - dulwich==0.20.50
    - dvc==2.41.1
    - dvc-data==0.29.0
    - dvc-gdrive==2.19.1
    - dvc-http==2.30.0
    - dvc-objects==0.14.1
    - dvc-render==0.0.17
    - dvc-studio-client==0.3.0
    - dvc-task==0.1.9
    - dvclive==1.3.2
    - email-validator==1.3.0
    - fastapi==0.89.1
    - filelock==3.9.0
    - flatten-dict==0.4.2
    - flufl-lock==7.1.1
    - funcy==1.17
    - future==0.18.2
    - gitdb==4.0.10
    - gitpython==3.1.30
    - google-api-core==2.11.0
    - google-api-python-client==2.72.0
    - google-auth==2.16.0
    - google-auth-httplib2==0.1.0
    - googleapis-common-protos==1.58.0
    - grandalf==0.6
    - h11==0.14.0
    - httpcore==0.16.3
    - httplib2==0.21.0
    - httptools==0.5.0
    - httpx==0.23.3
    - hydra-core==1.3.1
    - inquirer==3.1.2
    - iterative-telemetry==0.0.6
    - itsdangerous==2.1.2
    - jinja2==3.1.2
    - kaggle==1.5.12
    - kombu==5.2.4
    - lightning==1.8.6
    - lightning-cloud==0.5.16
    - nanotime==0.5.2
    - networkx==3.0
    - oauth2client==4.1.3
    - omegaconf==2.3.0
    - ordered-set==4.1.0
    - orjson==3.8.5
    - pathspec==0.9.0
    - prompt-toolkit==3.0.36
    - protobuf==3.20.1
    - psutil==5.9.4
    - pyasn1-modules==0.2.8
    - pydantic==1.10.4
    - pydot==1.4.2
    - pydrive2==1.15.0
    - pygit2==1.11.1
    - pygments==2.14.0
    - pygtrie==2.5.0
    - python-editor==1.0.4
    - python-multipart==0.0.5
    - python-slugify==7.0.0
    - readchar==4.0.3
    - rfc3986==1.5.0
    - rich==13.0.1
    - ruamel-yaml==0.17.21
    - ruamel-yaml-clib==0.2.7
    - scmrepo==0.1.5
    - shortuuid==1.0.11
    - shtab==1.5.8
    - smmap==5.0.0
    - sniffio==1.3.0
    - soupsieve==2.3.2.post1
    - starlette==0.22.0
    - starsessions==1.3.0
    - tabulate==0.9.0
    - tensorboardx==2.5.1
    - text-unidecode==1.3
    - tomlkit==0.11.6
    - traitlets==5.8.1
    - ujson==5.7.0
    - uritemplate==4.1.1
    - uvicorn==0.20.0
    - uvloop==0.17.0
    - vine==5.0.0
    - voluptuous==0.13.1
    - watchfiles==0.18.1
    - wcwidth==0.2.5
    - websocket-client==1.4.2
    - websockets==10.4
    - zc-lockfile==2.0
prefix: /opt/anaconda3/envs/MLOps_Project

But when I create the enviroment using:

conda env create -f environment.yml

It gives me the following error:

Solving environment: failed

ResolvePackageNotFound:
  - idna==3.4=py310hecd8cb5_0
  - zlib==1.2.13=h4dc903c_0
  - brotlipy==0.7.0=py310hca72f7f_1002
  - libwebp==1.2.4=h56c3ce4_0
  - python-dotenv==0.21.0=py310hecd8cb5_0
  - kiwisolver==1.4.4=py310hcec6c5f_0
  - tk==8.6.12=h5d9f67b_0
  - requests==2.28.1=py310hecd8cb5_0
  - lz4-c==1.9.4=hcec6c5f_0
  - mkl_random==1.2.2=py310hc081a56_0
  - yaml==0.2.5=h0d85af4_2
  - mkl-service==2.4.0=py310hca72f7f_0
  - gnutls==3.6.15=hed9c0bf_0
  - frozenlist==1.3.3=py310h90acd4f_0
  - brotli-bin==1.0.9=hca72f7f_7
  - c-ares==1.18.1=h0d85af4_0
  - python==3.10.8=h218abb5_1
  - libdeflate==1.8=h9ed2024_5
  - packaging==22.0=py310hecd8cb5_0
  - typing_extensions==4.4.0=py310hecd8cb5_0
  - libxml2==2.9.14=hbf8cd5e_0
  - click==8.0.4=py310hecd8cb5_0
  - brotli==1.0.9=hca72f7f_7
  - pillow==9.3.0=py310h81888ad_1
  - matplotlib==3.6.2=py310hecd8cb5_0
  - giflib==5.2.1=haf1e3a3_0
  - sqlite==3.40.0=h880c91c_0
  - freetype==2.12.1=hd8bbffd_0
  - ffmpeg==4.3=h0a44026_0
  - libbrotlienc==1.0.9=hca72f7f_7
  - libidn2==2.3.2=h9ed2024_0
  - readline==8.2=hca72f7f_0
  - nettle==3.7.3=h230ac6f_1
  - urllib3==1.26.13=py310hecd8cb5_0
  - openh264==2.1.1=h8346a28_0
  - bzip2==1.0.8=h1de35cc_0
  - libcxx==14.0.6=h9765a3e_0
  - cryptography==38.0.1=py310hf6deb26_0
  - setuptools==65.5.0=py310hecd8cb5_0
  - xz==5.2.8=h6c40b1e_0
  - icu==58.2=h0a44026_3
  - ca-certificates==2022.12.7=h033912b_0
  - libunistring==0.9.10=h9ed2024_0
  - cffi==1.15.1=py310h6c40b1e_3
  - intel-openmp==2021.4.0=hecd8cb5_3538
  - regex==2022.7.9=py310hca72f7f_0
  - libpng==1.6.37=ha441bb4_0
  - contourpy==1.0.5=py310haf03e11_0
  - markupsafe==2.1.1=py310h90acd4f_2
  - lerc==3.0=he9d5cce_0
  - libbrotlicommon==1.0.9=hca72f7f_7
  - libtasn1==4.16.0=h9ed2024_0
  - llvm-openmp==14.0.6=h0dcd299_0
  - bottleneck==1.3.5=py310h4e76f89_0
  - yarl==1.8.2=py310h90acd4f_0
  - openssl==1.1.1s=hfd90126_1
  - libprotobuf==3.20.1=h8346a28_0
  - matplotlib-base==3.6.2=py310h220de94_0
  - numexpr==2.8.4=py310h9638375_0
  - numpy==1.23.5=py310h9638375_0
  - typing-extensions==4.4.0=py310hecd8cb5_0
  - pandas==1.5.2=py310h3ea8b11_0
  - multidict==6.0.4=py310h90acd4f_0
  - tornado==6.2=py310hca72f7f_0
  - grpcio==1.42.0=py310ha29bfda_0
  - lame==3.100=h1de35cc_0
  - gettext==0.21.0=h7535e17_0
  - libbrotlidec==1.0.9=hca72f7f_7
  - libffi==3.4.2=hecd8cb5_6
  - aiohttp==3.8.3=py310h90acd4f_1
  - libtiff==4.4.0=h2cd0358_2
  - jpeg==9e=hca72f7f_0
  - pip==22.3.1=py310hecd8cb5_0
  - pytorch==1.13.1=py3.10_0
  - pytz==2022.7=py310hecd8cb5_0
  - libwebp-base==1.2.4=hca72f7f_0
  - lcms2==2.12=hf1fd2bf_0
  - gmp==6.2.1=he9d5cce_3
  - pyparsing==3.0.9=py310hecd8cb5_0
  - pyyaml==6.0=py310h90acd4f_5
  - mkl_fft==1.3.1=py310hf879493_0
  - numpy-base==1.23.5=py310ha98c3c9_0
  - tensorboard-data-server==0.6.1=py310h23bb4e6_4
  - mkl==2021.4.0=hecd8cb5_637
  - zstd==1.5.2=hcb37349_0
  - libiconv==1.16=hca72f7f_2
  - pysocks==1.7.1=py310hecd8cb5_0
  - ncurses==6.3=hca72f7f_3

Then we've tried on the OSX system:

conda list --export > conda-requirements.txt

Which gives the following output:

# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: osx-64
aiohttp=3.8.3=pypi_0
aiohttp-retry=2.8.3=pypi_0
aiosignal=1.3.1=pypi_0
amqp=5.1.1=pypi_0
antlr4-python3-runtime=4.9.3=pypi_0
appdirs=1.4.4=pypi_0
async-timeout=4.0.2=pypi_0
asyncssh=2.13.0=pypi_0
atpublic=3.1.1=pypi_0
attrs=22.2.0=pypi_0
billiard=3.6.4.0=pypi_0
blas=1.0=mkl
bottleneck=1.3.5=py310h4e76f89_0
brotli=1.0.9=hca72f7f_7
brotli-bin=1.0.9=hca72f7f_7
brotlipy=0.7.0=py310hca72f7f_1002
bzip2=1.0.8=h1de35cc_0
ca-certificates=2022.10.11=hecd8cb5_0
cachetools=5.2.1=pypi_0
celery=5.2.7=pypi_0
certifi=2022.12.7=py310hecd8cb5_0
cffi=1.15.1=py310h6c40b1e_3
charset-normalizer=2.0.4=pyhd3eb1b0_0
click=8.0.4=py310hecd8cb5_0
click-didyoumean=0.3.0=pypi_0
click-plugins=1.1.1=pypi_0
click-repl=0.2.0=pypi_0
colorama=0.4.6=pypi_0
commonmark=0.9.1=pypi_0
configobj=5.0.6=pypi_0
contourpy=1.0.5=py310haf03e11_0
cryptography=38.0.1=py310hf6deb26_0
cycler=0.11.0=pyhd3eb1b0_0
dictdiffer=0.9.0=pypi_0
diskcache=5.4.0=pypi_0
distro=1.8.0=pypi_0
dpath=2.1.4=pypi_0
dulwich=0.20.50=pypi_0
dvc=2.41.1=pypi_0
dvc-data=0.29.0=pypi_0
dvc-gdrive=2.19.1=pypi_0
dvc-http=2.30.0=pypi_0
dvc-objects=0.14.1=pypi_0
dvc-render=0.0.17=pypi_0
dvc-studio-client=0.3.0=pypi_0
dvc-task=0.1.9=pypi_0
dvclive=1.3.2=pypi_0
ffmpeg=4.3=h0a44026_0
filelock=3.9.0=pypi_0
flatten-dict=0.4.2=pypi_0
flit-core=3.6.0=pyhd3eb1b0_0
flufl-lock=7.1.1=pypi_0
fonttools=4.25.0=pyhd3eb1b0_0
freetype=2.12.1=hd8bbffd_0
frozenlist=1.3.3=pypi_0
fsspec=2022.11.0=pypi_0
funcy=1.17=pypi_0
future=0.18.2=pypi_0
gettext=0.21.0=h7535e17_0
giflib=5.2.1=haf1e3a3_0
gitdb=4.0.10=pypi_0
gitpython=3.1.30=pypi_0
gmp=6.2.1=he9d5cce_3
gnutls=3.6.15=hed9c0bf_0
google-api-core=2.11.0=pypi_0
google-api-python-client=2.72.0=pypi_0
google-auth=2.16.0=pypi_0
google-auth-httplib2=0.1.0=pypi_0
googleapis-common-protos=1.58.0=pypi_0
grandalf=0.6=pypi_0
httplib2=0.21.0=pypi_0
hydra-core=1.3.1=pypi_0
icu=58.2=h0a44026_3
idna=3.4=py310hecd8cb5_0
intel-openmp=2021.4.0=hecd8cb5_3538
iterative-telemetry=0.0.6=pypi_0
jpeg=9e=hca72f7f_0
kaggle=1.5.12=pypi_0
kiwisolver=1.4.4=py310hcec6c5f_0
kombu=5.2.4=pypi_0
lame=3.100=h1de35cc_0
lcms2=2.12=hf1fd2bf_0
lerc=3.0=he9d5cce_0
libbrotlicommon=1.0.9=hca72f7f_7
libbrotlidec=1.0.9=hca72f7f_7
libbrotlienc=1.0.9=hca72f7f_7
libcxx=14.0.6=h9765a3e_0
libdeflate=1.8=h9ed2024_5
libffi=3.4.2=hecd8cb5_6
libiconv=1.16=hca72f7f_2
libidn2=2.3.2=h9ed2024_0
libpng=1.6.37=ha441bb4_0
libtasn1=4.16.0=h9ed2024_0
libtiff=4.4.0=h2cd0358_2
libunistring=0.9.10=h9ed2024_0
libwebp=1.2.4=h56c3ce4_0
libwebp-base=1.2.4=hca72f7f_0
libxml2=2.9.14=hbf8cd5e_0
llvm-openmp=14.0.6=h0dcd299_0
lz4-c=1.9.4=hcec6c5f_0
matplotlib=3.6.2=py310hecd8cb5_0
matplotlib-base=3.6.2=py310h220de94_0
mkl=2021.4.0=hecd8cb5_637
mkl-service=2.4.0=py310hca72f7f_0
mkl_fft=1.3.1=py310hf879493_0
mkl_random=1.2.2=py310hc081a56_0
multidict=6.0.4=pypi_0
munkres=1.1.4=py_0
nanotime=0.5.2=pypi_0
ncurses=6.3=hca72f7f_3
nettle=3.7.3=h230ac6f_1
networkx=3.0=pypi_0
numexpr=2.8.4=py310h9638375_0
numpy=1.23.5=py310h9638375_0
numpy-base=1.23.5=py310ha98c3c9_0
oauth2client=4.1.3=pypi_0
omegaconf=2.3.0=pypi_0
openh264=2.1.1=h8346a28_0
openssl=1.1.1s=hca72f7f_0
packaging=22.0=py310hecd8cb5_0
pandas=1.5.2=py310h3ea8b11_0
pathspec=0.9.0=pypi_0
pillow=9.3.0=py310h81888ad_1
pip=22.3.1=py310hecd8cb5_0
prompt-toolkit=3.0.36=pypi_0
protobuf=4.21.12=pypi_0
psutil=5.9.4=pypi_0
pyasn1=0.4.8=pypi_0
pyasn1-modules=0.2.8=pypi_0
pycparser=2.21=pyhd3eb1b0_0
pydot=1.4.2=pypi_0
pydrive2=1.15.0=pypi_0
pygit2=1.11.1=pypi_0
pygments=2.14.0=pypi_0
pygtrie=2.5.0=pypi_0
pyopenssl=22.0.0=pyhd3eb1b0_0
pyparsing=3.0.9=py310hecd8cb5_0
pysocks=1.7.1=py310hecd8cb5_0
python=3.10.8=h218abb5_1
python-dateutil=2.8.2=pyhd3eb1b0_0
python-dotenv=0.21.0=py310hecd8cb5_0
python-slugify=7.0.0=pypi_0
pytorch=1.13.1=py3.10_0
pytz=2022.7=py310hecd8cb5_0
pyyaml=6.0=pypi_0
readline=8.2=hca72f7f_0
regex=2022.7.9=py310hca72f7f_0
requests=2.28.1=py310hecd8cb5_0
rich=13.0.1=pypi_0
rsa=4.9=pypi_0
ruamel-yaml=0.17.21=pypi_0
ruamel-yaml-clib=0.2.7=pypi_0
scmrepo=0.1.5=pypi_0
setuptools=65.5.0=py310hecd8cb5_0
shortuuid=1.0.11=pypi_0
shtab=1.5.8=pypi_0
six=1.16.0=pyhd3eb1b0_1
smmap=5.0.0=pypi_0
sqlite=3.40.0=h880c91c_0
tabulate=0.9.0=pypi_0
text-unidecode=1.3=pypi_0
tk=8.6.12=h5d9f67b_0
tomlkit=0.11.6=pypi_0
torchaudio=0.13.1=py310_cpu
torchvision=0.14.1=py310_cpu
tornado=6.2=py310hca72f7f_0
tqdm=4.64.1=pypi_0
typing_extensions=4.4.0=py310hecd8cb5_0
tzdata=2022g=h04d1e81_0
uritemplate=4.1.1=pypi_0
urllib3=1.26.13=py310hecd8cb5_0
vine=5.0.0=pypi_0
voluptuous=0.13.1=pypi_0
wcwidth=0.2.5=pypi_0
wheel=0.37.1=pyhd3eb1b0_0
xz=5.2.8=h6c40b1e_0
yarl=1.8.2=pypi_0
zc-lockfile=2.0=pypi_0
zlib=1.2.13=h4dc903c_0
zstd=1.5.2=hcb37349_0

Then to get the packages from pip:

 pip freeze > requirements.txt

Which gives the following output:

aiohttp==3.8.3
aiohttp-retry==2.8.3
aiosignal==1.3.1
amqp==5.1.1
antlr4-python3-runtime==4.9.3
appdirs==1.4.4
async-timeout==4.0.2
asyncssh==2.13.0
atpublic==3.1.1
attrs==22.2.0
billiard==3.6.4.0
Bottleneck @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_29949159-f86f-474b-bc1f-aaa1e0e222b4ofusifik/croots/recipe/bottleneck_1657175564045/work
brotlipy==0.7.0
cachetools==5.2.1
celery==5.2.7
certifi @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_477u68wvzm/croot/certifi_1671487773341/work/certifi
cffi @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_1b0qzba5nr/croot/cffi_1670423213150/work
charset-normalizer @ file:///tmp/build/80754af9/charset-normalizer_1630003229654/work
click @ file:///opt/concourse/worker/volumes/live/2d66025a-4d79-47c4-43be-6220928b6c82/volume/click_1646056610594/work
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
colorama==0.4.6
commonmark==0.9.1
configobj==5.0.6
contourpy @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_17gskqgptz/croots/recipe/contourpy_1663827415320/work
cryptography @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_3evwafgyg8/croot/cryptography_1665612651044/work
cycler @ file:///tmp/build/80754af9/cycler_1637851556182/work
dictdiffer==0.9.0
diskcache==5.4.0
distro==1.8.0
dpath==2.1.4
dulwich==0.20.50
dvc==2.41.1
dvc-data==0.29.0
dvc-gdrive==2.19.1
dvc-http==2.30.0
dvc-objects==0.14.1
dvc-render==0.0.17
dvc-studio-client==0.3.0
dvc-task==0.1.9
dvclive==1.3.2
filelock==3.9.0
flatten-dict==0.4.2
flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core
flufl.lock==7.1.1
fonttools==4.25.0
frozenlist==1.3.3
fsspec==2022.11.0
funcy==1.17
future==0.18.2
gitdb==4.0.10
GitPython==3.1.30
google-api-core==2.11.0
google-api-python-client==2.72.0
google-auth==2.16.0
google-auth-httplib2==0.1.0
googleapis-common-protos==1.58.0
grandalf==0.6
httplib2==0.21.0
hydra-core==1.3.1
idna @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_00jf0h4zbt/croot/idna_1666125573348/work
iterative-telemetry==0.0.6
kaggle==1.5.12
kiwisolver @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_e26jwrjf6j/croot/kiwisolver_1672387151391/work
kombu==5.2.4
matplotlib @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_35aw7vfp_z/croot/matplotlib-suite_1670466139477/work
mkl-fft==1.3.1
mkl-random @ file:///opt/concourse/worker/volumes/live/a9eca864-069c-4240-73c8-4e51b036a10d/volume/mkl_random_1639994047876/work
mkl-service==2.4.0
multidict==6.0.4
munkres==1.1.4
nanotime==0.5.2
networkx==3.0
numexpr @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_cef3ah6r8w/croot/numexpr_1668713880672/work
numpy @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_8cgikbzvtd/croot/numpy_and_numpy_base_1672336184666/work
oauth2client==4.1.3
omegaconf==2.3.0
packaging @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_bet5qdixgt/croot/packaging_1671697440883/work
pandas==1.5.2
pathspec==0.9.0
Pillow==9.3.0
prompt-toolkit==3.0.36
protobuf==4.21.12
psutil==5.9.4
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser @ file:///tmp/build/80754af9/pycparser_1636541352034/work
pydot==1.4.2
PyDrive2==1.15.0
pygit2==1.11.1
Pygments==2.14.0
pygtrie==2.5.0
pyOpenSSL @ file:///opt/conda/conda-bld/pyopenssl_1643788558760/work
pyparsing @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_3a17y2delq/croots/recipe/pyparsing_1661452538853/work
PySocks @ file:///Users/builder/ci_310/pysocks_1642536366386/work
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
python-dotenv @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_ebulf7sz20/croot/python-dotenv_1669132564141/work
python-slugify==7.0.0
pytz @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_ddzpsmm2_f/croot/pytz_1671697430473/work
PyYAML==6.0
regex @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_978efa21-43f5-4f43-9f25-acd8393817ddce2xcjaf/croots/recipe/regex_1658257186496/work
requests @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_516b78ce-034d-4395-b9b5-1d78c2847384qtnol99l/croots/recipe/requests_1657734628886/work
rich==13.0.1
rsa==4.9
ruamel.yaml==0.17.21
ruamel.yaml.clib==0.2.7
scmrepo==0.1.5
shortuuid==1.0.11
shtab==1.5.8
six @ file:///tmp/build/80754af9/six_1644875935023/work
smmap==5.0.0
tabulate==0.9.0
text-unidecode==1.3
tomlkit==0.11.6
torch==1.13.1
torchaudio==0.13.1
torchvision==0.14.1
tornado @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_1fimz6o0gc/croots/recipe/tornado_1662061695695/work
tqdm==4.64.1
typing_extensions @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_4b7xacf029/croot/typing_extensions_1669923792404/work
uritemplate==4.1.1
urllib3 @ file:///private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/abs_ffvqcdv424/croot/urllib3_1670526991804/work
vine==5.0.0
voluptuous==0.13.1
wcwidth==0.2.5
yarl==1.8.2
zc.lockfile==2.0

With this two requirements files I've tried to create the enviroment with conda, which creates the env successfully. But when I try to intall pip in the enviroment, it gives me the following error: (I will only copy part of the output as it gives me conflicts with each package)

Package futures conflicts for:
conda-forge/noarch::tensorboard==2.11.0=pyhd8ed1ab_0 -> grpcio[version='>=1.24.3'] -> futures[version='>=2.2.0']
defaults/osx-64::matplotlib==3.6.2=py310hecd8cb5_0 -> tornado[version='>=5'] -> futures

Package libbrotlienc conflicts for:
defaults/osx-64::brotli-bin==1.0.9=hca72f7f_7 -> libbrotlienc==1.0.9=hca72f7f_7
defaults/osx-64::brotli==1.0.9=hca72f7f_7 -> libbrotlienc==1.0.9=hca72f7f_7
defaults/noarch::fonttools==4.25.0=pyhd3eb1b0_0 -> brotli[version='>=1.0.1'] -> libbrotlienc==1.0.9[build='hca72f7f_7|h5eee18b_7']

Package llvm-openmp conflicts for:
defaults/osx-64::gettext==0.21.0=h7535e17_0 -> llvm-openmp[version='>=10.0.0']
defaults/osx-64::gnutls==3.6.15=hed9c0bf_0 -> gettext[version='>=0.19.8.1'] -> llvm-openmp[version='>=10.0.0']

Package tensorboard-plugin-wit conflicts for:
conda-forge/noarch::pytorch-lightning==1.8.1=pyhd8ed1ab_0 -> tensorboard[version='>=2.9.1'] -> tensorboard-plugin-wit[version='>=1.6.0']
conda-forge/noarch::tensorboard==2.11.0=pyhd8ed1ab_0 -> tensorboard-plugin-wit[version='>=1.6.0']

Package fonttools conflicts for:
defaults/osx-64::matplotlib==3.6.2=py310hecd8cb5_0 -> matplotlib-base[version='>=3.6.2,<3.6.3.0a0'] -> fonttools[version='>=4.22.0']
defaults/osx-64::matplotlib-base==3.6.2=py310h220de94_0 -> fonttools[version='>=4.22.0']

Package kiwisolver conflicts for:
defaults/osx-64::matplotlib==3.6.2=py310hecd8cb5_0 -> matplotlib-base[version='>=3.6.2,<3.6.3.0a0'] -> kiwisolver[version='>=1.0.1']
defaults/osx-64::matplotlib-base==3.6.2=py310h220de94_0 -> kiwisolver[version='>=1.0.1']

Package aiohttp conflicts for:
conda-forge/noarch::google-auth-oauthlib==0.4.6=pyhd8ed1ab_0 -> google-auth[version='>=1.0.0'] -> aiohttp[version='>=3.6.2,<4.0.0dev']
conda-forge/noarch::google-auth==2.15.0=pyh1a96a4e_0 -> aiohttp[version='>=3.6.2,<4.0.0dev']
conda-forge/noarch::tensorboard==2.11.0=pyhd8ed1ab_0 -> google-auth[version='>=1.6.3,<3'] -> aiohttp[version='>=3.6.2,<4.0.0dev']The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.35=0
  - feature:|@/linux-64::__glibc==2.35=0
  - conda-forge/noarch::tensorboard==2.11.0=pyhd8ed1ab_0 -> grpcio[version='>=1.24.3'] -> __osx[version='>=10.10']
  - defaults/osx-64::grpcio==1.42.0=py310ha29bfda_0 -> __osx[version='>=10.10']
  - defaults/osx-64::matplotlib-base==3.6.2=py310h220de94_0 -> __osx[version='>=10.11']
  - defaults/osx-64::matplotlib==3.6.2=py310hecd8cb5_0 -> matplotlib-base[version='>=3.6.2,<3.6.3.0a0'] -> __osx[version='>=10.11']
  - openssl -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.35

I have no clue how to fix the problem.

If you can give a hand I'll apreciate it. If you need any extra specs, please let me know.

Thanks


来源: stackexchange

问:
Visual Studio dev container can't connect to mysql service
When using a dev container in Visual Studio Code (VSC) I can't connect to the MySQL database, not even from inside the container. However, when I manually start the service with docker-compose up -d mysql I can connect to the database from within the container.

I'm using the Bitnami MySQL from the Docker Hub registry.

This is the content of my .devcontainer.json:

{
    "name": "Devcontainer",
    "dockerComposeFile": "docker-compose.yml",
    "service": "devcontainer",
    "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
}
```
<p>Kept is as basic as possible.</p>
<p>The contents of the <code>docker-compose.yml</code> file:</p>
<pre class="lang-yaml prettyprint-override"><code>version: '3.8'
services:
  devcontainer:
    image: mcr.microsoft.com/devcontainers/base:ubuntu
    volumes:
      - ../..:/workspaces:cached

    command: sleep infinity

  mysql:
    image: docker.io/bitnami/mysql:8.0
    ports:
      - 3306:3306
    expose:
      - 3306
    volumes:
      - 'mysql_data:/bitnami/mysql/data'
    environment:
      - ALLOW_EMPTY_PASSWORD=no
      - MYSQL_ROOT_PASSWORD=deOCyZ4cnRa4bRNDAFak8
      - MYSQL_USER=user
      - MYSQL_PASSWORD=deOCyZ4cnRa4bRNDAFak8
      - MYSQL_DATABASE=name
    healthcheck:
      test: ['CMD', '/opt/bitnami/scripts/mysql/healthcheck.sh']
      interval: 15s
      timeout: 5s
      retries: 6

volumes:
  mysql_data:
    driver: local
</code>```

So when I do a Rebuild without cache and reopen in container in VSC it starts up the docker container. After that I enter the container using docker exec -it <hash> bash and try to login to the server:

$ mysql -u user -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/bitnami/mysql/tmp/mysql.sock' (2)
```
<p>When I close the remote connection and make sure the container is not running anymore I start the container with <code>docker-compose up -d db</code>.</p>
<p>When it's running I start bash inside the container the same way and then I can connect to the server:</p>
<pre class="lang-bash prettyprint-override"><code>$ mysql -u user -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.31 Source distribution
</code>```

I'm 100% sure I supply the correct password with copy/paste.

The same connection problems also exists for root user. I've also tried to use the ALLOW_EMPTY_PASSWORD=true but that has the same result.

I've tried to use MariaDB version supplied by Bitnami but is has the same problem. I haven't tried the original MySQL image but I never had this problem before.

No other docker containers are running when I start the dev container.

```<code>$ docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
$
</code>```

Any idea what's happening and how to fix it? Am I doing something wrong?

Update: It looks like the original MySQL images from the Docker Hub are working properly.

ContentLicense: CC BY-SA 4.0

Body:
When using a dev container in Visual Studio Code (VSC) I can't connect to the MySQL database, not even from inside the container. However, when I manually start the service with docker-compose up -d mysql I can connect to the database from within the container.

I'm using the Bitnami MySQL from the Docker Hub registry.

This is the content of my .devcontainer.json:

{
    "name": "Devcontainer",
    "dockerComposeFile": "docker-compose.yml",
    "service": "devcontainer",
    "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
}

Kept is as basic as possible.

The contents of the docker-compose.yml file:

version: '3.8'
services:
  devcontainer:
    image: mcr.microsoft.com/devcontainers/base:ubuntu
    volumes:
      - ../..:/workspaces:cached

    command: sleep infinity

  mysql:
    image: docker.io/bitnami/mysql:8.0
    ports:
      - 3306:3306
    expose:
      - 3306
    volumes:
      - 'mysql_data:/bitnami/mysql/data'
    environment:
      - ALLOW_EMPTY_PASSWORD=no
      - MYSQL_ROOT_PASSWORD=deOCyZ4cnRa4bRNDAFak8
      - MYSQL_USER=user
      - MYSQL_PASSWORD=deOCyZ4cnRa4bRNDAFak8
      - MYSQL_DATABASE=name
    healthcheck:
      test: ['CMD', '/opt/bitnami/scripts/mysql/healthcheck.sh']
      interval: 15s
      timeout: 5s
      retries: 6

volumes:
  mysql_data:
    driver: local

So when I do a Rebuild without cache and reopen in container in VSC it starts up the docker container. After that I enter the container using docker exec -it <hash> bash and try to login to the server:

$ mysql -u user -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/bitnami/mysql/tmp/mysql.sock' (2)

When I close the remote connection and make sure the container is not running anymore I start the container with docker-compose up -d db.

When it's running I start bash inside the container the same way and then I can connect to the server:

$ mysql -u user -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.31 Source distribution

I'm 100% sure I supply the correct password with copy/paste.

The same connection problems also exists for root user. I've also tried to use the ALLOW_EMPTY_PASSWORD=true but that has the same result.

I've tried to use MariaDB version supplied by Bitnami but is has the same problem. I haven't tried the original MySQL image but I never had this problem before.

No other docker containers are running when I start the dev container.

$ docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
$

Any idea what's happening and how to fix it? Am I doing something wrong?

Update: It looks like the original MySQL images from the Docker Hub are working properly.


问:
Can't connect to CBPeripheral
I'm working on an app that connects to a peripheral via CoreBluetooth.
It uses state restoration to retrieve a previously connected peripheral and tries to connect to it with CBCentralManager's connect(_:options:) function.
This works quite well, but sometimes the connection between both devices just stop to work. CBCentralManagerDelegate methods centralManager(_:didConnect:) or centralManager(_:didFailToConnect:error:) never get called although the peripheral is nearby.
The only solution to get out of this broken state is to forget the peripheral in the Bluetooth system settings and to bond both devices again.
Did anyone ever experience something similar?

Things that don't work:

Rebooting the iPhone

Toggling bluetooth in the system settings

Removing the state restoration

Updating to the latest iOS version (16.2)

Title: Can't connect to CBPeripheral


问:
Mocking BufferedReader and HttpsURLConnection to get the token
I am trying to open the HttpsURLConnection from URL which I have created the mock object. But it is throwing the AbstractMethodError when I mock the below method. Actually I have to write a Junit Test Case for the below method using Mockito.

I have Mocked the below objects and failed to Test Completely. I have given a piece of work which I have done with mockings.

```<code>public String createBearerToken(HttpServletRequest request) throws Exception{
  BufferedReader bearerTokenReader = null;
  String returnMessage = null;
  HttpsURLConnection conn = null;
  conn = MyClass.makeConnection();
  StringBuilder response = new StringBuilder();
  bearerTokenReader = new BufferedReader(new InputStreamReader(conn.getInputStream(), utf-8){
    String responseLine = null;
    while((responseLine = StringEscapeUtils.escapeHtml4(bearerTokenReader.readLine()) != null)
    {
      response.append(responseLine.trim());
    }
  returnMessage = response.toString();
}
</code>```

I have created the Mock Test Method as the below:

```<code>@Test
public void testGetBearerTokenSuccess() throws Exception {
  URL url = PowerMockito.mock(URL.class);
  String urlStr = "https://localhost:8080/home";
  PowerMockito.whenNew(URL.class).withArguments(anyString()).thenReturn(url);
  HttpURLConnection httpUrlConnection = Mockito.mock(HttpURLConnection.class);
  Mockito.when(url.openConnection().thenReturn(httpUrlConnection);
  //getting the **java.lang.AbstractMethodError" at java.net.URL.openConnection** error in the above line while calling the ```url.openConnection```.
}
}

</code>```

also the BufferedReader mocking part for the above code having some doubts to write the test cases for that. Need help to complete the above java method.

Body:
I am trying to open the HttpsURLConnection from URL which I have created the mock object. But it is throwing the AbstractMethodError when I mock the below method. Actually I have to write a Junit Test Case for the below method using Mockito.

I have Mocked the below objects and failed to Test Completely. I have given a piece of work which I have done with mockings.

public String createBearerToken(HttpServletRequest request) throws Exception{
  BufferedReader bearerTokenReader = null;
  String returnMessage = null;
  HttpsURLConnection conn = null;
  conn = MyClass.makeConnection();
  StringBuilder response = new StringBuilder();
  bearerTokenReader = new BufferedReader(new InputStreamReader(conn.getInputStream(), utf-8){
    String responseLine = null;
    while((responseLine = StringEscapeUtils.escapeHtml4(bearerTokenReader.readLine()) != null)
    {
      response.append(responseLine.trim());
    }
  returnMessage = response.toString();
}

I have created the Mock Test Method as the below:

@Test
public void testGetBearerTokenSuccess() throws Exception {
  URL url = PowerMockito.mock(URL.class);
  String urlStr = "https://localhost:8080/home";
  PowerMockito.whenNew(URL.class).withArguments(anyString()).thenReturn(url);
  HttpURLConnection httpUrlConnection = Mockito.mock(HttpURLConnection.class);
  Mockito.when(url.openConnection().thenReturn(httpUrlConnection);
  //getting the **java.lang.AbstractMethodError" at java.net.URL.openConnection** error in the above line while calling the ```url.openConnection```.
}
}

also the BufferedReader mocking part for the above code having some doubts to write the test cases for that. Need help to complete the above java method.


问:
Agora.io plugin for WordPress no longer supported, and does not work on past PHP 7.4
The plugin is dead, since October >> https://wordpress.org/plugins/wp-agora-io/

Agora support have today confirmed they do not intend to support, nor develop any further.

This, despite promoting it actively here >> https://www.agora.io/en/partners/wordpress/

It's now stuck on PHP7.4, does not work on on PHP8 and hence, useless.

Does anyone know of a plugin fork, and/or alternative to using Agora on WordPress, for meeting rooms?

Many thanks!

Herby

Reached out to Agora several times, but no joy. It's a dead-end.

Considered hacking the plugin code to work on PHP 8, but would prefer no code maintenance.

Looked for alternatives to Agora to use on WordPress, but no luck so far.


问:
Turnoff Pine Script Prompt
Is there anyway to turnoff the Pine script pop up prompter. It was introduced a few months ago and I find that it gets in the way of coding. It is a nice idea for absolute beginners but I have been coding Pine script for a number of years now and it is nothing but a nuisance.

I check the settings and could not find a switch to turn the Pine Script prompter off. Perhaps I missed something, if so please tell me how to get to it.

Title: Turnoff Pine Script Prompt


问:
Google Analytics API Service User does not have sufficient permissions for this profile
I am using Google Analytics 4. I have created the json file for the service account, and got the email address. This email was added to my users as Admin in the Account Access Management, yet I am still getting the error that I do not have sufficient permissions for this profile.

Any idea what am I doing wrong please?


问:
Postgres data order in the response is not as expected in NestJS application
I have a query as shown below

```<code>      select
    json_object_agg(area_tp, data2) as area_tp_map
from
    (
    select
        area_tp,
        json_object_agg(area_cd, data order by area_cd::int asc) as data2
    from
        (
        select
            cs.area_tp,
            cs.area_cd,
            jsonb_agg(
                jsonb_build_object(
          'store_no', cs.store_no,
                    'store_nm', cs.store_nm,
                    'store_open_dt', s.date_open ,
                    'store_event', sn.contents,
                    'handled_item', s.genre
                ) order by cd1.prir_seq ,
        cd2.prir_seq,
        cs.zip_cd ,
        cs.store_no
    ) as data
        from
            store s
        join
c21_store cs
on
            s.store_id = cs.core_store_id::int
        left join store_news sn
on
            s.store_id = sn.store_id
        left join code_dtl cd1
            on
            cs.area_tp = cd1.cd_dtl_no
            and cd1.cd_no = '500'
        left join code_dtl cd2
            on
            cs.area_cd = cd2.cd_dtl_no
            and cd2.cd_no = '35'
        where
            cs.shop_no = '0000100001'
            and s.on_front = '1'
            and s.logical_deletion_flag = '0'
            and cs.area_cd <> ' '
        group by
            cs.area_tp,
            cs.area_cd
        order by
            cs.area_tp::int,
            cs.area_cd::int
      ) s
    group by
        area_tp
  )s
</code>```

This produces an output as shown below,

```<code>{
  "areaTpMap": {
    "02": {
      "10": [
        {
          "storeNm": "test1",
          "storeNo": 20033,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20130315"
        },
        {
          "storeNm": "けやきウォーク前橋",
          "storeNo": 20038,
          "storeEvent": "",
          "handledItem": "0`1",
          "storeOpenDt": "20130406"
        }
      ],
      "11": [
        {
          "storeNm": "test3",
          "storeNo": 174,
          "storeEvent": "",
          "handledItem": null,
          "storeOpenDt": "20020216"
        },
        {
          "storeNm": "test4",
          "storeNo": 9254,
          "storeEvent": "",
          "handledItem": "0`1",
          "storeOpenDt": "20060421"
        },
        {
          "storeNm": "test5",
          "storeNo": 8949,
          "storeEvent": null,
          "handledItem": "0`1`2",
          "storeOpenDt": "20080926"
        },
        {
          "storeNm": "test6",
          "storeNo": 9309,
          "storeEvent": null,
          "handledItem": "0",
          "storeOpenDt": "20120322"
        },
        {
          "storeNm": "test7",
          "storeNo": 20214,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20150406"
        },
        {
          "storeNm": "test8",
          "storeNo": 21439,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20170901"
        }
      ],
      "12": [
        {
          "storeNm": "test9",
          "storeNo": 155,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20010831"
        },
        {
          "storeNm": "test10",
          "storeNo": 20072,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20131217"
        },
        {
          "storeNm": "test11",
          "storeNo": 115,
          "storeEvent": "",
          "handledItem": null,
          "storeOpenDt": "20000420"
        },
        {
          "storeNm": "test12",
          "storeNo": 20883,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20160219"
        },
        {
          "storeNm": "test13",
          "storeNo": 408,
          "storeEvent": "",
          "handledItem": "0`1",
          "storeOpenDt": "20060317"
        }
      ],
      "13": [
        {
          "storeNm": "test23",
          "storeNo": 9238,
          "storeEvent": "10/21(Fri) NEW OPEN!!\r\nComming soon...",
          "handledItem": null,
          "storeOpenDt": "20110326"
        }
      ],
      "08": [
        {
          "storeNm": "test 20",
          "storeNo": 20014,
          "storeEvent": null,
          "handledItem": "0`1`2",
          "storeOpenDt": "20130312"
        }
      ],
      "09": [
        {
          "storeNm": "test30",
          "storeNo": 22090,
          "storeEvent": null,
          "handledItem": "0`1`2",
          "storeOpenDt": "20210312"
        },
        {
          "storeNm": "test40",
          "storeNo": 20975,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20160301"
        }
      ]
    }
  }
}
</code>```

What I want is the second level of keys(area_cd) to be in order 08, 09, 10, 11 , 12, 13

I tried ordering in asc and desc but it does not seems to produce any impact.
Can't figure out what I am missing

Any help is much appreciated

Thanks in advance

Body:
I have a query as shown below

      select
    json_object_agg(area_tp, data2) as area_tp_map
from
    (
    select
        area_tp,
        json_object_agg(area_cd, data order by area_cd::int asc) as data2
    from
        (
        select
            cs.area_tp,
            cs.area_cd,
            jsonb_agg(
                jsonb_build_object(
          'store_no', cs.store_no,
                    'store_nm', cs.store_nm,
                    'store_open_dt', s.date_open ,
                    'store_event', sn.contents,
                    'handled_item', s.genre
                ) order by cd1.prir_seq ,
        cd2.prir_seq,
        cs.zip_cd ,
        cs.store_no
    ) as data
        from
            store s
        join
c21_store cs
on
            s.store_id = cs.core_store_id::int
        left join store_news sn
on
            s.store_id = sn.store_id
        left join code_dtl cd1
            on
            cs.area_tp = cd1.cd_dtl_no
            and cd1.cd_no = '500'
        left join code_dtl cd2
            on
            cs.area_cd = cd2.cd_dtl_no
            and cd2.cd_no = '35'
        where
            cs.shop_no = '0000100001'
            and s.on_front = '1'
            and s.logical_deletion_flag = '0'
            and cs.area_cd <> ' '
        group by
            cs.area_tp,
            cs.area_cd
        order by
            cs.area_tp::int,
            cs.area_cd::int
      ) s
    group by
        area_tp
  )s

This produces an output as shown below,

{
  "areaTpMap": {
    "02": {
      "10": [
        {
          "storeNm": "test1",
          "storeNo": 20033,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20130315"
        },
        {
          "storeNm": "けやきウォーク前橋",
          "storeNo": 20038,
          "storeEvent": "",
          "handledItem": "0`1",
          "storeOpenDt": "20130406"
        }
      ],
      "11": [
        {
          "storeNm": "test3",
          "storeNo": 174,
          "storeEvent": "",
          "handledItem": null,
          "storeOpenDt": "20020216"
        },
        {
          "storeNm": "test4",
          "storeNo": 9254,
          "storeEvent": "",
          "handledItem": "0`1",
          "storeOpenDt": "20060421"
        },
        {
          "storeNm": "test5",
          "storeNo": 8949,
          "storeEvent": null,
          "handledItem": "0`1`2",
          "storeOpenDt": "20080926"
        },
        {
          "storeNm": "test6",
          "storeNo": 9309,
          "storeEvent": null,
          "handledItem": "0",
          "storeOpenDt": "20120322"
        },
        {
          "storeNm": "test7",
          "storeNo": 20214,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20150406"
        },
        {
          "storeNm": "test8",
          "storeNo": 21439,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20170901"
        }
      ],
      "12": [
        {
          "storeNm": "test9",
          "storeNo": 155,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20010831"
        },
        {
          "storeNm": "test10",
          "storeNo": 20072,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20131217"
        },
        {
          "storeNm": "test11",
          "storeNo": 115,
          "storeEvent": "",
          "handledItem": null,
          "storeOpenDt": "20000420"
        },
        {
          "storeNm": "test12",
          "storeNo": 20883,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20160219"
        },
        {
          "storeNm": "test13",
          "storeNo": 408,
          "storeEvent": "",
          "handledItem": "0`1",
          "storeOpenDt": "20060317"
        }
      ],
      "13": [
        {
          "storeNm": "test23",
          "storeNo": 9238,
          "storeEvent": "10/21(Fri) NEW OPEN!!\r\nComming soon...",
          "handledItem": null,
          "storeOpenDt": "20110326"
        }
      ],
      "08": [
        {
          "storeNm": "test 20",
          "storeNo": 20014,
          "storeEvent": null,
          "handledItem": "0`1`2",
          "storeOpenDt": "20130312"
        }
      ],
      "09": [
        {
          "storeNm": "test30",
          "storeNo": 22090,
          "storeEvent": null,
          "handledItem": "0`1`2",
          "storeOpenDt": "20210312"
        },
        {
          "storeNm": "test40",
          "storeNo": 20975,
          "storeEvent": null,
          "handledItem": null,
          "storeOpenDt": "20160301"
        }
      ]
    }
  }
}

What I want is the second level of keys(area_cd) to be in order 08, 09, 10, 11 , 12, 13

I tried ordering in asc and desc but it does not seems to produce any impact.
Can't figure out what I am missing

Any help is much appreciated

Thanks in advance


问:
Adding noise to dataset with binary columns
I am trying to add noise to the telco dataset in order to compare prediction accuracy levels using neural networks.

I have converted most of the dataset to binary variables(0 or 1). Want to add noise to the entire dataset before training neural network on them. Would the only option be to flip them? Or is there any other way?

this is the dataset
https://www.kaggle.com/datasets/blastchar/telco-customer-churn


问:
Capture data from Table_A and use it when filtering data in Table_B with C#
As part of ETL automation I need to:

Run query against Table_A where I pull data from column_1.

Run another query by filtering data using where condition from step 1

For example:

I need to check whether table contains records. select * from Table_A

If yes, pick values from Table_A.column_1

Connect to another database_B

Run query against Table_B by filtering values from Table_A.column_1

I only found instruction how to connect and read data, but I was not able to find related to my task.
If you response with suggestion and guidance I would appreciate it.
Also I am new to C#, please don't be mad If I ask stupid questions.


问:
What's the relationship between Mojo and IPC?
In this document:

Mojo is a collection of runtime libraries providing a platform-agnostic abstraction of common IPC primitives, a message IDL format, and a bindings library with code generation for multiple target languages to facilitate convenient message passing across arbitrary inter- and intra-process boundaries.

What's the relationship between Mojo and IPC?


问:
React Native animate problem adding translate X to interpolate
I am trying to learn how to animate things in react native. I have a few things working but now I want to use the translateX and scaleX etc.

I have this working which simply spins the image :

```<code>const spin = spinValue.interpolate({
  inputRange: [0, 1],
  outputRange: ['0deg', '360deg']
})
</code>```

and now I would like to use something like this to make the image bigger but I can not get it to work? :

```<code>transform: [
 {
  translateX: this.animatedValue.interpolate({
  inputRange: [0, 1],
  outputRange: [0, 120]
  })
</code>```

I have tried but it doesnt work?

```<code>const spin = translateX: animatedValue.spinValue.interpolate({
</code>```

This is not all of it just snippets of what I am trying. Am I doing it totally wrong or is it something else?

Any help would be appreciated.

Body:
I am trying to learn how to animate things in react native. I have a few things working but now I want to use the translateX and scaleX etc.

I have this working which simply spins the image :

const spin = spinValue.interpolate({
  inputRange: [0, 1],
  outputRange: ['0deg', '360deg']
})

and now I would like to use something like this to make the image bigger but I can not get it to work? :

transform: [
 {
  translateX: this.animatedValue.interpolate({
  inputRange: [0, 1],
  outputRange: [0, 120]
  })

I have tried but it doesnt work?

const spin = translateX: animatedValue.spinValue.interpolate({

This is not all of it just snippets of what I am trying. Am I doing it totally wrong or is it something else?

Any help would be appreciated.


问:
How do I get the house element of a column by hover?
I'm using a bar chart and want to get the house targeted, how can I do that?
enter code here https://jsfiddle.net/yz1Lcedk/13/


问:
Snowflake caching not working with Snowpark Python 1.0
Snowflake is caching already executed queries, such that subsequent executions of the same query will finish much faster. As far as I know, this only works if the query is exactely the same.

In my app (a interactive dashboard which uses Snowpark-Python 1.0 to fire snowflake queries), this caching does not seem to work. Each time the (same snowpark) query is fired, snowflake does run the query again:

Depending on whether the warehouse cache is active are not (blue vs green bar), the execution time is several 100ms up to 2s. The result is not read from the cache.

I think the cause is that the generated SQL does contain random components (column and table names suffixes) which are different for each query:

How can I make use of the snowflake cache using Snowpark-generated queries?


问:
Possible data pass vue component to blade template file in laravel 8 vue2
Possible data pass vue component to blade template file in laravel 8 vue2.

Meta tag change dynamically in main loaded blade file.


问:
How to avoid WORKER TIMEOUT in python?
I have written a consumer to read messages from kafka topics, in the python code I have written logic inside infinite loop to poll message from kafka topic at every second.

However, we are getting WORKER TIMEOUT issue and server get restarted frequently. Any fix for this type of error?

Title: How to avoid WORKER TIMEOUT in python?


问:
Permission Denied
I run catalina.sh stop via putty because I modify files in server but then when I command catalina.sh start then it give me.

/opt/tomcat/bin$ ./catalina.sh start
Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
touch: cannot touch '/opt/tomcat/logs/catalina.out': Permission denied
./catalina.sh: 504: cannot create /opt/tomcat/logs/catalina.out: Permission denied

I need answer to fix issues

Title: Permission Denied


问:
Error in files[[i]] : subscript out of bounds
It shows subscript out of bound and then error in tmp . How to resolve this

data <- list()
for (i in 1:length(files)) {
data[[i]] <- readRDS(files[[i]])
}
Error in files[[i]] : subscript out of bounds
names(data) <- names
for (i in 1:length(files)) {data[[i]][["sample"]] <- names[[i]]}
**Error in names[[i]] : subscript out of bounds
**> names(data) <- names
library(future)
plan("multicore", workers = 16)
options(future.globals.maxSize = 2000 * 1024^2)
library(ggplot2)
anchors <- FindIntegrationAnchors(object.list = data, dims = 1:20)
Computing 2000 integration features
Error in *tmp*[[ii]] :
attempt to select less than one element in integerOneIndex

I am running scRNASeq pipeline and got this error in the beginning steps


问:
jar created with gradle - Could not find or load main class
I have a project managed with gradle wrapper; this project generate a war file that will be run in wildfly.

Now i have to create an additional jar file, so i create a new task

```<code>task issue2266Jar(type: Jar, description: "crea issue2266.jar") {
    group 'flowManager'
    manifest {
        attributes 'Main-Class': 'it.gpi.flowmanager2.database.issue2266.RearrangeKey'
    }
    baseName = 'issue2266'
    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
    from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
    with jar
}
</code>```

that create jar, but when i run with

```<code>java -jar issue2266.jar
</code>```

i get the message "Could not find or load main class: it.gpi.flowmanager2.database.issue2266.RearrangeKey"

in the jar file the RearrangeKy.class exist and is in issue2266.jar\it\gpi\flowmanager2\database\issue2266\ folder

if i make the same things in a new project all work
can someone help ?

this is build.gradle

and this is manifest

```<code>Manifest-Version: 1.0
Main-Class: it.gpi.flowmanager2.database.issue2266.RearrangeKey
</code>```

Body:
I have a project managed with gradle wrapper; this project generate a war file that will be run in wildfly.

Now i have to create an additional jar file, so i create a new task

task issue2266Jar(type: Jar, description: "crea issue2266.jar") {
    group 'flowManager'
    manifest {
        attributes 'Main-Class': 'it.gpi.flowmanager2.database.issue2266.RearrangeKey'
    }
    baseName = 'issue2266'
    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
    from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
    with jar
}

that create jar, but when i run with

java -jar issue2266.jar

i get the message "Could not find or load main class: it.gpi.flowmanager2.database.issue2266.RearrangeKey"

in the jar file the RearrangeKy.class exist and is in issue2266.jar\it\gpi\flowmanager2\database\issue2266\ folder

if i make the same things in a new project all work
can someone help ?

this is build.gradle

and this is manifest

Manifest-Version: 1.0
Main-Class: it.gpi.flowmanager2.database.issue2266.RearrangeKey


问:
"Object is currently in use elsewhere", but where is it in use, and who is using it?
There are lots of answers describing WHY this error is occurring, but I can't find any that explain how to determine (a) which routine is failing, (b) which object are we talking about, and (c) which other bit of code is using the object at the moment that it is wanted. Normally we get a line-number at least, but for some reason this error wants to keep me guessing. Any ideas? (This is a large program with a number of threads running.)

```<code>    System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>MyLargeProgram.exe</AppDomain><Exception><ExceptionType>System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Object is currently in use elsewhere.</Message><StackTrace>   at System.Drawing.Image.get_Width()
       at System.Drawing.Image.get_Size()
       at System.Windows.Forms.PictureBox.ImageRectangleFromSizeMode(PictureBoxSizeMode mode)
       at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
       at System.Windows.Forms.Control.WmPaint(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</StackTrace><ExceptionString>System.InvalidOperationException: Object is currently in use elsewhere.
       at System.Drawing.Image.get_Width()
       at System.Drawing.Image.get_Size()
       at System.Windows.Forms.PictureBox.ImageRectangleFromSizeMode(PictureBoxSizeMode mode)
       at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
       at System.Windows.Forms.Control.WmPaint(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</ExceptionString></Exception></TraceRecord>
</code>```

The application creates a large image that is eventually show on a PictureBox. The final image is created in 4 stages from 4 other images by Threads that copy one of the existing images, make changes to it, then save it again to that image. There are flags to stop an image being accessed if it is in use elsewhere. The final Thread takes the 4th image, makes changes to it, then sets a Clone of the modified image as the PictureBox image.

```<code>    SyncLock bm
        PbWM.Image?.Dispose()
        PbWM.Image = CType(bm.Clone, Bitmap)
    End SyncLock
</code>```

I thought that I had used sufficent SyncLocks and flags, but perhaps not. I do not know why System.Transactions appear there. I am not importing that.

On the other matter of locking: this is the method I was using for replacing image content. Is there a better way to do it?

```<code>    ' The Thread enters with Bitmap bm1..

    ' I make a working copy of bm1
    Using bm0 As Bitmap = CType(bm1.Clone, Bitmap)
        Using gr As Graphics = Graphics.FromImage(bm)
            ' Some image drawing is done here
        End Using

        SyncLock bm
            ' Replace bm1 with the altered image
            bm1 = CType(bm0.Clone, Bitmap)
        End SyncLock
    End Using
</code>```

Perhaps this is the best way?

```<code>    ' The Thread enters with Bitmap bm1..

    ' I make a working copy of bm1
    Using bm0 As Bitmap = CType(bm1.Clone, Bitmap)
        Using gr As Graphics = Graphics.FromImage(bm)
            ' Some image drawing is done here
        End Using

        Dim thisLock As New Object
        SyncLock thisLock
            ' Replace bm1 with the altered image
            bm1 = CType(bm0.Clone, Bitmap)
        End SyncLock
    End Using
</code>```

or this?

```<code>    ' The Thread enters with Bitmap bm1..

    ' I make a working copy of bm1
    Using bm0 As Bitmap = CType(bm1.Clone, Bitmap)
        Using gr As Graphics = Graphics.FromImage(bm)
            ' Some image drawing is done here
        End Using

        Dim thisLock As New Object
        SyncLock thisLock
            ' Replace bm1 with the altered image
            bm1 = New Bitmap(bm0)
        End SyncLock
    End Using
</code>```

Body:
There are lots of answers describing WHY this error is occurring, but I can't find any that explain how to determine (a) which routine is failing, (b) which object are we talking about, and (c) which other bit of code is using the object at the moment that it is wanted. Normally we get a line-number at least, but for some reason this error wants to keep me guessing. Any ideas? (This is a large program with a number of threads running.)

    System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>MyLargeProgram.exe</AppDomain><Exception><ExceptionType>System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Object is currently in use elsewhere.</Message><StackTrace>   at System.Drawing.Image.get_Width()
       at System.Drawing.Image.get_Size()
       at System.Windows.Forms.PictureBox.ImageRectangleFromSizeMode(PictureBoxSizeMode mode)
       at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
       at System.Windows.Forms.Control.WmPaint(Message&amp; m)
       at System.Windows.Forms.Control.WndProc(Message&amp; m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</StackTrace><ExceptionString>System.InvalidOperationException: Object is currently in use elsewhere.
       at System.Drawing.Image.get_Width()
       at System.Drawing.Image.get_Size()
       at System.Windows.Forms.PictureBox.ImageRectangleFromSizeMode(PictureBoxSizeMode mode)
       at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
       at System.Windows.Forms.Control.WmPaint(Message&amp; m)
       at System.Windows.Forms.Control.WndProc(Message&amp; m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</ExceptionString></Exception></TraceRecord>

The application creates a large image that is eventually show on a PictureBox. The final image is created in 4 stages from 4 other images by Threads that copy one of the existing images, make changes to it, then save it again to that image. There are flags to stop an image being accessed if it is in use elsewhere. The final Thread takes the 4th image, makes changes to it, then sets a Clone of the modified image as the PictureBox image.

    SyncLock bm
        PbWM.Image?.Dispose()
        PbWM.Image = CType(bm.Clone, Bitmap)
    End SyncLock

I thought that I had used sufficent SyncLocks and flags, but perhaps not. I do not know why System.Transactions appear there. I am not importing that.

On the other matter of locking: this is the method I was using for replacing image content. Is there a better way to do it?

    ' The Thread enters with Bitmap bm1..

    ' I make a working copy of bm1
    Using bm0 As Bitmap = CType(bm1.Clone, Bitmap)
        Using gr As Graphics = Graphics.FromImage(bm)
            ' Some image drawing is done here
        End Using

        SyncLock bm
            ' Replace bm1 with the altered image
            bm1 = CType(bm0.Clone, Bitmap)
        End SyncLock
    End Using

Perhaps this is the best way?

    ' The Thread enters with Bitmap bm1..

    ' I make a working copy of bm1
    Using bm0 As Bitmap = CType(bm1.Clone, Bitmap)
        Using gr As Graphics = Graphics.FromImage(bm)
            ' Some image drawing is done here
        End Using

        Dim thisLock As New Object
        SyncLock thisLock
            ' Replace bm1 with the altered image
            bm1 = CType(bm0.Clone, Bitmap)
        End SyncLock
    End Using

or this?

    ' The Thread enters with Bitmap bm1..

    ' I make a working copy of bm1
    Using bm0 As Bitmap = CType(bm1.Clone, Bitmap)
        Using gr As Graphics = Graphics.FromImage(bm)
            ' Some image drawing is done here
        End Using

        Dim thisLock As New Object
        SyncLock thisLock
            ' Replace bm1 with the altered image
            bm1 = New Bitmap(bm0)
        End SyncLock
    End Using


问:
How to execute class on generic type in java
I have an example generic method. How to execute class keyword on generic type T like below?

```<code>import java.util.Arrays;
public class BaseTag {
    public <T> T getW() {
        String[] arr = {"A", "B", "C"};
        return Arrays.stream(arr)
                // .filter(arg -> T.class.isAssignableFrom(arg.getClass()))     // another example
                .map(T.class::cast)
                .findFirst()
                .orElse(null);
    }
}
</code>```

Body:
I have an example generic method. How to execute class keyword on generic type T like below?

import java.util.Arrays;
public class BaseTag {
    public <T> T getW() {
        String[] arr = {"A", "B", "C"};
        return Arrays.stream(arr)
                // .filter(arg -> T.class.isAssignableFrom(arg.getClass()))     // another example
                .map(T.class::cast)
                .findFirst()
                .orElse(null);
    }
}


问:
python : a list contains name of variables. How to use this list to delete those listed variables?
What I want to do:

After having declared some variables, a list of the names of those variable is defined. Then, I would like to delete the variables using their names contained in the list.

Here is a simple reproducible example :

```<code># variables are defined
variable_a = "first elt"
variable_b = "second elt"

# for some reasons, a list of variable names is defined and filled
list_of_variables_names = ['variable_a', 'variable_b']

# then variables are to be deleted
# using the list of variable names
</code>```

What I tried, which obviously, does not work

```<code>for variable in list_of_variables_names:
   del variable
</code>```

The above code does not delete variables, because elements of the list are name of variables (strings inside '').

Body:
What I want to do:

After having declared some variables, a list of the names of those variable is defined. Then, I would like to delete the variables using their names contained in the list.

Here is a simple reproducible example :

# variables are defined
variable_a = "first elt"
variable_b = "second elt"

# for some reasons, a list of variable names is defined and filled
list_of_variables_names = ['variable_a', 'variable_b']

# then variables are to be deleted
# using the list of variable names

What I tried, which obviously, does not work

for variable in list_of_variables_names:
   del variable

The above code does not delete variables, because elements of the list are name of variables (strings inside '').


问:
How to hide IPX error message in nuxt3 project with nuxt/image
In my nuxt3 project with nuxt/image

When i go to for example:

```<code>http://my.site/_ipx/f_webp,s_140x85/img/Something/wrong_path.jpg
</code>```

I will 404 status code and IPX error massage:

IPX Error: Error: File not found
(/my/very/secret/path/.output/public/img/Something/wrong_path.jpg)

I can't redirect this page with tools nuxt3 or vue.

What can I do to hide this information from potential attackers?

Body:
In my nuxt3 project with nuxt/image

When i go to for example:

http://my.site/_ipx/f_webp,s_140x85/img/Something/wrong_path.jpg

I will 404 status code and IPX error massage:

IPX Error: Error: File not found
(/my/very/secret/path/.output/public/img/Something/wrong_path.jpg)

I can't redirect this page with tools nuxt3 or vue.

What can I do to hide this information from potential attackers?


问:
Spring security oauth2 client in kubernetes environment
I've a requirement where I need to write an oauth2 client using spring security which is to be deployed in a kubernetes cluster. There can be a scenario where the same client is going to be deployed in a multicluster set up also.

I see documentations online where we can use spring security to write an oauth2 client. But how can we make it work in multiple pods or multipleclusters simultaneously. If one of the pod obtains an access token, how can we persist across multiple pods and clusters. I went through the documentations and I see InMemoryOAuth2AuthorizedClientService which will not be suitable when we're considering a deployment like this.

Is there any way we can write an oauth2 client with spring security, where it can be deployed in multiple pods or clusters, still gets the access token only once until it expires ? By using some kind of persistence in between these pods.

Any help is appreciated.


问:
Exception in thread "main" org.openqa.selenium.UnsupportedCommandException: {"value":{"error":"unknown method","message":"Method is not implemented",
Below script to click on register button, But showing above error

```<code>JavascriptExecutor Reg = (JavascriptExecutor)driver;
WebElement Register = driver.findElement(By.xpath("//android.widget.Button[@content-desc=\"Register here\"]"));
Reg.executeScript("arguments[0].click()", Register);
</code>```

I need help on this on this script I have written getting error Exception in thread "main" org.openqa.selenium.UnsupportedCommandException: {"value":{"error":"unknown method","message":"Method is not implemented","stacktrace":"NotImplementedError: Method is not implemented\n    at AndroidUiautomator2Driver.execute

Body:
Below script to click on register button, But showing above error

JavascriptExecutor Reg = (JavascriptExecutor)driver;
WebElement Register = driver.findElement(By.xpath("//android.widget.Button[@content-desc=\"Register here\"]"));
Reg.executeScript("arguments[0].click()", Register);

I need help on this on this script I have written getting error Exception in thread "main" org.openqa.selenium.UnsupportedCommandException: {"value":{"error":"unknown method","message":"Method is not implemented","stacktrace":"NotImplementedError: Method is not implemented\n    at AndroidUiautomator2Driver.execute


问:
Linux on Python on t2 EC2 stalling
I have an issue with Linux stalling at, I guess, any longer moderately resource consuming process like downloading a larger .whl file or installing a larger C++ dependent package (detectron2 in one specific case).
I've tried updating pip, reinstalling some of the requirements, going around with installing via local .whl file but at some point I am bound to get to a spot where I encounter a stall again.

Example, download just stays at this point:

Title: Linux on Python on t2 EC2 stalling


问:
googlechat api get membership join event with Pubsub
I'm currently trying to build a python google chat bot using pubsub.

I would like the bot to react to a user being added to the space, but it seem that googlechat do not push any membership event to pubsub.
I know I correctly setup my endpoint as I receive the message event when a user directly mention the bot, but that all.

is it possible to receive such event ? I'm using the pubsub connection because the server is behind a firewall and cannot receive REST call.


问:
Java package encapsulation in a "ports and adapters" approach (Simon Brown chapter in the "clean architecture" book, by Uncle Bob)
I found very interesting the chapter written by Simon Brown in the book "clean architecture" by Uncle Bob. However, there is a point that is not totally clear for me.

Several architecures are discussed, and one of them is the "ports and adapters" approach. It is illustrated on an example dealing with book ordering. In this approach, classes are grouped into 3 packages representing the controller, the use case and the database.

More precisely, the class diagram is the following: OrdersController class (web package) uses the interface OrdersService (domain package). This interface is implmented by the OrdersServiceImpl (domain package), which uses the Orders interface (domain package). The Orders interface is implemented by the JdbcOrdersREpository class in the database package.

To avoid "bad" dependencies, only specific classes are public in those packages. As a result, the database package only has one class (JdbcOrdersREpository) which is not public (figure 34.8 for those who have the book).

How is it possible ? If the JdbcOrdersRepository class is not public, it means it cannot be used outside the package. However, if my understanding of the book is good, it should be used somewhere in the Main component.

Thank you for your help.

I tried to look at Java access modifiers for classes. I was expecting to find a way to use protected/private class outside a package (for exmaple in a Main method).