Cannot Install on SUSE Tumbleweed

68 views
Skip to first unread message

richar...@gmail.com

unread,
Dec 24, 2024, 7:23:15 AM12/24/24
to weewx-user
Greetings All:

I am attempting to install WEEWX on a recently built SUSE Tumbleweed installation.
However, I have not had any success.

 Tried this first:
    curl -s https://weewx.com/suse/weewx.repo | \
      sudo tee /etc/zypp/repos.d/weewx.repo
    zypper install weewx

   
   URL was not found: http://weewx.com/suse/weewx/suse202441126
 
 Then tried installing from downloaded RPM:
  rpm -ihv weewx-5.1.0-2.suse15.noarch.rpm
   error: Failed dependencies:
           python3-usb is needed by weewx-5.1.0-2.suse15.noarch
           
   Attempted installation of PYTHON3-USB:
     zypper install python3-usb
    
      Problem: 1: nothing provides 'python(abi) = 3.6' needed by the to be installed python3-usb-1.0.2-37.12.noarch
       Solution 1: do not install python3-usb-1.0.2-37.12.noarch
       Solution 2: break python3-usb-1.0.2-37.12.noarch by ignoring some of its dependencies
       
 Last ditch attempt using PIP:      
    python3 -m pip install weewx
      DEPRECATION: Loading egg at /usr/lib64/python3.11/site-packages/TBB-2021.13.0-py3.11-linux-x86_64.egg is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330
      error: externally-managed-environment
     
     
Any ideas on how to install this?
 Prior to installing Tumbleweed, WEEWX had been running on a SUSE v15.6 system.

Thanx

Richard Rosa

Tom Keffer

unread,
Dec 24, 2024, 10:36:42 AM12/24/24
to weewx...@googlegroups.com
Matthew is the SuSE expert, so I can't help you there. However, I am up on pip. If that's the direction you want to go, be sure to set up a virtual environment first. If you simply do "python3 -m pip install weewx" it will fail because there is a danger that you would overwrite existing site dependencies. See the section User install in the wiki article on Pip install strategies.


--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/1626401b-60ce-414b-a7c6-cd98ec8519e2n%40googlegroups.com.

matthew wall

unread,
Dec 24, 2024, 10:11:20 PM12/24/24
to weewx-user
On Tuesday, December 24, 2024 at 7:23:15 AM UTC-5 richar...@gmail.com wrote:
I am attempting to install WEEWX on a recently built SUSE Tumbleweed installation.
However, I have not had any success.

 Tried this first:
    curl -s https://weewx.com/suse/weewx.repo | \
      sudo tee /etc/zypp/repos.d/weewx.repo
    zypper install weewx

   
   URL was not found: http://weewx.com/suse/weewx/suse202441126 

it looks like tumbleweed uses some integer identifier as its value for $releasever_major

you can either edit weewx.repo to change this:


to this:


or you can download the suse15 repofile:

curl -s https://weewx.com/suse/weewx-suse15.repo | sudo tee /etc/zypp/repos.d/weewx.repo

then when you do 'zypper install weewx' everything should work.  tested with tumbleweed 20241025

 
 Then tried installing from downloaded RPM:
  rpm -ihv weewx-5.1.0-2.suse15.noarch.rpm
   error: Failed dependencies:
           python3-usb is needed by weewx-5.1.0-2.suse15.noarch
           
   Attempted installation of PYTHON3-USB:
     zypper install python3-usb
    
      Problem: 1: nothing provides 'python(abi) = 3.6' needed by the to be installed python3-usb-1.0.2-37.12.noarch
       Solution 1: do not install python3-usb-1.0.2-37.12.noarch
       Solution 2: break python3-usb-1.0.2-37.12.noarch by ignoring some of its dependencies      

try using zypper to install the rpm - it will handle the dependencies, whereas rpm will not.

 
 Last ditch attempt using PIP:      
    python3 -m pip install weewx
      DEPRECATION: Loading egg at /usr/lib64/python3.11/site-packages/TBB-2021.13.0-py3.11-linux-x86_64.egg is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330
      error: externally-managed-environment

did you install the python3-importlib_resources, python3-pip, and python3-venv packages before trying the pip install?
 

matthew wall

unread,
Dec 24, 2024, 10:20:05 PM12/24/24
to weewx-user
On Tuesday, December 24, 2024 at 7:23:15 AM UTC-5 richar...@gmail.com wrote:
 Last ditch attempt using PIP:      
    python3 -m pip install weewx

please note that you should use either rpm package or pip.  although it is possible to run weewx from both on a single machine, it is easy to get them confused.

i like to use rpm/deb installations when i am pushing weewx use salt or ansible, where the configuration is pretty stable and i don't plan to do many changes.  i tend to use the pip/venv installations for development or when i have to run weewx on an older system or a system on which i cannot install packaged python modules.  ymmv.

m
Reply all
Reply to author
Forward
0 new messages