albertogeniola / MerossIot

Async Python library for controlling Meross devices
https://albertogeniola.github.io/MerossIot/
MIT License
476 stars 88 forks source link

No matching distribution found for meross_iot==0.3.4.0 error trying to install on Pi #104

Closed soxfan1966 closed 4 years ago

soxfan1966 commented 4 years ago

Good morning,

I recently purchased a Meross MS100 temp and humidity sensor and I am looking to try and get readings from it. I found this library and am trying to install it on my raspberry pi, but I get the error: No matching distribution found for meross_iot==0.3.4.0

I have tried: pip install meross_iot==0.3.4.0 --upgrade pip install meross_iot pip install meross_iot==0.4.0.0rc1

all with no luck. I am running Python version 3.7

Any assistance would be most appreciated.

soxfan1966 commented 4 years ago

After looking into it some more, I discovered that pip was still version 2.7 and I had pythion (version 2.7) and python3 (version 3.7) installed.

II did not have pip3. I installed that and then tried: pip3 install meross_iot

And that appears to have worked.

soxfan1966 commented 4 years ago

I ended up installing pip3 on my pi and then using that to install the package itself - pip3 install meross_iot.

Which worked and I could run the sniffer on my pi with no issues. However, I use HomeGenie and I was trying to integrate the python script into that and was not successful - I think it is a compatibility issue between the version of python that HG is using for their Programs/Widgets and what the meross utility needed.

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Jul 7, 2020 at 6:18 AM Simone Starace notifications@github.com wrote:

@soxfan1966 https://github.com/soxfan1966 Hi did you try to install the version 0.4.0.0? I tried using pip3 but it seems that the version 0.4.0.0 isn't available on the PyPI.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/albertogeniola/MerossIot/issues/104#issuecomment-654753310, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALWOBLBPWYFWU27WBFEFOSLR2LZABANCNFSM4NSQFH2Q .

SimoneStarace commented 4 years ago

I ended up installing pip3 on my pi and then using that to install the package itself - pip3 install meross_iot. Which worked and I could run the sniffer on my pi with no issues. However, I use HomeGenie and I was trying to integrate the python script into that and was not successful - I think it is a compatibility issue between the version of python that HG is using for their Programs/Widgets and what the meross utility needed. https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Tue, Jul 7, 2020 at 6:18 AM Simone Starace @.***> wrote: @soxfan1966 https://github.com/soxfan1966 Hi did you try to install the version 0.4.0.0? I tried using pip3 but it seems that the version 0.4.0.0 isn't available on the PyPI. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#104 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALWOBLBPWYFWU27WBFEFOSLR2LZABANCNFSM4NSQFH2Q .

Hi thanks for answering my question. I don't know what the devs have changed but things are different it seems. Now the meross-iot works with Python 3.7+ and I tried to install it using the following command:

python3.7 -m pip install meross-iot==0.4.0.0rc16 --upgrade

and the result isn't good because every time I try to install I get the following error:

Running setup.py install for brotlipy ... error

include

^~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Command "/usr/bin/python3.7 -u -c "import setuptools, tokenize;file='/tmp/pip-build-j4j1eogc/brotlipy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-39p_6nf6-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-j4j1eogc/brotlipy/

It seems that the pyconfig.h doesn't exist and that's why I get this error.

EDIT: Maybe I solved the problem. I forgot to install the Python3.7-dev package and after this I was able to install it.