Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Python Error from Tumbleweed Update

  1. #1

    Default Python Error from Tumbleweed Update

    Not sure if this is the correct place to post this but unusually I have had an error when running a Tumbleweed update. I have :-

    Code:
    (141/223) Installing: python2-pytz-2019.2-2.1.noarch .........................................................[error]
    Installation of python2-pytz-2019.2-2.1.noarch failed:
    Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/pytz/zoneinfo: cpio: File from package already exists as a directory in system
    error: python2-pytz-2019.2-2.1.noarch: install failed
    
    Abort, retry, ignore? [a/r/i] (a): r

    Not sure what I should do about this and would appreciate advice please.

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,972
    Blog Entries
    14

    Default Re: Python Error from Tumbleweed Update

    1. python2 is reaching it's EOL and is going to be removed early next year AFAIK
    2. You are trying to use two python2 packages that conflict. AFAICS zoneinfo and pytz
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3

    Default Re: Python Error from Tumbleweed Update

    Many thanks for the reply. I understand the advice concerning EOL for the earlier python version. My problem is knowing how and why it is there and should I start trying to remove it?

  4. #4
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,144

    Default Re: Python Error from Tumbleweed Update

    Quote Originally Posted by Budgie2 View Post
    Not sure if this is the correct place to post this but unusually I have had an error when running a Tumbleweed update. ...
    You seem to be trying to install a newer version of python2-pytz-2019.2-2.1.noarch over the top of one from an earlier distribution-snapshot with the same version number, but a different file archive.
    The contents and layout of /usr/lib/python2.7/site-packages/ has changed.

    This wa propably caused by trying to “update” using PackageKit or somesuch instead of upgrading with:
    Code:
     # zypper dup
    Please show what upgrade/update command/procedure you used and your output of:
    Code:
    sysman@iMac-testing:~> cat /etc/os-release
    NAME="openSUSE Tumbleweed"
    # VERSION="20191028"
    ID="opensuse-tumbleweed"
    ID_LIKE="opensuse suse"
    VERSION_ID="20191028"
    PRETTY_NAME="openSUSE Tumbleweed"
    ANSI_COLOR="0;32"
    CPE_NAME="cpe:/o:opensuse:tumbleweed:20191028"
    BUG_REPORT_URL="https://bugs.opensuse.org"
    HOME_URL="https://www.opensuse.org/"
    LOGO="distributor-logo"
    sysman@iMac-testing:~> 
    sysman@iMac-testing:~> zypper lr -Eu
    Repository priorities are without effect. All enabled repositories share the same priority.
    
    # | Alias                                | Name                        | Enabled | GPG Check | Refresh | URI                                                 
    --+--------------------------------------+-----------------------------+---------+-----------+---------+-----------------------------------------------------
    1 | download.opensuse.org-oss            | Main Repository (OSS)       | Yes     | (r ) Yes  | Yes     | http://dwnload.opensuse.org/tumbleweed/repo/oss/    
    2 | packman.inode.at-openSUSE_Tumbleweed | Packman Repository          | Yes     | (r ) Yes  | Yes     | http://pckman.inode.at/suse/openSUSE_Tumbleweed/    
    sysman@iMac-testing:~>
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,972
    Blog Entries
    14

    Default Re: Python Error from Tumbleweed Update

    Did you use 'pip' to pull in python packages?

    I'd remove the python2-pytz package.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6

    Default Re: Python Error from Tumbleweed Update

    Quote Originally Posted by eng-int View Post
    You seem to be trying to install a newer version of python2-pytz-2019.2-2.1.noarch over the top of one from an earlier distribution-snapshot with the same version number, but a different file archive.
    The contents and layout of /usr/lib/python2.7/site-packages/ has changed.

    This wa propably caused by trying to “update” using PackageKit or somesuch instead of upgrading with:
    Code:
     # zypper dup
    Please show what upgrade/update command/procedure you used and your output of:
    Code:
    sysman@iMac-testing:~> cat /etc/os-release
    NAME="openSUSE Tumbleweed"
    # VERSION="20191028"
    ID="opensuse-tumbleweed"
    ID_LIKE="opensuse suse"
    VERSION_ID="20191028"
    PRETTY_NAME="openSUSE Tumbleweed"
    ANSI_COLOR="0;32"
    CPE_NAME="cpe:/o:opensuse:tumbleweed:20191028"
    BUG_REPORT_URL="https://bugs.opensuse.org"
    HOME_URL="https://www.opensuse.org/"
    LOGO="distributor-logo"
    sysman@iMac-testing:~> 
    sysman@iMac-testing:~> zypper lr -Eu
    Repository priorities are without effect. All enabled repositories share the same priority.
    
    # | Alias                                | Name                        | Enabled | GPG Check | Refresh | URI                                                 
    --+--------------------------------------+-----------------------------+---------+-----------+---------+-----------------------------------------------------
    1 | download.opensuse.org-oss            | Main Repository (OSS)       | Yes     | (r ) Yes  | Yes     | http://dwnload.opensuse.org/tumbleweed/repo/oss/    
    2 | packman.inode.at-openSUSE_Tumbleweed | Packman Repository          | Yes     | (r ) Yes  | Yes     | http://pckman.inode.at/suse/openSUSE_Tumbleweed/    
    sysman@iMac-testing:~>
    Many thanks for your reply. My normal update procedure is to use zypper dup as the package kit stopped working from when I changed to Tumbleweed.
    There may have been occasions when I installed an odd package but I cannot remember any python work but only Perl modules.
    Here are my findings from your instructions:-

    Code:
    alastair@AJBR-W530:~> cat /etc/os-release
    NAME="openSUSE Tumbleweed"
    # VERSION="20191104"
    ID="opensuse-tumbleweed"
    ID_LIKE="opensuse suse"
    VERSION_ID="20191104"
    PRETTY_NAME="openSUSE Tumbleweed"
    ANSI_COLOR="0;32"
    CPE_NAME="cpe:/o:opensuse:tumbleweed:20191104"
    BUG_REPORT_URL="https://bugs.opensuse.org"
    HOME_URL="https://www.opensuse.org/"
    LOGO="distributor-logo"
    alastair@AJBR-W530:~> zypper lr -Eu
    Repository priorities are without effect. All enabled repositories share the same priority.
    
    # | Alias                               | Name                | Enabled | GPG Check | Refresh | URI                                                                                  
    --+-------------------------------------+---------------------+---------+-----------+---------+--------------------------------------------------------------------------------------
    1 | http-download.opensuse.org-090c69b4 | security            | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/security/openSUSE_Tumbleweed/              
    2 | http-download.opensuse.org-26afdfe2 | openSUSE:Tumbleweed | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/openSUSE:/Tumbleweed/standard/             
    3 | libdvdcss                           | libdvdcss           | Yes     | (r ) Yes  | Yes     | http://opensuse-guide.org/repo/openSUSE_Tumbleweed/                                  
    4 | packman                             | packman             | Yes     | (r ) Yes  | Yes     | http://packman.inode.at/suse/openSUSE_Tumbleweed/                                    
    5 | packman-essentials                  | packman-essentials  | Yes     | (r ) Yes  | Yes     | http://packman.inode.at/suse/openSUSE_Tumbleweed/Essentials/                         
    6 | perl-modules                        | perl-modules        | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_Tumbleweed/
    7 | repo-non-oss                        | repo-non-oss        | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/non-oss                                 
    8 | repo-oss                            | repo-oss            | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/oss                                     
    9 | repo-update                         | repo-update         | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/tumbleweed/                                      
    alastair@AJBR-W530:~>
    Hope this helps

  7. #7

    Default Re: Python Error from Tumbleweed Update

    Quote Originally Posted by Knurpht View Post
    Did you use 'pip' to pull in python packages?

    I'd remove the python2-pytz package.
    Will have to resume tomorrow. I assume I can ignore meanwhile.
    Many thanks,
    Budgie2

  8. #8
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,144

    Default Re: Python Error from Tumbleweed Update

    I am not sure what has happened, but you could try this:
    Code:
    sysman@iMac-testing:~> sudo mv /usr/lib/python2.7/ /usr/lib/python2.7.old/
    
    sysman@iMac-testing:~> sudo zypper in -f python2-pytz
     ...
    Then:
    Code:
    sysman@iMac-testing:~> sudo zypper dup -d 
     ...
    I have just tried this sequence and no harm was done.
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  9. #9
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,972
    Blog Entries
    14

    Default Re: Python Error from Tumbleweed Update

    Quote Originally Posted by eng-int View Post
    I am not sure what has happened, but you could try this:
    Code:
    sysman@iMac-testing:~> sudo mv /usr/lib/python2.7/ /usr/lib/python2.7.old/
    
    sysman@iMac-testing:~> sudo zypper in -f python2-pytz
     ...
    Then:
    Code:
    sysman@iMac-testing:~> sudo zypper dup -d 
     ...
    I have just tried this sequence and no harm was done.
    But there will be if one has mutliple python2 packages installed. These packages can no longer be uninstalled properly, since rpm / zypper will detect missing folders and files.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  10. #10
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,144

    Default Re: Python Error from Tumbleweed Update

    Quote Originally Posted by Knurpht View Post
    But there will be if one has mutliple python2 packages installed. These packages can no longer be uninstalled properly, since rpm / zypper will detect missing folders and files.
    I am sorry, but I do not understand.
    When I do

    Code:
    sysman@iMac-testing:~> sudo rm -r /usr/lib/python2.7/site-packages/pytz*
    
    sysman@iMac-testing:~> sudo zypper rm python2-pytz 
    Loading repository data...
    Warning: No repositories defined. Operating only with the installed resolvables. Nothing can be installed.
    Reading installed packages...
    Resolving package dependencies...
    
    The following package is going to be REMOVED:
      python2-pytz
    
    1 package to remove.
    After the operation, 220.2 KiB will be freed.
    Continue? [y/n/v/...? shows all options] (y): 
    (1/1) Removing python2-pytz-2019.2-2.1.noarch .............................................................[done]
    Additional rpm output:
    warning: file /usr/lib/python2.7/site-packages/pytz/zoneinfo: remove failed: No such file or directory           
    warning: file /usr/lib/python2.7/site-packages/pytz/tzinfo.pyo: remove failed: No such file or directory         
    warning: file /usr/lib/python2.7/site-packages/pytz/tzinfo.pyc: remove failed: No such file or directory         
    warning: file /usr/lib/python2.7/site-packages/pytz/tzinfo.py: remove failed: No such file or directory          
    warning: file /usr/lib/python2.7/site-packages/pytz/tzfile.pyo: remove failed: No such file or directory         
    warning: file /usr/lib/python2.7/site-packages/pytz/tzfile.pyc: remove failed: No such file or directory         
    warning: file /usr/lib/python2.7/site-packages/pytz/tzfile.py: remove failed: No such file or directory          
    warning: file /usr/lib/python2.7/site-packages/pytz/reference.pyo: remove failed: No such file or directory      
    warning: file /usr/lib/python2.7/site-packages/pytz/reference.pyc: remove failed: No such file or directory      
    warning: file /usr/lib/python2.7/site-packages/pytz/reference.py: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz/lazy.pyo: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz/lazy.pyc: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz/lazy.py: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz/exceptions.pyo: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz/exceptions.pyc: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz/exceptions.py: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz/__init__.pyo: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz/__init__.pyc: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz/__init__.py: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info/zip-safe: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info/top_level.txt: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info/dependency_links.txt: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info/SOURCES.txt: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info/PKG-INFO: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info: remove failed: No such file or directory
    warning: file /usr/lib/python2.7/site-packages/pytz: remove failed: No such file or directory
    
    
    There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.
    sysman@iMac-testing:~>
    YaST Software Manager shows that the python2-pytz has been removed (and provides a simple means to reinstall it). When I previously used
    Code:
    zypper in -f python2-pytz
    without uninstalling the package it provided the contents of the directories
    /usr/lib/python2.7/site-packages/pytz
    and /usr/lib/python2.7/site-packages/pytz-2019.2-py2.7.egg-info

    BTW Budgie2, If you have completed a “zypper dup” I would just remove the pytz and pytz-2019.2-py2.7.egg-info directories rather than all the/usr/lib/python2.7 files to avoid having to repeat the whole upgrade.
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •