Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 22.04.1 LTS - .deb SyntaxWarning: "is" with a literal. #95

Open
faxenmaxen opened this issue Oct 18, 2022 · 2 comments
Open

Ubuntu 22.04.1 LTS - .deb SyntaxWarning: "is" with a literal. #95

faxenmaxen opened this issue Oct 18, 2022 · 2 comments

Comments

@faxenmaxen
Copy link

faxenmaxen commented Oct 18, 2022

Hello,

i can install backys i but it display a SyntaxWarning:

Setting up backy2 (2.13.8) ...
/usr/lib/python3/dist-packages/backy2/io/lib/rados.py:2279: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.nspace is "" else self.nspace, self.locator_key)

which Ubuntu versions are supported?
(same warning on Debian Bullseye)

root@glbacky2-test:~# wget https://github.com/wamdam/backy2/releases/download/2.13.8/backy2_2.13.8_all.deb
--2022-10-18 11:57:05--  https://github.com/wamdam/backy2/releases/download/2.13.8/backy2_2.13.8_all.deb
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/42891479/a7e5d800-2e33-11eb-90f0-c07c56681d10?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221018%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221018T115705Z&X-Amz-Expires=300&X-Amz-Signature=8bb6cb621cb5aef126c2200b62b707ea3fa07cc7519b11bd4c7d3f8162bfb6fd&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=42891479&response-content-disposition=attachment%3B%20filename%3Dbacky2_2.13.8_all.deb&response-content-type=application%2Foctet-stream [following]
--2022-10-18 11:57:05--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/42891479/a7e5d800-2e33-11eb-90f0-c07c56681d10?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221018%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221018T115705Z&X-Amz-Expires=300&X-Amz-Signature=8bb6cb621cb5aef126c2200b62b707ea3fa07cc7519b11bd4c7d3f8162bfb6fd&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=42891479&response-content-disposition=attachment%3B%20filename%3Dbacky2_2.13.8_all.deb&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 74376 (73K) [application/octet-stream]
Saving to: ‘backy2_2.13.8_all.deb’

backy2_2.13.8_all.deb                              100%[===============================================================================================================>]  72.63K  --.-KB/s    in 0.01s   

2022-10-18 11:57:05 (7.22 MB/s) - ‘backy2_2.13.8_all.deb’ saved [74376/74376]

root@glbacky2-test:~# dpkg -i 
backy2_2.13.8_all.deb  .cache/                snap/                  .ssh/                  
root@glbacky2-test:~# dpkg -i backy2_2.13.8_all.deb 
Selecting previously unselected package backy2.
(Reading database ... 73550 files and directories currently installed.)
Preparing to unpack backy2_2.13.8_all.deb ...
Unpacking backy2 (2.13.8) ...
dpkg: dependency problems prevent configuration of backy2:
 backy2 depends on python3-alembic; however:
  Package python3-alembic is not installed.
 backy2 depends on python3-dateutil; however:
  Package python3-dateutil is not installed.
 backy2 depends on python3-fusepy; however:
  Package python3-fusepy is not installed.
 backy2 depends on python3-prettytable; however:
  Package python3-prettytable is not installed.
 backy2 depends on python3-psutil; however:
  Package python3-psutil is not installed.
 backy2 depends on python3-setproctitle; however:
  Package python3-setproctitle is not installed.
 backy2 depends on python3-shortuuid; however:
  Package python3-shortuuid is not installed.
 backy2 depends on python3-sqlalchemy (>= 1.0.11); however:
  Package python3-sqlalchemy is not installed.
 backy2 depends on libfuse2; however:
  Package libfuse2 is not installed.
 backy2 depends on python3-lz4; however:
  Package python3-lz4 is not installed.
 backy2 depends on python3-pycryptodome; however:
  Package python3-pycryptodome is not installed.

dpkg: error processing package backy2 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 backy2
root@glbacky2-test:~# apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libfuse2 python3-alembic python3-dateutil python3-fusepy python3-greenlet python3-lz4 python3-mako python3-prettytable python3-psutil python3-pycryptodome python3-setproctitle python3-shortuuid
  python3-sqlalchemy python3-sqlalchemy-ext python3-wcwidth
Suggested packages:
  python-greenlet-dev python-greenlet-doc python3-beaker python-mako-doc python-psutil-doc python-sqlalchemy-doc python3-fdb python3-pymssql python3-mysqldb python3-psycopg2 python3-asyncpg
  python3-aiosqlite
The following NEW packages will be installed:
  libfuse2 python3-alembic python3-dateutil python3-fusepy python3-greenlet python3-lz4 python3-mako python3-prettytable python3-psutil python3-pycryptodome python3-setproctitle python3-shortuuid
  python3-sqlalchemy python3-sqlalchemy-ext python3-wcwidth
0 upgraded, 15 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 2,753 kB of archives.
After this operation, 14.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-mako all 1.1.3+ds1-2ubuntu0.1 [60.5 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 python3-greenlet amd64 1.1.2-3build1 [65.0 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 python3-sqlalchemy all 1.4.31+ds1-1build1 [996 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 python3-alembic all 1.7.6-1 [136 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 python3-dateutil all 2.8.1-6 [78.4 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 libfuse2 amd64 2.9.9-5ubuntu3 [90.3 kB]
Get:7 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-fusepy all 3.0.1-2 [11.3 kB]
Get:8 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 python3-wcwidth all 0.2.5+dfsg1-1 [21.9 kB]
Get:9 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 python3-prettytable all 2.5.0-2 [31.3 kB]
Get:10 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 python3-psutil amd64 5.9.0-1build1 [158 kB]
Get:11 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 python3-setproctitle amd64 1.2.2-2build1 [16.1 kB]
Get:12 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-shortuuid all 1.0.8-1 [12.3 kB]
Get:13 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-lz4 amd64 3.1.3+dfsg-1build3 [33.3 kB]
Get:14 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 python3-pycryptodome amd64 3.11.0+dfsg1-3build1 [1,027 kB]
Get:15 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 python3-sqlalchemy-ext amd64 1.4.31+ds1-1build1 [16.4 kB]
Fetched 2,753 kB in 0s (6,811 kB/s)           
Selecting previously unselected package python3-mako.
(Reading database ... 73613 files and directories currently installed.)
Preparing to unpack .../00-python3-mako_1.1.3+ds1-2ubuntu0.1_all.deb ...
Unpacking python3-mako (1.1.3+ds1-2ubuntu0.1) ...
Selecting previously unselected package python3-greenlet.
Preparing to unpack .../01-python3-greenlet_1.1.2-3build1_amd64.deb ...
Unpacking python3-greenlet (1.1.2-3build1) ...
Selecting previously unselected package python3-sqlalchemy.
Preparing to unpack .../02-python3-sqlalchemy_1.4.31+ds1-1build1_all.deb ...
Unpacking python3-sqlalchemy (1.4.31+ds1-1build1) ...
Selecting previously unselected package python3-alembic.
Preparing to unpack .../03-python3-alembic_1.7.6-1_all.deb ...
Unpacking python3-alembic (1.7.6-1) ...
Selecting previously unselected package python3-dateutil.
Preparing to unpack .../04-python3-dateutil_2.8.1-6_all.deb ...
Unpacking python3-dateutil (2.8.1-6) ...
Selecting previously unselected package libfuse2:amd64.
Preparing to unpack .../05-libfuse2_2.9.9-5ubuntu3_amd64.deb ...
Unpacking libfuse2:amd64 (2.9.9-5ubuntu3) ...
Selecting previously unselected package python3-fusepy.
Preparing to unpack .../06-python3-fusepy_3.0.1-2_all.deb ...
Unpacking python3-fusepy (3.0.1-2) ...
Selecting previously unselected package python3-wcwidth.
Preparing to unpack .../07-python3-wcwidth_0.2.5+dfsg1-1_all.deb ...
Unpacking python3-wcwidth (0.2.5+dfsg1-1) ...
Selecting previously unselected package python3-prettytable.
Preparing to unpack .../08-python3-prettytable_2.5.0-2_all.deb ...
Unpacking python3-prettytable (2.5.0-2) ...
Selecting previously unselected package python3-psutil.
Preparing to unpack .../09-python3-psutil_5.9.0-1build1_amd64.deb ...
Unpacking python3-psutil (5.9.0-1build1) ...
Selecting previously unselected package python3-setproctitle:amd64.
Preparing to unpack .../10-python3-setproctitle_1.2.2-2build1_amd64.deb ...
Unpacking python3-setproctitle:amd64 (1.2.2-2build1) ...
Selecting previously unselected package python3-shortuuid.
Preparing to unpack .../11-python3-shortuuid_1.0.8-1_all.deb ...
Unpacking python3-shortuuid (1.0.8-1) ...
Selecting previously unselected package python3-lz4.
Preparing to unpack .../12-python3-lz4_3.1.3+dfsg-1build3_amd64.deb ...
Unpacking python3-lz4 (3.1.3+dfsg-1build3) ...
Selecting previously unselected package python3-pycryptodome.
Preparing to unpack .../13-python3-pycryptodome_3.11.0+dfsg1-3build1_amd64.deb ...
Unpacking python3-pycryptodome (3.11.0+dfsg1-3build1) ...
Selecting previously unselected package python3-sqlalchemy-ext:amd64.
Preparing to unpack .../14-python3-sqlalchemy-ext_1.4.31+ds1-1build1_amd64.deb ...
Unpacking python3-sqlalchemy-ext:amd64 (1.4.31+ds1-1build1) ...
Setting up python3-lz4 (3.1.3+dfsg-1build3) ...
Setting up python3-pycryptodome (3.11.0+dfsg1-3build1) ...
Setting up libfuse2:amd64 (2.9.9-5ubuntu3) ...
Setting up python3-psutil (5.9.0-1build1) ...
Setting up python3-wcwidth (0.2.5+dfsg1-1) ...
Setting up python3-greenlet (1.1.2-3build1) ...
Setting up python3-setproctitle:amd64 (1.2.2-2build1) ...
Setting up python3-shortuuid (1.0.8-1) ...
Setting up python3-dateutil (2.8.1-6) ...
Setting up python3-prettytable (2.5.0-2) ...
Setting up python3-mako (1.1.3+ds1-2ubuntu0.1) ...
Setting up python3-fusepy (3.0.1-2) ...
Setting up python3-sqlalchemy (1.4.31+ds1-1build1) ...
Setting up python3-sqlalchemy-ext:amd64 (1.4.31+ds1-1build1) ...
Setting up python3-alembic (1.7.6-1) ...
Setting up backy2 (2.13.8) ...
/usr/lib/python3/dist-packages/backy2/io/lib/rados.py:2279: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.nspace is "" else self.nspace, self.locator_key)
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
needrestart is being skipped since dpkg has failed
root@glbacky2-test:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy
root@glbacky2-test:~# 

Thanks

@faxenmaxen faxenmaxen changed the title Ubuntu 22.04.1 LTS - .deb file is not working Ubuntu 22.04.1 LTS - .deb SyntaxWarning: "is" with a literal. Oct 18, 2022
@royvanderzon
Copy link

Is this issue already solved?

@networkjackbb
Copy link

Is this issue already solved?

Since the quoted source file: backy2/io/lib/rados.py hasn't been updated in 8 years, I would say it is unlikely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants