Bug 1321376
Summary: | [abrt] krop: krop.py:18:<module>:ImportError: No module named 'version' | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Giulio 'juliuxpigface' <juliux.pigface> | ||||||
Component: | krop | Assignee: | Tomáš Hozza <thozza> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | urgent | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 23 | CC: | gc, i, projects.rg, thozza | ||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Unspecified | ||||||||
URL: | https://retrace.fedoraproject.org/faf/reports/bthash/83373917b38ae1d45a3bdf0bb9b04779a82e2fce | ||||||||
Whiteboard: | abrt_hash:5ae768df6547538713234fb44cca9c18a4373b47; | ||||||||
Fixed In Version: | krop-0.4.9-6.fc24 krop-0.4.9-5.fc23 krop-0.4.11-3.fc24 krop-0.4.11-3.fc25 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-11-14 20:58:42 UTC | Type: | --- | ||||||
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: | 1276890, 1370721 | ||||||||
Attachments: |
|
Description
Giulio 'juliuxpigface'
2016-03-25 22:50:49 UTC
Created attachment 1140458 [details]
File: backtrace
Created attachment 1140459 [details]
File: environ
Thanks for your report. That seems somehow related to PEP 0396. https://www.python.org/dev/peps/pep-0396/ Though, > grep version /usr/lib/python3.4/site-packages/krop/version.py __version__ = '0.4.9' From man python3: -s Don't add user site directory to sys.path. Then it's obvious that site-packages do not get found. Sorry, but I don't think we can close this so easily... 1) Krop does not work when launched with the appropriate application icon. 2) Also... Take a look to this output: $ cat /usr/share/applications/krop.desktop | grep -i exec TryExec=krop Exec=krop %F So... I'd assume that "krop" and "krop %F" are the right command. But both fail with the crash reported in the description of this report. If this isn't the right command for Krop, then IMHO the ".desktop" file should be updated accordingly. > head -1 /usr/bin/krop
#!/usr/bin/python3 -s
No idea why upstream does not like to use site-packages.
This bug is driving me crazy. Not reproducible with python2 instead of python3. Betreff: Re: krop and python3 Von: Avram Lubkin <aviso> Datum: 24.04.2016 19:21 An: Fedora Python SIG <python-devel.org> Based on the error and looking at the source, you should just need to fix the line in /usr/lib/python3.4/site-packages/krop/krop.py: parser = ArgumentParser(description=__doc__, version=__version__, with parser = ArgumentParser(description=__doc__, ArgumentParser does not accept a version keyword It doesn't in 2.7 either, but it may handle it in in a way that wouldn't cause an errror. Looks like the version argument was deprecated and later removed. The version of argparse 2.7 is using includes it with a deprecation warning and the version for 3.4 has it removed. Unfortunately, I've already pushed the b0rken update to f23 stable. Sorry about that. There are also issues with python3-qt4, besides python3 itself. I'll revert to python2 to ensure a working package. krop-0.4.9-5.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-56449a7e56 krop-0.4.9-6.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-04719ee06f krop-0.4.9-5.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-56449a7e56 krop-0.4.9-6.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-04719ee06f krop-0.4.9-6.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-04719ee06f krop-0.4.9-6.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-04719ee06f krop-0.4.9-6.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. krop-0.4.9-5.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. The error is back again in krop-0.4.11-2.fc24.noarch Traceback (most recent call last): File "/usr/bin/krop", line 17, in <module> import krop.krop File "/usr/lib/python3.5/site-packages/krop/krop.py", line 19, in <module> from version import __version__ ImportError: No module named 'version' Downgraded to krop-0.4.9-6.fc24.noarch and it works *** Bug 1384191 has been marked as a duplicate of this bug. *** Do you plan to revert back to Python2 in near? To be honest, I tend to orphan this package. Long story in short: I wrote an e-mail to upstream some days ago about the mentioned issue but did not get any response till now, there's no upstream tracker. Upstream has requested me with another e-mail in prior to test with python 3 and it seems to not work in Fedora. See also past discussion on the mailing list: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/KX2PKVEC43OA5ZEVPZIJRV7VYJJAPYCC/#KX2PKVEC43OA5ZEVPZIJRV7VYJJAPYCC Can you help with the (second) downgrade? (In reply to Raphael Groner from comment #23) > To be honest, I tend to orphan this package. > > Long story in short: > I wrote an e-mail to upstream some days ago about the mentioned issue but > did not get any response till now, there's no upstream tracker. Upstream has > requested me with another e-mail in prior to test with python 3 and it seems > to not work in Fedora. > > See also past discussion on the mailing list: > https://lists.fedoraproject.org/archives/list/python-devel@lists. > fedoraproject.org/thread/KX2PKVEC43OA5ZEVPZIJRV7VYJJAPYCC/ > #KX2PKVEC43OA5ZEVPZIJRV7VYJJAPYCC > > Can you help with the (second) downgrade? Sure, I'll do the changes in F24+ and submit an update. I would be also willing to maintain the package (my FAS is thozza). This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. krop-0.4.11-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-5fad5f44ed krop-0.4.11-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-3b0ce16d2a krop-0.4.11-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. krop-0.4.11-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |