Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701318 - dev-util/eric-19.11: error: cannot import name 'QtChart' (requires dev-python/PyQtChart)
Summary: dev-util/eric-19.11: error: cannot import name 'QtChart' (requires dev-python...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 607130
Blocks:
  Show dependency tree
 
Reported: 2019-11-27 11:06 UTC by Fabio Rossi
Modified: 2020-12-16 23:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
eric-19.11.ebuild (eric-19.11.ebuild,1.40 KB, text/plain)
2019-11-28 09:53 UTC, Fabio Rossi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2019-11-27 11:06:37 UTC
# emerge -1 --nodeps eric

These are the packages that would be merged, in order:

[ebuild     U ~] dev-util/eric-19.11:6::gentoo [18.03:6::gentoo] USE="spell%*" PYTHON_SINGLE_TARGET="python3_6 -python3_5 -python3_7% (-python2_7%)" PYTHON_TARGETS="python3_6 -python3_5 -python3_7% (-python2_7%*)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-util/eric-19.11::gentoo
 * eric6-19.11.tar.gz BLAKE2B SHA512 size ;-) ...                                           [ ok ]
>>> Unpacking source...
>>> Unpacking eric6-19.11.tar.gz to /var/tmp/portage/dev-util/eric-19.11/work
>>> Source unpacked in /var/tmp/portage/dev-util/eric-19.11/work
>>> Preparing source in /var/tmp/portage/dev-util/eric-19.11/work/eric6-19.11 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-util/eric-19.11/work/eric6-19.11 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-util/eric-19.11/work/eric6-19.11 ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-util/eric-19.11

>>> Install dev-util/eric-19.11 into /var/tmp/portage/dev-util/eric-19.11/image
Checking dependencies
Python Version: 3.6.9
Found PyQt5
Found pyuic5
PyQtChart could not be detected.
Error: cannot import name 'QtChart'

Shall 'PyQtChart' be installed using pip? (Y/n) An internal error occured.  Please report all the output of the program,
including the following traceback, to eric-bugs@eric-ide.python-projects.org.

Traceback (most recent call last):
  File "install.py", line 1902, in <module>
    main(sys.argv)
  File "install.py", line 1791, in main
    doDependancyChecks()
  File "install.py", line 1377, in doDependancyChecks
    from PyQt5 import Qsci      # __IGNORE_WARNING__
ValueError: PyCapsule_GetPointer called with incorrect name
 * ERROR: dev-util/eric-19.11::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 125:  Called src_install
 *   environment, line 2153:  Called die
 * The specific snippet of code:
 *       yes n | "${PYTHON}" install.py -b "${EPREFIX}/usr/bin" -d "$(python_get_sitedir)" -i "${D}" -c -z || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-util/eric-19.11::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/eric-19.11::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/dev-util/eric-19.11:20191127-090134.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-util/eric-19.11/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/eric-19.11/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/eric-19.11/work/eric6-19.11'
 * S: '/var/tmp/portage/dev-util/eric-19.11/work/eric6-19.11'
Comment 1 Fabio Rossi 2019-11-27 11:07:27 UTC
PyQtChart is not in portage yet, there is bug #607130 with an old ebuild that doesn't work for version 5.12
Comment 2 Fabio Rossi 2019-11-28 09:53:05 UTC
I managed to have PyQtChart installed as explained in the bug #607130. After that it's needed to use qscintilla and qscintilla-python >= 2.11.1 (see also bug #689574) to avoid the following error:

>>> Install dev-util/eric-19.11 into /var/tmp/portage/dev-util/eric-19.11/image
Checking dependencies
Python Version: 3.6.9
Found PyQt5
Found pyuic5
An internal error occured.  Please report all the output of the program,
including the following traceback, to eric-bugs@eric-ide.python-projects.org.

Traceback (most recent call last):
  File "install.py", line 1902, in <module>
    main(sys.argv)
  File "install.py", line 1791, in main
    doDependancyChecks()
  File "install.py", line 1377, in doDependancyChecks
    from PyQt5 import Qsci      # __IGNORE_WARNING__
ValueError: PyCapsule_GetPointer called with incorrect name

I am attaching a revised ebuild
Comment 3 Fabio Rossi 2019-11-28 09:53:43 UTC
Created attachment 597658 [details]
eric-19.11.ebuild
Comment 4 Larry the Git Cow gentoo-dev 2020-11-16 23:40:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3f44b561b9b529547c5af2781c346dfc0015815

commit b3f44b561b9b529547c5af2781c346dfc0015815
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-11-16 23:15:12 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-11-16 23:40:12 +0000

    profiles: Mask dev-util/eric for removal
    
    Bug: https://bugs.gentoo.org/607130
    Bug: https://bugs.gentoo.org/701318
    Bug: https://bugs.gentoo.org/709862
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-12-16 23:05:12 UTC
Package removed.