Package Details: pykickstart-tools 3.3-1

Git Clone URL: https://aur.archlinux.org/python-pykickstart.git (read-only)
Package Base: python-pykickstart
Description: tools for reading and writing kickstart files
Upstream URL: http://fedoraproject.org/wiki/Pykickstart
Licenses: GPL
Submitter: eworm
Maintainer: eworm
Last Packager: eworm
Votes: 3
Popularity: 0.000251
First Submitted: 2015-09-04 13:10
Last Updated: 2016-07-04 20:59

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

dncrash commented on 2018-12-18 15:21

I had the same problems as gojun077 and his fix worked (I installed python-orderedset and fixed the import).

I also had a problem with urlgrabber not being installed even though it's listed as a dependency. Shouldn't it install automatically?

==> Missing dependencies: -> urlgrabber ==> ERROR: Could not resolve all dependencies. Error making: python-pykickstart (python-pykickstart pykickstart-tools)

gojun077 commented on 2017-04-13 06:07

Note that the source on github is intended to be built for RHEL and Fedora. The Python3 module orderedset https://pypi.python.org/pypi/orderedset/ is renamed to 'ordered_set' on Fedora. But on non-RHEL Linux distro's this will cause the following error in parser.py:

Traceback (most recent call last):
File "/usr/bin/ksvalidator", line 33, in <module>
from pykickstart.parser import KickstartParser, preprocessKickstart
File "/usr/lib/python3.6/site-packages/pykickstart/parser.py", line 40, in <module>
from ordered_set import OrderedSet # type: ignore
ModuleNotFoundError: No module named 'ordered_set'

To fix this error, first make sure you have installed the AUR package 'python-orderedset' (python3) or installed orderedset from pip (python3). Next edit /usr/lib/python3.6/site-packages/pykickstart/parser.py line 40 and replace 'ordered_set' with 'orderedset'

You should then be good to go!

Maintainer: please add AUR python-orderedset to list of deps and use sed in the PKGBUILD to rename the python module in line 40 of 'parser.py'

gojun077 commented on 2016-10-15 10:53

The "Download snapshot" link points to https://aur.archlinux.org/cgit/aur.git/snapshot/python-pykickstart.tar.gz

instead of
https://aur.archlinux.org/cgit/aur.git/snapshot/python2-pykickstart.tar.gz

Also the sha1sum needs to be updated for pykickstart-1.99.66.zip which gets downloaded before building the .xz package.

Salamandar commented on 2016-09-08 16:59

Got an error while starting blivet :

Traceback (most recent call last):
File "/usr/bin/blivet-gui-daemon", line 38, in <module>
from blivetgui.communication.server import BlivetUtilsServer
File "/usr/lib/python3.5/site-packages/blivetgui/communication/server.py", line 35, in <module>
from ..blivet_utils import BlivetUtils
File "/usr/lib/python3.5/site-packages/blivetgui/blivet_utils.py", line 44, in <module>
import pykickstart.parser
File "/usr/lib/python3.5/site-packages/pykickstart/parser.py", line 40, in <module>
from ordered_set import OrderedSet # type: ignore
ImportError: No module named 'ordered_set'

simonsd commented on 2016-07-04 07:53

Installation fails because this package builds both python-pykickstart and python2-pykickstart. Pacman notices the 2 packages install the same files and errors out.

Removing one of the packages from the pkgname array, removing the corresponding package_ function (though not really required as it will most likely not be called) and renaming the remaining package_ function to simply "package()" works for me.