Public bug reported:

The current upload in the archive has example and docs files in `dist-
packages`. What makes this worse is the inclusion of
`/usr/lib/python3/dist-
packages/build/lib/docs/vitepress/guide/jupyter/tests/test.py` which has
invalid Python in it, resulting in installation of `python3-trame` to
fail with the following error:

```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Solving dependencies... Done
The following NEW packages will be installed:
  python3-trame
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/99.9 kB of archives.
After this operation, 914 kB of additional disk space will be used.
Selecting previously unselected package python3-trame.
(Reading database ... 220464 files and directories currently installed.)
Preparing to unpack .../python3-trame_3.12.0-2_all.deb ...
Unpacking python3-trame (3.12.0-2) ...
Setting up python3-trame (3.12.0-2) ...
  File 
"/usr/lib/python3/dist-packages/build/lib/docs/vitepress/guide/jupyter/tests/test.py",
 line 8
    await app.ui.ready  # noqa: F704
    ^^^^^^^^^^^^^^^^^^
SyntaxError: 'await' outside function
dpkg: error processing package python3-trame (--configure):
 old python3-trame package postinst maintainer script subprocess failed with 
exit status 1
Errors were encountered while processing:
 python3-trame
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

Following some investigation, it seems like a no-change rebuild may be
sufficient to resolve this, since the logic to remove these files
already exists in `d/rules`. A locally built and PPA-built version I
made both install without this issue, though they do require the usage
of `--force-depends` since some circular dependencies may have crept in
against `python3-trame-client` and `python3-trame-server` via
`${python3:Depends}`.

Example of a somewhat working PPA output (default dependencies):
https://launchpad.net/~kkuo/+archive/ubuntu/miscellaneous/+build/32386966

** Affects: python-trame (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  The current upload in the archive has example and docs files in `dist-
  packages`. What makes this worse is the inclusion of
  `/usr/lib/python3/dist-
  packages/build/lib/docs/vitepress/guide/jupyter/tests/test.py` which has
  invalid Python in it, resulting in installation of `python3-trame` to
  fail with the following error:
  
  ```
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  Solving dependencies... Done
  The following NEW packages will be installed:
-   python3-trame
+   python3-trame
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  Need to get 0 B/99.9 kB of archives.
  After this operation, 914 kB of additional disk space will be used.
  Selecting previously unselected package python3-trame.
  (Reading database ... 220464 files and directories currently installed.)
  Preparing to unpack .../python3-trame_3.12.0-2_all.deb ...
  Unpacking python3-trame (3.12.0-2) ...
  Setting up python3-trame (3.12.0-2) ...
-   File 
"/usr/lib/python3/dist-packages/build/lib/docs/vitepress/guide/jupyter/tests/test.py",
 line 8
-     await app.ui.ready  # noqa: F704
-     ^^^^^^^^^^^^^^^^^^
+   File 
"/usr/lib/python3/dist-packages/build/lib/docs/vitepress/guide/jupyter/tests/test.py",
 line 8
+     await app.ui.ready  # noqa: F704
+     ^^^^^^^^^^^^^^^^^^
  SyntaxError: 'await' outside function
  dpkg: error processing package python3-trame (--configure):
-  old python3-trame package postinst maintainer script subprocess failed with 
exit status 1
+  old python3-trame package postinst maintainer script subprocess failed with 
exit status 1
  Errors were encountered while processing:
-  python3-trame
+  python3-trame
  needrestart is being skipped since dpkg has failed
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  ```
  
  Following some investigation, it seems like a no-change rebuild may be
  sufficient to resolve this, since the logic to remove these files
  already exists in `d/rules`. A locally built and PPA-built version I
  made both install without this issue, though they do require the usage
  of `--force-depends` since some circular dependencies may have crept in
  against `python3-trame-client` and `python3-trame-server`
  
- Example PPA output (default dependencies):
+ Example somewhat working PPA output (default dependencies):
  https://launchpad.net/~kkuo/+archive/ubuntu/miscellaneous/+build/32386966

** Description changed:

  The current upload in the archive has example and docs files in `dist-
  packages`. What makes this worse is the inclusion of
  `/usr/lib/python3/dist-
  packages/build/lib/docs/vitepress/guide/jupyter/tests/test.py` which has
  invalid Python in it, resulting in installation of `python3-trame` to
  fail with the following error:
  
  ```
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  Solving dependencies... Done
  The following NEW packages will be installed:
    python3-trame
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  Need to get 0 B/99.9 kB of archives.
  After this operation, 914 kB of additional disk space will be used.
  Selecting previously unselected package python3-trame.
  (Reading database ... 220464 files and directories currently installed.)
  Preparing to unpack .../python3-trame_3.12.0-2_all.deb ...
  Unpacking python3-trame (3.12.0-2) ...
  Setting up python3-trame (3.12.0-2) ...
    File 
"/usr/lib/python3/dist-packages/build/lib/docs/vitepress/guide/jupyter/tests/test.py",
 line 8
      await app.ui.ready  # noqa: F704
      ^^^^^^^^^^^^^^^^^^
  SyntaxError: 'await' outside function
  dpkg: error processing package python3-trame (--configure):
   old python3-trame package postinst maintainer script subprocess failed with 
exit status 1
  Errors were encountered while processing:
   python3-trame
  needrestart is being skipped since dpkg has failed
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  ```
  
  Following some investigation, it seems like a no-change rebuild may be
  sufficient to resolve this, since the logic to remove these files
  already exists in `d/rules`. A locally built and PPA-built version I
  made both install without this issue, though they do require the usage
  of `--force-depends` since some circular dependencies may have crept in
- against `python3-trame-client` and `python3-trame-server`
+ against `python3-trame-client` and `python3-trame-server` via
+ `${python3:Depends}`.
  
  Example somewhat working PPA output (default dependencies):
  https://launchpad.net/~kkuo/+archive/ubuntu/miscellaneous/+build/32386966

** Description changed:

  The current upload in the archive has example and docs files in `dist-
  packages`. What makes this worse is the inclusion of
  `/usr/lib/python3/dist-
  packages/build/lib/docs/vitepress/guide/jupyter/tests/test.py` which has
  invalid Python in it, resulting in installation of `python3-trame` to
  fail with the following error:
  
  ```
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  Solving dependencies... Done
  The following NEW packages will be installed:
    python3-trame
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  Need to get 0 B/99.9 kB of archives.
  After this operation, 914 kB of additional disk space will be used.
  Selecting previously unselected package python3-trame.
  (Reading database ... 220464 files and directories currently installed.)
  Preparing to unpack .../python3-trame_3.12.0-2_all.deb ...
  Unpacking python3-trame (3.12.0-2) ...
  Setting up python3-trame (3.12.0-2) ...
    File 
"/usr/lib/python3/dist-packages/build/lib/docs/vitepress/guide/jupyter/tests/test.py",
 line 8
      await app.ui.ready  # noqa: F704
      ^^^^^^^^^^^^^^^^^^
  SyntaxError: 'await' outside function
  dpkg: error processing package python3-trame (--configure):
   old python3-trame package postinst maintainer script subprocess failed with 
exit status 1
  Errors were encountered while processing:
   python3-trame
  needrestart is being skipped since dpkg has failed
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  ```
  
  Following some investigation, it seems like a no-change rebuild may be
  sufficient to resolve this, since the logic to remove these files
  already exists in `d/rules`. A locally built and PPA-built version I
  made both install without this issue, though they do require the usage
  of `--force-depends` since some circular dependencies may have crept in
  against `python3-trame-client` and `python3-trame-server` via
  `${python3:Depends}`.
  
- Example somewhat working PPA output (default dependencies):
+ Example of a somewhat working PPA output (default dependencies):
  https://launchpad.net/~kkuo/+archive/ubuntu/miscellaneous/+build/32386966

** Summary changed:

- Example and docs files in dist-packages
+ Example and docs files in dist-packages breaking install

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144958

Title:
  Example and docs files in dist-packages breaking install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-trame/+bug/2144958/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to