Bug 28952

Summary: pdfarranger crashes at start
Product: Mageia Reporter: Rolf Pedersen <rolfpedersen>
Component: RPM PackagesAssignee: David GEIGER <geiger.david68210>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: fri, ouaurelien
Version: 8   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: pdfarranger-1.7.0-1.mga8.src.rpm CVE:
Status comment:

Description Rolf Pedersen 2021-05-20 16:25:42 CEST
On up-to-date 64-bit M8, arrived at with urpmi method, pdfarranger just installed, with dependencies:

      1/4: python3-pikepdf       
      2/4: img2pdf               
      3/4: lib64poppler-gir0.18  
      4/4: pdfarranger           

Started from icon on plasma desktop, just spinner notification and nothing.  Started from konsole, I think the trace is small enough to directly post, not sure about formatting, so let me know the intel on that consideration, if need be.  Thanks.

[rolf@x570i ~]$ pdfarranger 
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 775, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pdfarranger 1.7.0 (/usr/lib/python3.8/site-packages), Requirement.parse('pdfarranger==1.0'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/pdfarranger", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3239, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 569, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 582, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 770, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pdfarranger==1.0' distribution was not found and is required by the application
[rolf@x570i ~]$
Comment 1 Morgan Leijström 2021-05-20 20:28:02 CEST
Launches cleanly for me in mga8-64 plasma.
This system was upgraded from mga7, where i had pdfarranger already, system is now updated to all testing some hours ago.
I also recently removed orphans (yeah i like to test it)

I have no idea what "'pdfarranger==1.0' distribution" means... but it appears something is expected to have set it.

CC: (none) => fri

Comment 2 Aurelien Oudelet 2021-05-21 03:05:56 CEST
Hi, thanks reporting this.

So, on a clean Mageia 8 install, pdfarranger seems to not run well.
Missing python3 stuff?

Let's call the packager on this.
Assigning to David G.

Assignee: bugsquad => geiger.david68210
CC: (none) => ouaurelien

Comment 3 Rolf Pedersen 2021-05-21 03:33:58 CEST
(In reply to Aurelien Oudelet from comment #2)

> 
> So, on a clean Mageia 8 install, pdfarranger seems to not run well.
> Missing python3 stuff?

Sorry I was not clear about using urpmi to perform the upgrade, which was problematic due to some file conflicts.  Another BR contains some description about the series of events that got me to a functional upgrade for which 'clean', perhaps, does not apply. ;)  Thanks.

https://bugs.mageia.org/show_bug.cgi?id=28485#c6
Comment 4 David GEIGER 2021-05-21 05:59:29 CEST
I don't know what to do with this issue, it works well on my mga8 and also on my Cauldron.

This come from an upgrade which it seems to have gone badly!
Comment 5 Rolf Pedersen 2021-05-21 06:55:06 CEST
(In reply to David GEIGER from comment #4)
> I don't know what to do with this issue, it works well on my mga8 and also
> on my Cauldron.
> 
> This come from an upgrade which it seems to have gone badly!




Yes, I think that's a fair assessment @David GEIGER! Thanks.

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

Comment 6 Rolf Pedersen 2021-05-21 07:16:55 CEST
To make some better sense, it appears I installed a version of pdfarranger from github last year sometime and its binary was in /usr/local/bin.  Once I removed that, your rpm works (at least opens) for me as well. Thanks!
Comment 7 Morgan Leijström 2021-05-21 08:11:23 CEST
Ah, good you found the culprit :)