libparted2
Closed this issue · 4 comments
Greetings. I am testing the new Ubuntu 20.04 . and i just realised that in the repository they lag behind. However when i tried to upgrade it from pip3 the setup fails,because libparted
does not exist in this release its called libparted2
. The library seems identical ,just this small changes brakes the requirements of pyparted. Just a bit of detail of these two packages.
Thank you in advance. Great project 😄
pyparted
Version: 3.11.2-11.1build1
Priority: optional
Section: python
Source: pyparted
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Herbert Parentes Fortes Neto <hpfn@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 297 kB
Provides: python3.8-parted
Depends: python3 (<< 3.9), python3 (>= 3.8~), python3:any, libc6 (>= 2.8), libparted2 (>= 3.1)
Suggests: python-parted-doc (>= 3.11.1-5)
Homepage: https://github.com/dcantrell/pyparted
Supported: 9m
Download-Size: 61.2 kB
APT-Sources: http://gb.archive.ubuntu.com/ubuntu focal/main amd64 Packages
Description: Python 3 interface for libparted
pyparted is a set of Python modules that provide Python programmers an
interface to libparted (http://www.gnu.org/software/parted), the GNU
parted library for disk partitioning and file system manipulation.
.
This package contains Python 3 extension itself.```
libparted2:
Package: libparted2
Version: 3.3-4
Priority: standard
Section: libs
Source: parted
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Parted Maintainer Team <parted-maintainers@alioth-lists.debian.net>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 468 kB
Provides: libparted
Depends: libblkid1 (>= 2.17.2), libc6 (>= 2.14), libdevmapper1.02.1 (>= 2:1.02.97), libuuid1 (>= 2.16), dmidecode
Suggests: parted, libparted-dev, libparted-i18n (= 3.3-4)
Breaks: python-parted (<< 3.6-5)
Homepage: http://www.gnu.org/software/parted
Task: standard, ubuntu-core
Supported: 9m
Download-Size: 159 kB
APT-Manual-Installed: no
APT-Sources: http://gb.archive.ubuntu.com/ubuntu focal/main amd64 Packages
Description: disk partition manipulator - shared library
GNU Parted is a program that allows you to create, destroy, resize, move,
and copy disk partitions. This is useful for creating space for new
operating systems, reorganizing disk usage, and copying data to new hard
disks.
.
This package contains the shared library.
This could be a small change in setup.py
I'm not familiar with how Ubuntu packages things, but this looks like a rename on their end. I don't mind patches to fix this sort of stuff, but someone more familiar with Ubuntu needs to do it for me.
Thanks i will try to find a contact with someone more familiar with ubuntu
I have figured it was my fault. I had to install libparted-dev
. From that point i was able to resolve this dependency. However i encountered another problem ,while i tried to installed pyparted.
Collecting pyparted
Using cached pyparted-3.11.5.tar.gz (96 kB)
Building wheels for collected packages: pyparted
Building wheel for pyparted (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-30cb7png/pyparted/setup.py'"'"'; __file__='"'"'/tmp/pip-install-30cb7png/pyparted/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-gee8k_uu
cwd: /tmp/pip-install-30cb7png/pyparted/
Complete output (28 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/parted
copying src/parted/disk.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/cachedlist.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/decorators.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/device.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/alignment.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/constraint.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/partition.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/geometry.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/__init__.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/filesystem.py -> build/lib.linux-x86_64-3.8/parted
running build_ext
building '_ped' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/src
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYPARTED_VERSION="3.11.5" -Iinclude -I/usr/include/python3.8 -c src/_pedmodule.c -o build/temp.linux-x86_64-3.8/src/_pedmodule.o
src/_pedmodule.c: In function ‘PyInit__ped’:
src/_pedmodule.c:666:58: error: ‘PED_PARTITION_BLS_BOOT’ undeclared (first use in this function); did you mean ‘PED_PARTITION_BOOT’?
666 | PyModule_AddIntConstant(m, "PARTITION_BLS_BOOT", PED_PARTITION_BLS_BOOT);
| ^~~~~~~~~~~~~~~~~~~~~~
| PED_PARTITION_BOOT
src/_pedmodule.c:666:58: note: each undeclared identifier is reported only once for each function it appears in
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pyparted
Running setup.py clean for pyparted
Failed to build pyparted
Installing collected packages: pyparted
Running setup.py install for pyparted ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-30cb7png/pyparted/setup.py'"'"'; __file__='"'"'/tmp/pip-install-30cb7png/pyparted/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-fx58thsk/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/pyparted
cwd: /tmp/pip-install-30cb7png/pyparted/
Complete output (28 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/parted
copying src/parted/disk.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/cachedlist.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/decorators.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/device.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/alignment.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/constraint.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/partition.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/geometry.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/__init__.py -> build/lib.linux-x86_64-3.8/parted
copying src/parted/filesystem.py -> build/lib.linux-x86_64-3.8/parted
running build_ext
building '_ped' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/src
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYPARTED_VERSION="3.11.5" -Iinclude -I/usr/include/python3.8 -c src/_pedmodule.c -o build/temp.linux-x86_64-3.8/src/_pedmodule.o
src/_pedmodule.c: In function ‘PyInit__ped’:
src/_pedmodule.c:666:58: error: ‘PED_PARTITION_BLS_BOOT’ undeclared (first use in this function); did you mean ‘PED_PARTITION_BOOT’?
666 | PyModule_AddIntConstant(m, "PARTITION_BLS_BOOT", PED_PARTITION_BLS_BOOT);
| ^~~~~~~~~~~~~~~~~~~~~~
| PED_PARTITION_BOOT
src/_pedmodule.c:666:58: note: each undeclared identifier is reported only once for each function it appears in
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-30cb7png/pyparted/setup.py'"'"'; __file__='"'"'/tmp/pip-install-30cb7png/pyparted/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-fx58thsk/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/pyparted Check the logs for full command output.