ThomasGerstenberg / blatann

Python BLE library for using Nordic nRF52 with Connectivity firmware
BSD 3-Clause "New" or "Revised" License
72 stars 21 forks source link

Conflicting Dependencies on Install #150

Closed HVIEH closed 1 year ago

HVIEH commented 1 year ago

Apologies if this is a trivial issue, but when I try to install the package with "pip install blatann" I receive this: ERROR: Cannot install blatann==0.3.0, blatann==0.3.1, blatann==0.3.2, blatann==0.3.3, blatann==0.3.4, blatann==0.3.5, blatann==0.3.6, blatann==0.4.0 and blatann==0.5.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    blatann 0.5.0 depends on pc-ble-driver-py>=0.13
    blatann 0.4.0 depends on pc-ble-driver-py>=0.13
    blatann 0.3.6 depends on pc-ble-driver-py>=0.13
    blatann 0.3.5 depends on pc-ble-driver-py>=0.13
    blatann 0.3.4 depends on pc-ble-driver-py>=0.13
    blatann 0.3.3 depends on pc-ble-driver-py>=0.13
    blatann 0.3.2 depends on pc-ble-driver-py>=0.13
    blatann 0.3.1 depends on pc-ble-driver-py>=0.13
    blatann 0.3.0 depends on pc-ble-driver-py>=0.13

Are they not all depending on the same versions here? Do I need to specify the version of blatann? When I try "pip install blatann "package == 0.5.0" I get: ERROR: Cannot install blatann==0.3.0, blatann==0.3.1, blatann==0.3.2, blatann==0.3.3, blatann==0.3.4, blatann==0.3.5, blatann==0.3.6, blatann==0.4.0 and blatann==0.5.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    blatann 0.5.0 depends on pc-ble-driver-py>=0.13
    blatann 0.4.0 depends on pc-ble-driver-py>=0.13
    blatann 0.3.6 depends on pc-ble-driver-py>=0.13
    blatann 0.3.5 depends on pc-ble-driver-py>=0.13
    blatann 0.3.4 depends on pc-ble-driver-py>=0.13
    blatann 0.3.3 depends on pc-ble-driver-py>=0.13
    blatann 0.3.2 depends on pc-ble-driver-py>=0.13
    blatann 0.3.1 depends on pc-ble-driver-py>=0.13
    blatann 0.3.0 depends on pc-ble-driver-py>=0.13

Appreicate any input, thank you.

ThomasGerstenberg commented 1 year ago

It could be because you have an older version of pc-ble-driver-py installed, you can check with pip list. If it's < 0.13, run pip install -U pc-ble-driver-py to upgrade to the latest then pip install blatann

HVIEH commented 1 year ago

Ah I thought I had the most up to date version of that package but I only have 11.4. For some reason I can only install versions up to 11.4 in PyCharm even though it lists them up to .17. Thank you for your reply.

ThomasGerstenberg commented 1 year ago

PyCharm may think that you're using Python2.7, iirc 11.4 is the latest supported for Py2.7. Double-check your pycharm settings to make sure it's using the right interpreter

HVIEH commented 1 year ago

It has to be somehow related to the python version I think, but I only have python3 on my computer and pycharm is using it. I tried "python3 -m install pc-ble-driver-py>=0.13" and got this:

image

Not really sure what to do with that.

HVIEH commented 1 year ago

I solved this by installing python 3.10.11. I started with 3.12, tried 3.11 and was getting the issue on both of those. Going to 3.10 seems to have fixed it. There might be more to it than this because I thought I had tried using python 3.9 as well but any way it's resolved.