AsciiArtist icon indicating copy to clipboard operation
AsciiArtist copied to clipboard

Install conflit

Open hxm-cpp opened this issue 3 years ago • 8 comments

Hello,

thanx for the cool project, but i came across this error :

image

hxm-cpp avatar Mar 29 '23 16:03 hxm-cpp

Could you send the command that led to that output, and the output of the command pip list?

JuliaPoo avatar Mar 30 '23 00:03 JuliaPoo

C:\Users\AsciiArtist\>pip3 install asciiartist
Collecting asciiartist
  Using cached asciiartist-0.5.3-py3-none-any.whl (3.6 MB)
Collecting matplotlib
  Using cached matplotlib-3.7.1-cp311-cp311-win_amd64.whl (7.6 MB)
Collecting scikit-image
  Using cached scikit_image-0.20.0-cp311-cp311-win_amd64.whl (23.7 MB)
Collecting asciiartist
  Using cached asciiartist-0.5.2-py3-none-any.whl (3.6 MB)
ERROR: Cannot install asciiartist==0.5.2 and asciiartist==0.5.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    asciiartist 0.5.3 depends on tflite-runtime
    asciiartist 0.5.2 depends on tflite-runtime

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

C:\Users\AsciiArtist>pip list
Package                      Version
---------------------------- ---------
absl-py                      1.4.0
astunparse                   1.6.3
cachetools                   5.3.0
certifi                      2022.12.7
cffi                         1.15.1
charset-normalizer           3.0.1
colorama                     0.4.6
flatbuffers                  23.3.3
gast                         0.4.0
gevent                       22.10.2
gevent-eventemitter          2.1
google-auth                  2.17.0
google-auth-oauthlib         0.4.6
google-pasta                 0.2.0
greenlet                     2.0.2
grpcio                       1.53.0
h5py                         3.8.0
idna                         3.4
jax                          0.4.7
joblib                       1.2.0
keras                        2.12.0
libclang                     16.0.0
Markdown                     3.4.3
MarkupSafe                   2.1.2
ml-dtypes                    0.0.4
mpmath                       1.2.1
numpy                        1.23.5
oauthlib                     3.2.2
opt-einsum                   3.3.0
packaging                    23.0
pandas                       1.5.3
Pillow                       9.4.0
pip                          23.0.1
protobuf                     3.20.3
pyasn1                       0.4.8
pyasn1-modules               0.2.8
pycparser                    2.21
pycryptodomex                3.17
python-dateutil              2.8.2
pytz                         2022.7.1
requests                     2.28.2
requests-oauthlib            1.3.1
rsa                          4.9
scikit-learn                 1.2.2
scipy                        1.10.1
setuptools                   65.5.0
six                          1.16.0
steam                        1.4.4
sympy                        1.11.1
tensorboard                  2.12.0
tensorboard-data-server      0.7.0
tensorboard-plugin-wit       1.8.1
tensorflow                   2.12.0
tensorflow-estimator         2.12.0
tensorflow-intel             2.12.0
tensorflow-io-gcs-filesystem 0.31.0
termcolor                    2.2.0
threadpoolctl                3.1.0
tqdm                         4.64.1
typing_extensions            4.5.0
urllib3                      1.26.14
vdf                          3.4
Werkzeug                     2.2.3
wheel                        0.40.0
wrapt                        1.14.1
zope.event                   4.6
zope.interface               5.5.2

hxm-cpp avatar Mar 30 '23 10:03 hxm-cpp

i assume the problem is due to the fact that tflite-runtime only exists on Linux.

hxm-cpp avatar Mar 30 '23 10:03 hxm-cpp

Maybe if you can make a PR with the whole TensorFlow module instead of the Lite one it would be really cool.

hxm-cpp avatar Mar 30 '23 10:03 hxm-cpp

The issue seems to be that you're using a python version that's incompatible with tflite-runtime (which has to be Python 3.7, 3.8 or 3.9). I had previously expected google to update tflite-runtime for later python versions. I actually develop on windows and pypi contains both linux and windows versions of asciiartist.

I'll be updating the repository to explicitly require these python versions, and won't be using the whole TensorFlow module due to the extreme bloat that would bring to using this very tiny package.

JuliaPoo avatar Mar 30 '23 11:03 JuliaPoo

this is no correct, i downgraded from python 3.11 to 3.9 : image https://discuss.tensorflow.org/t/how-to-install-tflite-runtime-in-windows-machine/11427

hxm-cpp avatar Mar 30 '23 16:03 hxm-cpp

Oh huh that's annoying, tflite-runtime has missing binaries just whatever. I'll fix this when I have more free time but for now you can use python 3.8 which I know for sure works.

JuliaPoo avatar Mar 30 '23 16:03 JuliaPoo