Python version issue
bachar-senno opened this issue · 6 comments
I'm trying to install this library with my Anaconda environment (followed the Anaconda guide on generating a compatible package from the pypi build).
All goes fine, until I reach the very last step, where I get the following error:
Specifications:
- json-logging -> python[version='>=3.8,<3.9.0a0']
Your python: python=3.9.7
Are there any plans on making this library compatible with this version (or newer) of python?
Thanks!!
hmm, this is odd. This library have no python dependency requirement. it pretty much work with any Python 2.7+ and Python 3. Can you provide more data to reproduce this issue
Okay so I'm using Anaconda to manage different python environments. I followed their instructions for how to install Pip libraries without causing conflicts/interference. Basically I ran the following set of commands:
conda skeleton pypi json-logging
conda-build json-logging
This generates an Anaconda-compatible .tar.bz2 package, which I can then either install locally, or upload to Anaconda online manager using this set of commands
conda install anaconda-client
anaconda login
anaconda upload *Path*\json-logging-1.4.1rc0-py38_0.tar.bz2
Everything went fine and I was able to upload it successfully. However, when I try to install it, I get the error message shown above.
This is the full log of the installation command:
(CSALayoutLM) C:\Users\sennob>conda install -c bachar.senno json-logging
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- json-logging -> python[version='>=3.8,<3.9.0a0']
Your python: python=3.9.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
These are the packages already installed in the environment:
(CSALayoutLM) C:\Users\sennob>conda list
# packages in environment at C:\Users\sennob\.conda\envs\CSALayoutLM:
#
# Name Version Build Channel
abseil-cpp 20210324.2 h0e60522_0 conda-forge
absl-py 1.0.0 pyhd8ed1ab_0 conda-forge
aiohttp 3.8.1 py39hb82d6ee_0 conda-forge
aiosignal 1.2.0 pyhd8ed1ab_0 conda-forge
alembic 1.7.5 pyhd8ed1ab_0 conda-forge
anaconda-client 1.9.0 py39haa95532_0
arrow-cpp 6.0.0 py39h47609a0_3_cpu conda-forge
async-timeout 4.0.2 pyhd8ed1ab_0 conda-forge
attrs 21.2.0 pyhd8ed1ab_0 conda-forge
autopage 0.4.0 pyhd8ed1ab_0 conda-forge
aws-c-auth 0.6.4 hd061354_3 conda-forge
aws-c-cal 0.5.12 h395cb70_2 conda-forge
aws-c-common 0.6.11 h8ffe710_0 conda-forge
aws-c-compression 0.2.14 h82db3a7_2 conda-forge
aws-c-event-stream 0.2.7 he02faa2_24 conda-forge
aws-c-http 0.6.6 h77bbe4a_1 conda-forge
aws-c-io 0.10.9 h3a8db39_3 conda-forge
aws-c-mqtt 0.7.8 h2f34d13_2 conda-forge
aws-c-s3 0.1.27 habe44f2_1 conda-forge
aws-checksums 0.1.12 h82db3a7_1 conda-forge
aws-crt-cpp 0.17.1 haf3871f_3 conda-forge
aws-sdk-cpp 1.9.120 h37b9141_0 conda-forge
backports 1.0 py_2 anaconda
backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge
blas 1.0 mkl anaconda
blinker 1.4 py_1 conda-forge
brotli 1.0.9 ha925a31_2 anaconda
brotli-bin 1.0.9 h8ffe710_6 conda-forge
brotlipy 0.7.0 py39hb82d6ee_1003 conda-forge
bzip2 1.0.8 he774522_0 anaconda
c-ares 1.18.1 h8ffe710_0 conda-forge
ca-certificates 2021.10.26 haa95532_4
cachetools 4.2.4 pyhd8ed1ab_0 conda-forge
certifi 2021.10.8 py39haa95532_2
cffi 1.15.0 py39h0878f49_0 conda-forge
charset-normalizer 2.0.9 pyhd8ed1ab_0 conda-forge
click 8.0.3 py39hcbf5309_1 conda-forge
cliff 3.10.0 pyhd8ed1ab_0 conda-forge
clyent 1.2.2 py39haa95532_1
cmaes 0.8.2 pyh44b312d_0 conda-forge
cmd2 2.3.3 py39hcbf5309_1 conda-forge
colorama 0.4.4 py_0 anaconda
colorlog 6.6.0 py39hcbf5309_0 conda-forge
cryptography 36.0.1 py39h7bc7c5c_0 conda-forge
cudatoolkit 11.3.1 h280eb24_9 conda-forge
cycler 0.11.0 pyhd8ed1ab_0 conda-forge
dataclasses 0.8 pyhc8e2a94_3 conda-forge
datasets 1.17.0 pyhd8ed1ab_0 conda-forge
dill 0.3.4 pyhd8ed1ab_0 conda-forge
filelock 3.4.0 pyhd8ed1ab_0 conda-forge
flask 2.0.2 pyhd8ed1ab_0 conda-forge
fonttools 4.28.5 py39hb82d6ee_0 conda-forge
freetype 2.10.4 hd328e21_0 anaconda
frozenlist 1.2.0 py39hb82d6ee_1 conda-forge
fsspec 2021.11.1 pyhd8ed1ab_0 conda-forge
gflags 2.2.2 ha925a31_0 anaconda
glog 0.5.0 h4797de2_0 conda-forge
google-auth 2.3.3 pyh6c4a22f_0 conda-forge
google-auth-oauthlib 0.4.6 pyhd8ed1ab_0 conda-forge
greenlet 1.1.2 py39h415ef7b_1 conda-forge
grpc-cpp 1.41.1 ha2fd154_2 conda-forge
grpcio 1.43.0 py39hb76b349_0 conda-forge
huggingface_hub 0.2.1 pyhd8ed1ab_0 conda-forge
icu 68.2 h0e60522_0 conda-forge
idna 3.1 pyhd3deb0d_0 conda-forge
importlib-metadata 4.10.0 py39hcbf5309_0 conda-forge
importlib_metadata 4.10.0 hd8ed1ab_0 conda-forge
importlib_resources 5.4.0 pyhd8ed1ab_0 conda-forge
intel-openmp 2021.4.0 h57928b3_3556 conda-forge
ipython_genutils 0.2.0 pyhd3eb1b0_1
itsdangerous 2.0.1 pyhd8ed1ab_0 conda-forge
jbig 2.1 h8d14728_2003 conda-forge
jinja2 3.0.2 pyhd8ed1ab_0 conda-forge
joblib 1.1.0 pyhd8ed1ab_0 conda-forge
jpeg 9d h8ffe710_0 conda-forge
jsonschema 3.2.0 pyhd3eb1b0_2
jupyter_core 4.9.1 py39haa95532_0
kiwisolver 1.3.2 py39h2e07f2f_1 conda-forge
krb5 1.19.2 h20d022d_3 conda-forge
lcms2 2.12 h2a16943_0 conda-forge
lerc 3.0 h0e60522_0 conda-forge
libblas 3.9.0 12_win64_mkl conda-forge
libbrotlicommon 1.0.9 h8ffe710_6 conda-forge
libbrotlidec 1.0.9 h8ffe710_6 conda-forge
libbrotlienc 1.0.9 h8ffe710_6 conda-forge
libcblas 3.9.0 12_win64_mkl conda-forge
libclang 11.1.0 default_h5c34c98_1 conda-forge
libcurl 7.80.0 h789b8ee_1 conda-forge
libdeflate 1.8 h8ffe710_0 conda-forge
liblapack 3.9.0 12_win64_mkl conda-forge
libpng 1.6.37 h2a8f88b_0 anaconda
libprotobuf 3.18.1 h7755175_0 conda-forge
libssh2 1.10.0 h680486a_2 conda-forge
libthrift 0.15.0 h636ae23_1 conda-forge
libtiff 4.3.0 hd413186_2 conda-forge
libutf8proc 2.7.0 hcb41399_0 conda-forge
libuv 1.40.0 he774522_0 anaconda
libzlib 1.2.11 h8ffe710_1013 conda-forge
lz4-c 1.9.3 h8ffe710_1 conda-forge
m2-msys2-runtime 2.5.0.17080.65c939c 3 msys2
m2-patch 2.7.5 2 msys2
m2w64-gcc-libgfortran 5.3.0 6 conda-forge
m2w64-gcc-libs 5.3.0 7 conda-forge
m2w64-gcc-libs-core 5.3.0 7 conda-forge
m2w64-gmp 6.1.0 2 conda-forge
m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge
mako 1.1.6 pyhd8ed1ab_0 conda-forge
markdown 3.3.6 pyhd8ed1ab_0 conda-forge
markupsafe 2.0.1 py39hb82d6ee_1 conda-forge
matplotlib 3.5.1 py39hcbf5309_0 conda-forge
matplotlib-base 3.5.1 py39h581301d_0 conda-forge
mkl 2021.4.0 h0e2418a_729 conda-forge
msys2-conda-epoch 20160418 1 conda-forge
multidict 5.2.0 py39hb82d6ee_1 conda-forge
multiprocess 0.70.12.2 py39hb82d6ee_1 conda-forge
munkres 1.1.4 py_0 anaconda
nbformat 5.1.3 pyhd3eb1b0_0
numpy 1.21.5 py39h6331f09_0 conda-forge
oauthlib 3.1.1 pyhd8ed1ab_0 conda-forge
olefile 0.46 py_0 anaconda
openjpeg 2.4.0 hb211442_1 conda-forge
openssl 1.1.1m h2bbff1b_0
optuna 2.10.0 pyhd8ed1ab_0 conda-forge
packaging 21.3 pyhd8ed1ab_0 conda-forge
pandas 1.3.5 py39h2e25243_0 conda-forge
parquet-cpp 1.5.1 2 conda-forge
pbr 5.8.0 pyhd8ed1ab_1 conda-forge
pillow 8.4.0 py39h916092e_0 conda-forge
pip 21.2.4 pyhd8ed1ab_0 conda-forge
plotly 5.5.0 py_0 plotly
prettytable 2.5.0 pyhd8ed1ab_0 conda-forge
protobuf 3.18.1 py39h415ef7b_0 conda-forge
pyarrow 6.0.0 py39ha05331a_3_cpu conda-forge
pyasn1 0.4.8 py_0 anaconda
pyasn1-modules 0.2.7 py_0 anaconda
pycparser 2.21 pyhd8ed1ab_0 conda-forge
pyjwt 2.3.0 pyhd8ed1ab_1 conda-forge
pyopenssl 21.0.0 pyhd8ed1ab_0 conda-forge
pyparsing 3.0.6 pyhd8ed1ab_0 conda-forge
pyperclip 1.8.2 pyhd8ed1ab_2 conda-forge
pyqt 5.12.3 py39hcbf5309_8 conda-forge
pyqt-impl 5.12.3 py39h415ef7b_8 conda-forge
pyqt5-sip 4.19.18 py39h415ef7b_8 conda-forge
pyqtchart 5.12 py39h415ef7b_8 conda-forge
pyqtwebengine 5.12.1 py39h415ef7b_8 conda-forge
pyreadline3 3.3 py39hcbf5309_2 conda-forge
pyrsistent 0.18.0 py39h196d8e1_0
pysocks 1.7.1 py39hcbf5309_4 conda-forge
python 3.9.7 h7840368_3_cpython conda-forge
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python-xxhash 2.0.2 py39hb82d6ee_1 conda-forge
python_abi 3.9 2_cp39 conda-forge
pytorch 1.10.1 py3.9_cuda11.3_cudnn8_0 pytorch
pytorch-mutex 1.0 cuda pytorch
pytz 2021.3 pyhd8ed1ab_0 conda-forge
pyu2f 0.1.5 pyhd8ed1ab_0 conda-forge
pywin32 302 py39h827c3e9_1
pyyaml 6.0 py39hb82d6ee_3 conda-forge
qt 5.12.9 h5909a2a_4 conda-forge
re2 2021.11.01 h0e60522_0 conda-forge
regex 2021.11.10 py39hb82d6ee_0 conda-forge
requests 2.26.0 pyhd8ed1ab_1 conda-forge
requests-oauthlib 1.3.0 py_0 anaconda
rsa 4.8 pyhd8ed1ab_0 conda-forge
sacremoses 0.0.46 pyhd8ed1ab_0 conda-forge
scikit-learn 1.0.1 py39he931e04_3 conda-forge
scipy 1.7.3 py39hc0c34ad_0 conda-forge
seaborn 0.11.0 py_0 anaconda
sentencepiece 0.1.95 py39h2e07f2f_1 conda-forge
seqeval 1.2.2 pyhd3deb0d_0 conda-forge
setuptools 58.0.4 py39hcbf5309_2 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
snappy 1.1.8 h33f27b4_0 anaconda
sqlalchemy 1.4.28 py39hb82d6ee_0 conda-forge
sqlite 3.36.0 h8ffe710_2 conda-forge
stevedore 3.5.0 py39hcbf5309_2 conda-forge
tbb 2021.4.0 h2d74725_1 conda-forge
tenacity 8.0.1 pyhd8ed1ab_0 conda-forge
tensorboard 2.7.0 pyhd8ed1ab_0 conda-forge
tensorboard-data-server 0.6.0 py39hcbf5309_1 conda-forge
tensorboard-plugin-wit 1.8.0 pyh44b312d_0 conda-forge
tensorboardx 2.4 pyhd8ed1ab_0 conda-forge
threadpoolctl 3.0.0 pyh8a188c0_0 conda-forge
tk 8.6.11 h8ffe710_1 conda-forge
tokenizers 0.10.3 py39h8c9392a_1 conda-forge
tornado 6.1 py39hb82d6ee_2 conda-forge
tqdm 4.62.3 pyhd8ed1ab_0 conda-forge
traitlets 5.1.1 pyhd3eb1b0_0
transformers 4.6.1 pyhd8ed1ab_0 conda-forge
typing-extensions 4.0.1 hd8ed1ab_0 conda-forge
typing_extensions 4.0.1 pyha770c72_0 conda-forge
tzdata 2021e he74cb21_0 conda-forge
urllib3 1.26.7 pyhd8ed1ab_0 conda-forge
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
wcwidth 0.2.5 py_0 anaconda
werkzeug 2.0.2 pyhd3eb1b0_0
wfastcgi 3.0.0 py39hcbf5309_4 conda-forge
wheel 0.37.0 pyhd8ed1ab_1 conda-forge
win_inet_pton 1.1.0 py39hcbf5309_3 conda-forge
wincertstore 0.2 py39hcbf5309_1007 conda-forge
xxhash 0.8.0 h8ffe710_3 conda-forge
xz 5.2.5 h62dcd97_0 anaconda
yaml 0.2.5 he774522_0 anaconda
yarl 1.7.2 py39hb82d6ee_1 conda-forge
zipp 3.6.0 pyhd8ed1ab_0 conda-forge
zlib 1.2.11 h8ffe710_1013 conda-forge
zstd 1.5.0 h6255e5f_0 conda-forge
It might be worth mentioning that I tried installing the json-logging library in another anaconda environment running python 3.8.12 and it went fine.
Another note: I took the conda environment where it was working (3.8.12). There are barely any packages installed there.
I did the following:
- Uninstall json-logging
- Update python to newest version (3.10.2)
- Reinstall json-logging
It failed. Same error as above:
Specifications:
- json-logging -> python[version='>=3.8,<3.9.0a0']
Your python: python=3.10.2
@bobbui Do you think this is something that can be addressed with an update? (and if yes, would you have an estimated time for it by any chance?)
sorry has been really busy with family, the error still happening for you?
closed as no feedback from author