Closed takov751 closed 4 years ago
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.
Seems duplication I will close this discussion. Thank you for your time #71
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 calledlibparted2
. 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 :smile:pyparted
libparted2:
This could be a small change in setup.py