Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1179416

Bug#1058406: python-lzstring: FTBFS: ModuleNotFoundError: No module named 'imp'

From Alexandre Detiste <alexandre.detiste@gmail.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#1058406: python-lzstring: FTBFS: ModuleNotFoundError: No module named 'imp'
Date 2023-12-20 03:10 +0100
Message-ID <HMUc1-eLe8-3@gated-at.bofh.it> (permalink)
References <HK7Sb-d2tt-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Here is the patch.

It's just about hacking out the referencesto python3-future.

Greetings


python-lzstring $ git diff
diff --git a/debian/control b/debian/control
index 727100d..1d1d4aa 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,6 @@ Build-Depends: debhelper-compat (= 13),
                dh-python,
                python3-all,
                python3-setuptools,
-               python3-future
 Standards-Version: 4.6.0
 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-lzstring
 Vcs-Git: https://salsa.debian.org/python-team/packages/python-lzstring.git
diff --git a/lzstring/__init__.py b/lzstring/__init__.py
index a264411..aa0ae48 100644
--- a/lzstring/__init__.py
+++ b/lzstring/__init__.py
@@ -1,16 +1,6 @@
  #!/usr/bin/python
  # -*- coding: utf-8 -*-

-from __future__ import division
-from __future__ import unicode_literals
-from __future__ import print_function
-from __future__ import absolute_import
-from builtins import range
-from builtins import int
-from builtins import chr
-from future import standard_library
-standard_library.install_aliases()
-from builtins import object
 import math
 import re

diff --git a/setup.py b/setup.py
index dca116d..ed03023 100644
--- a/setup.py
+++ b/setup.py
@@ -31,5 +31,4 @@ setup(
     'Programming Language :: Python :: 3.2',
     'Programming Language :: Python :: 3.3',
     ],
-    install_requires=['future>=0.14.0'],
 )

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1058406: python-lzstring: FTBFS: ModuleNotFoundError: No module named 'imp' Alexandre Detiste <alexandre.detiste@gmail.com> - 2023-12-20 03:10 +0100

csiph-web