Package: python3-rpy2
Version: 3.0.5-1
Severity: normal

Dear Maintainer,

python3-rpy2 should probably include a dependency on tzlocal or import
tzlocal should not be top level import.

/usr/lib/python3/dist-packages/rpy2/robjects/pandas2ri.py directly
imports tzlocal

It looks like the following might also work.

--- /tmp/pandas2ri.py   2019-07-18 15:10:43.668445312 -0700
+++ pandas2ri.py        2019-07-18 15:11:10.229349808 -0700
@@ -21,5 +21,4 @@
 import numpy
 import pytz
-import tzlocal
 import warnings

@@ -157,4 +156,5 @@
         timezone = default_timezone
     else:
+        import tzlocal
         timezone = tzlocal.get_localzone()
     return timezone



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'oldstable-debug'), (500,
'testing'), (500, 'stable'), (110, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-rpy2 depends on:
ii  python3                       3.7.3-1
pn  python3-cffi-backend-api-max  <none>
pn  python3-cffi-backend-api-min  <none>
ii  python3-jinja2                2.10.1-1
ii  python3-numpy                 1:1.16.2-1
ii  python3-pytest                3.10.1-2
ii  python3-simplegeneric         0.8.1-2
ii  r-base-core                   3.5.2-1

python3-rpy2 recommends no packages.

Versions of packages python3-rpy2 suggests:
ii  python-rpy-doc [python-rpy-docs]  1.0.3-30

-- no debconf information

Reply via email to