Bug 1738165
Summary: | system-switch-java depends on Python 2 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Lumír Balhar <lbalhar> |
Component: | system-switch-java | Assignee: | jiri vanek <jvanek> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | dbhole, jvanek, mhroncok, omajid |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-11-07 10:31:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1698500 |
Description
Lumír Balhar
2019-08-06 13:19:44 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle. Changing version to '31'. This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle. Changing version to 31. Please answer the above questions. If you don't, the package can be orphaned: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Information_on_Remaining_Packages If you need any information or help, or if you need some more time, please let us know. Please answer the above questions. If you don't, the package can be orphaned: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Information_on_Remaining_Packages If you need any information or help, or if you need some more time, please let us know. Please answer the above questions. If you don't, the package can be orphaned: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Information_on_Remaining_Packages If you need any information or help, or if you need some more time, please let us know. According to the procedure described in https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Information_on_Remaining_Packages the package was now orphaned. If you think it was a mistake, you can provide the answers and claim the package back. Let us know if you need any help or just need more time. The package was unorphaned with "We have it fixed now and working on python3" (although there is no fix committed in the package). Do I assume correctly it is a work in progress? https://pagure.io/releng/issue/8866 https://src.fedoraproject.org/rpms/system-switch-java/c/f542eb4bf7035013cbedd4ed69ec41ad9a0cd9ff?branch=master Now the package requires both: /usr/bin/python2 - that is Python 2 and hence nothing really changed python, python-newt, python-gobject-base, python-devel - this is forbidden to use or depend on Would appreciate if you talk back. Hi! yes, it is workin progress in upstream, by other community member then myself. I will patch the RPM fo rnow to sed this out. I thought python2 was completly removed, and thus the build would fail. done The package still uses forbidden requires on python-* packages and fails to install: Error: Problem: cannot install the best candidate for the job - nothing provides python-gobject-base needed by system-switch-java-1.1.7.2-6.fc32.noarch Here is a PR which fixes the unversioned dependencies: https://src.fedoraproject.org/rpms/system-switch-java/pull-request/2 When I try to run it with no Java installed, it seems to work and it only shows this warning: /usr/share/system-switch-java/switch_java_functions.py:264: SyntaxWarning: invalid escape sequence \. return _get_javadocs_alternatives('javadoczip', '\.zip') But then I've tried to install Java (java-1.8.0-openjdk) and then the tool ends with error: # system-switch-java Traceback (most recent call last): File "/usr/sbin/system-switch-java", line 31, in <module> switch_java_boot.main() File "/usr/share/system-switch-java/switch_java_boot.py", line 55, in main java_identifiers, best_identifier = get_java_identifiers() File "/usr/share/system-switch-java/switch_java_functions.py", line 199, in get_java_identifiers if len(identifiers_and_jdks) > 0: TypeError: object of type 'zip' has no len() With two java runtimes (the previous one and java-11-openjdk), the tool shows me a CLI window with an error message "An attempt to parse /var/lib/alternatives/java failed. Let me know if you need any help to fix these issues. Hi! Thank you. Merged and build started. Issue you are describing is known. Friend who was fixing the issue felt unexpectedly sick. feel free to fix the https://pagure.io/system-switch-java on your own. I am going to take a look at these issues. Please, let me know if there is any work already done so I don't have to reinvent the wheel. Here is a PR which makes this tool Python 3 compatible: https://pagure.io/system-switch-java/pull-request/2 All tests are passing with both Pythons and the tool itself seems to work. PR was merged, could you please rebuild this package? It'll need a new release upstream. |