Closed Meganetpr closed 1 year ago
yes it does what install command are you using (there are many ways to install) what version of python is installed?
Ubuntu 22.04.1 on AMD E-350 mini pc Python version Python 3.10.6 command sudo pip install mppsolar
when run the command get a timeout read pipy.org...
when run the command get a timeout read pipy.org...
hopefully this is a typo - should be pypi.org
maybe root cant access pypi.org?
try without sudo?
or python -m pip install mppsolar
similar outcome:
its failing on bluepy - which needs to be compiled
you need to install libglib2.0 first:
sudo apt-get install libglib2.0-dev
then try the sudo pip install mppsolar
command
That's did it megasolar@4G-MINI:~$ mpp-solar -v Solar Device Command Utility, version: 0.12.5, tweak jkbleio for getInfo and to return first 300 bytes
Thanks a lot
I think there still some missing links... latest error when trying to install on the intended machine:
socaro@socaro:~$ sudo pip install -e "git+https://github.com/jblance/mpp-solar.git#egg=mppsolar" Obtaining mppsolar from git+https://github.com/jblance/mpp-solar.git#egg=mppsolar Cloning https://github.com/jblance/mpp-solar.git to ./src/mppsolar Running command git clone --filter=blob:none --quiet https://github.com/jblance/mpp-solar.git /home/socaro/src/mppsolar Resolved https://github.com/jblance/mpp-solar.git to commit 1bc61877857ced08d0ad5bc5852f701772b09164 Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [7 lines of output] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/poetry-core/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/poetry-core/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/poetry-core/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/poetry-core/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/poetry-core/ ERROR: Could not find a version that satisfies the requirement poetry-core>=1.0.0 (from versions: none) ERROR: No matching distribution found for poetry-core>=1.0.0 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. socaro@socaro:~$
any reason to install the dev version?
It seems to be missing poetry-core, try sudo pip install poetry-core
first
I did that Requirement already satisfied: poetry-core in /usr/lib/python3/dist-packages (1. 0.7) Then try: flamingo@FLAMINGO:~$ pip install mppsolar Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: mppsolar in /usr/local/lib/python3.10/dist-packages/mppsolar-0.13.2-py3.10.egg (0.13.2) Requirement already satisfied: paho-mqtt in /usr/lib/python3/dist-packages (from mppsolar) (1.5.1) Requirement already satisfied: psycopg2 in /usr/lib/python3/dist-packages (from mppsolar) (2.9.2) Requirement already satisfied: pymongo in /usr/local/lib/python3.10/dist-packages/pymongo-4.2.0-py3.10-linux-x86_64.egg (from mppsolar) (4.2.0) Requirement already satisfied: pyserial in /usr/local/lib/python3.10/dist-packages/pyserial-3.5-py3.10.egg (from mppsolar) (3.5) Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from mppsolar) (5.4.1)
But get this when inquire version:
flamingo@FLAMINGO:~$ mpp-solar -v
Traceback (most recent call last):
File "/usr/local/bin/mpp-solar", line 33, in
Thanks again , and sorry to bother... just in learning curve here
Probably a leftover from the failed sudo install
sudo pip uninstall mppsolar
pip uninstall mppsolar
Then do one of
sudo pip install mppsolar
(this one installs as root and installs globally) or
pip install mppsolar
(this one only installs for the current user)
got this:
flamingo@FLAMINGO:~$ sudo pip uninstall mppsolar Found existing installation: mppsolar 0.13.2 Uninstalling mppsolar-0.13.2: Would remove: /usr/local/bin/jkbms /usr/local/bin/mpp-solar /usr/local/bin/powermon /usr/local/lib/python3.10/dist-packages/mppsolar-0.13.2-py3.10.egg Proceed (Y/n)? y Successfully uninstalled mppsolar-0.13.2 WARNING: Running pip as the 'root' user can result in broken permissions and con flicting behaviour with the system package manager. It is recommended to use a v irtual environment instead: https://pip.pypa.io/warnings/venv flamingo@FLAMINGO:~$ pip uninstall mppsolar WARNING: Skipping mppsolar as it is not installed. flamingo@FLAMINGO:~$ sudo pip install mppsolar WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status =None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host=' pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/mppsolar/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status =None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host=' pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/mppsolar/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status =None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host=' pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/mppsolar/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status =None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host=' pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/mppsolar/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status =None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host=' pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/mppsolar/ ERROR: Could not find a version that satisfies the requirement mppsolar (from ve rsions: none) ERROR: No matching distribution found for mppsolar flamingo@FLAMINGO:~$
try the non-sudo command looks like your setup has restricted root internet access (this is a good security practice)
still fail: flamingo@FLAMINGO:~$ pip install mppsolar Defaulting to user installation because normal site-packages is not writeable Collecting mppsolar WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/b9/2f/5bae593c720c8871e81fa24ec1723baf1e7bc8c43e4fa8040fde7947e3c8/mppsolar-0.12.5-py3-none-any.whl ............ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/b9/2f/5bae593c720c8871e81fa24ec1723baf1e7bc8c43e4fa8040fde7947e3c8/mppsolar-0.12.5-py3-none-any.whl
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/b9/2f/5bae593c720c8871e81fa24ec1723baf1e7bc8c43e4fa8040fde7947e3c8/mppsolar-0.12.5-py3-none-any.whl (Caused by ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)"))
flamingo@FLAMINGO:~$
it really looks like a connection problem, try downloading mppsolar from pypi.org and installing from local archive
Downloaded-
flamingo@FLAMINGO:~$ python3 -m pip install /media/flamingo/B0D2-8616/mpp-solar- 0.7.76.tar.gz Defaulting to user installation because normal site-packages is not writeable Processing /media/flamingo/B0D2-8616/mpp-solar-0.7.76.tar.gz Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [7 lines of output] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool( host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setupt ools/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool( host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setupt ools/ ERROR: Could not find a version that satisfies the requirement setuptools> =42 (from versions: none) ERROR: No matching distribution found for setuptools>=42 [end of output]
note: This error originates from a subprocess, and is likely not a problem wit h pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. flamingo@FLAMINGO:~$ sudo pip install setuptools [sudo] password for flamingo: Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (59.6.0)
-----setuptools is already there
You are mixing sudo and non sudo commands and the version you downloaded is the old version (mpp-solar vs mppsolar)
Download the newer version Try install mppsolar from local with sudo
On Tue, 11 Oct 2022, 12:00 pm Meganetpr, @.***> wrote:
Downloaded-
@.***:~$ python3 -m pip install /media/flamingo/B0D2-8616/mpp-solar- 0.7.76.tar.gz Defaulting to user installation because normal site-packages is not writeable Processing /media/flamingo/B0D2-8616/mpp-solar-0.7.76.tar.gz Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [7 lines of output] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool( host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setupt ools/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool( host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setupt ools/ ERROR: Could not find a version that satisfies the requirement setuptools> =42 (from versions: none) ERROR: No matching distribution found for setuptools>=42 [end of output]
note: This error originates from a subprocess, and is likely not a problem wit h pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. @.***:~$ sudo pip install setuptools [sudo] password for flamingo: Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (59.6.0)
-----setuptools is already there
— Reply to this email directly, view it on GitHub https://github.com/jblance/mpp-solar/issues/265#issuecomment-1273892098, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVKNWY7MFZIWIKXRIG53LWCSN2JANCNFSM6AAAAAARAZ4QQI . You are receiving this because you commented.Message ID: @.***>
still look for some external dependencies packages even when are already in machine but version is newer..
flamingo@FLAMINGO:~$ sudo python3 -m pip install /media/flamingo/B0D2-8616/mppsolar-0.12.5.tar.gz Processing /media/flamingo/B0D2-8616/mppsolar-0.12.5.tar.gz Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [7 lines of output] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/poetry-core/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/poetry-core/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/poetry-core/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/poetry-core/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/poetry-core/ ERROR: Could not find a version that satisfies the requirement poetry-core>=1.0.0 (from versions: none) ERROR: No matching distribution found for poetry-core>=1.0.0 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. flamingo@FLAMINGO:~$ sudo pip install poetry-core Requirement already satisfied: poetry-core in /usr/lib/python3/dist-packages (1.0.7)
youve downloaded the source archive. try with the build archive https://files.pythonhosted.org/packages/b9/2f/5bae593c720c8871e81fa24ec1723baf1e7bc8c43e4fa8040fde7947e3c8/mppsolar-0.12.5-py3-none-any.whl Otherwise Im not sure why pip cant reach pypi? Are you behind a proxy?
Will mpp-solar run on an AMD pc running Ubuntu? The command for install mppsolar timeout
Thanks