Bug 32007

Summary: eric7 missing Python modules
Product: Mageia Reporter: Pierre Fortin <pfortin>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: fri, geiger.david68210, lewyssmith
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
See Also: https://bugs.mageia.org/show_bug.cgi?id=32011
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: eric6 konsole log
eric7_error.log

Description Pierre Fortin 2023-06-12 04:20:29 CEST
Description of problem: Getting irritated with VScode, decided to try eric7; but every component I tried is missing Python modules...


Version-Release number of selected component (if applicable):


How reproducible: alwasy


Steps to Reproduce:
1.install eric7
2.try to run any component
3.
Comment 1 Morgan Leijström 2023-06-12 11:00:45 CEST
Thank you for the report.
I am thinking are they missing on your system or do eric7 not find them?
Can you name the modules it is missing?
Here is what the package say it need:

$ urpmq --requires eric7
python(abi)[== 3.10]
python3-pysvn
python3-qt6-charts
python3-qt6-help
python3-qt6-qscintilla
python3-qt6-webenginecore
python3-qt6-webenginewidgets
python3dist(asttokens)
python3dist(editorconfig)


I see from install dry run
 $ sudo urpmi --test eric7
That it installs many more python modules, probably by deps.
most python3-qt6-*


And just to gather info, do eric6 work?

Summary: eric7 missing modules => eric7 missing Python modules
CC: (none) => fri

Comment 2 Pierre Fortin 2023-06-12 17:54:51 CEST
(In reply to Morgan Leijström from comment #1)
> Thank you for the report.
> I am thinking are they missing on your system or do eric7 not find them?

Missing at least:
* semver              (see below)
* PyQt6.QtPdfWidgets  I have python3-qt6-widgets-6.4.1-2.mga9 installed


> Can you name the modules it is missing?

6 & 7 can't be installed together; one or the other.
Strange: yesterday, eric7 installed 20 packages and eric6 installed 2 after 7 did not work...  today both installed just one...

Anyway, eric7 provides these commands:
Note that python stops on first error, so there may be more missing modules...
Command               Missing
eric7_api             PyQt6.QtPdfWidgets
eric7_configure       semver
eric7_editor            "
eric7_ide               "
eric7_pluginrepository  "
eric7_re                "
eric7_sqlbrowser        "
eric7_trpreviewer       "
eric7_browser           "
eric7_diff              "
eric7_hexeditor         "
eric7_pdf               "
eric7_pluginuninstall   "
eric7_shell             "
eric7_testing           "
eric7_uipreviewer       "
eric7_compare           "
eric7_doc             PyQt6.QtPdfWidgets
eric7_iconeditor      semver
eric7_plugininstall       "
eric7_qregularexpression  "
eric7_snap                "
eric7_tray                "
eric7_virtualenv          "



After issuing "pip install semver" (Successfully installed semver-3.0.0)
they still ALL fail with: 
  ModuleNotFoundError: No module named 'PyQt6.QtPdfWidgets

Hmm... looks like it should have installed python3-semver-2.13.0-2.mga9; but pip provided 3.0.0

"pip install PyQt6.QtPdfWidgets" gives:
Defaulting to user installation because normal site-packages is not writeable
WARNING: Ignoring invalid distribution -otocore (/usr/local/lib/python3.10/site-packages)
WARNING: Ignoring invalid distribution -otocore (/usr/local/lib/python3.10/site-packages)
ERROR: Could not find a version that satisfies the requirement PyQt6.QtPdfWidgets (from versions: none)
ERROR: No matching distribution found for PyQt6.QtPdfWidgets
WARNING: Ignoring invalid distribution -otocore (/usr/local/lib/python3.10/site-packages)


> Here is what the package say it need:
> 
> $ urpmq --requires eric7
> python(abi)[== 3.10]
> python3-pysvn
> python3-qt6-charts
> python3-qt6-help
> python3-qt6-qscintilla
> python3-qt6-webenginecore
> python3-qt6-webenginewidgets
> python3dist(asttokens)
> python3dist(editorconfig)
> 
> 
> I see from install dry run
>  $ sudo urpmi --test eric7
> That it installs many more python modules, probably by deps.
> most python3-qt6-*

Obviously missing a few...

> And just to gather info, do eric6 work?
No, it just displays splash screen and dies...  will attach its konsole output...
Comment 3 Pierre Fortin 2023-06-12 17:55:32 CEST
Created attachment 13871 [details]
eric6 konsole log
Comment 4 Lewis Smith 2023-06-12 20:17:44 CEST
Started with:
 $ urpmf PyQt6.QtPdfWidgets
python3-qt6-devel
python3-qt6-pdf-widgets
pyinstaller

python3-qt6-pdf-widgets looks the most likely require; possibly pyinstaller.
 $ urpmq --requires-recursive eric7 | grep pdf-widgets
 $
 $ urpmq --requires-recursive eric7 | grep pyinstaller
 $
Neither is currently required.

 $ urpmf semver | grep python3 | cut -d: -f1 | uniq
python3-reno
python3-node-semver
buildstream
python3-jupyterlab
python3-poetry-core
cargo2rpm
python3-dukpy
python3-semver

The most likely requires here are python3-node-semver & python3-semver
 $ urpmq --requires-recursive eric7 | grep semver
 $
Neither is a current requirement.

@Pierre
Can you try installing from Mageia (best to remove what you added in comment 2):
 python3-semver
or if that does not work:
 python3-node-semver
AND
 python3-qt6-pdf-widgets
or if that does not work:
 pyinstaller

CC: (none) => lewyssmith

Comment 5 David GEIGER 2023-06-12 20:35:55 CEST
Should be fixed with next eric7-23.5-2.mga9 update!

CC: (none) => geiger.david68210

Comment 6 Lewis Smith 2023-06-12 20:50:52 CEST
Magicien!
Comment 7 Morgan Leijström 2023-06-12 21:28:16 CEST
I guess the eric6 package need a similar fix?
Comment 8 Morgan Leijström 2023-06-12 21:35:14 CEST
(In reply to Pierre Fortin from comment #2)

> 6 & 7 can't be installed together; one or the other.
> Strange: yesterday, eric7 installed 20 packages and eric6 installed 2 after
> 7 did not work...  today both installed just one...

When you uninstall a package, the packages that was also installed as deps remain on the system.

So to really test installing like before your first time trying, you need to uninstall also those dependencies it brought.

(and to really test... system may possibly have packages already installed  before that, that eric depends on, so this test do not test that dependency)
Comment 9 Pierre Fortin 2023-06-13 02:10:29 CEST
Created attachment 13872 [details]
eric7_error.log

Still not right...
$ eric7_ide  # errors out with another missing module...
Comment 10 Pierre Fortin 2023-06-13 02:18:26 CEST
(In reply to Morgan Leijström from comment #8)

> When you uninstall a package, the packages that was also installed as deps
> remain on the system.

That doesn't bother me...

> So to really test installing like before your first time trying, you need to
> uninstall also those dependencies it brought.

As a user, all I care about is that a package has all the dependencies it needs whether previously installed by this package or other packages...

> (and to really test... system may possibly have packages already installed 
> before that, that eric depends on, so this test do not test that dependency)

As long as a newly installed package has all it dependencies, the rest is of no importance to me as a user...  :)
Comment 11 Morgan Leijström 2023-06-13 08:45:05 CEST
I see we now have eric7-23.5-3.mga9
Comment 12 David GEIGER 2023-06-13 17:06:46 CEST
Have yo tried with latest eric7-23.5-3.mga9?

Is python3-trove-classifiers installed?
Comment 13 Lewis Smith 2023-06-13 21:05:15 CEST
See also bug 32011 re eric7-23.5-3.mga9, which David & I both installed & fired up successfully.

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=32011

Comment 14 Lewis Smith 2023-06-14 20:45:17 CEST
@Pierre
Are you satisfied that the problems which caused you to raise this bug (which was useful) are resolved? And can we (or you) close it?
Comment 15 Morgan Leijström 2023-06-14 21:27:47 CEST
Optimally i think it should be tried on a fresh minimal install that installing eric7 brings in all deps it need in a quick test.

Ditto for eric6; I see it was rebuilt too, same fix?
Comment 16 David GEIGER 2023-06-14 21:52:06 CEST
Yes similar dependencies issue fixed in eric6-22.8.1-2.mga9.
Comment 17 Lewis Smith 2023-06-15 21:17:55 CEST
(In reply to Morgan Leijström from comment #15)
> Optimally i think it should be tried on a fresh minimal install that
> installing eric7 brings in all deps it need in a quick test.
Both David & I did a virgin install of eric7 on an existing system: see bug 32011. I got 126 pks, which surely must include all the sensitive dependencies.
eric7 has 29 direct dependencies, 566 recursive ones.

Since Pierre has not said he is content with the outcome, closing this assuming he is. With thanks to DavidG for his quick work on it.

Status: NEW => RESOLVED
Resolution: (none) => FIXED