New answers tagged python
1
vote
Accepted
Failing to install PyPi package gdown via py2dsp
This is a known bug in py2dsp, unfortunately with no fix for now.
Pointing py2dsp at the source repository doesn’t work either, so I suspect the only way forward is to write a source package from ...
0
votes
systemd "status=203/EXEC" error when creating new service
I had the error when the binary belong to a root user with permission 700 e.g. hadn't execution permission for others. The service unit use own user so it can't start the service.
I made chown o+x /...
1
vote
meld won't start on Cygwin: No module named 'meld'
Alternative solution to the problem explained by @einpoklum.
Add location where meld/conf.py is to path via e.g.
export PYTHONPATH=/usr/lib/pythonN.M/site-packages
The path can be found via e.g.
...
0
votes
Divide values in all columns of one file by a value in the corrosponding column if a second file
Here's some python which will do what's needed, with some error checking on the input data. I'm making some assumptions though:
All input and output is via CSV files.
The normalisation table only ...
2
votes
Install a Python package on Debian/Devuan when apt has no package for it
As has been noted, there are good reasons why pip no longer lets you install packages system wide, but I also have this use case managing software for large numbers of users who may have access to the ...
10
votes
Accepted
Install a Python package on Debian/Devuan when apt has no package for it
The fact that Debian won't let you do that does come from somewhere: pip system-wide installations are, by design, incompatible with system-managed python installations. Pip itself has recognized that ...
0
votes
automatize partition creation with fdisk
Firstly use a more appropriate tool.
But if you need to automate this kind of input, use a here-doc:
sudo fdisk /dev/mmcblk1 <<\EndOfAnswers
p
d
w
q
EndOfAnswers
(You can choose whatever single ...
0
votes
Is it existing better way to create user and password with salt tools
That's working with the chpasswd tool
for i in $(cat hostname_list.txt); do salt $i cmd.run "echo 'jdoe:XXXXXXXX' | chpasswd" ; done ;
1
vote
automatize partition creation with fdisk
Consider SFDisk for this job.
https://stackoverflow.com/questions/12150116/how-to-script-sfdisk-or-parted-for-multiple-partitions
TIA
Carlos Romel
Top 50 recent answers are included
Related Tags
python × 2281linux × 326
bash × 226
ubuntu × 194
python3 × 149
debian × 148
pip × 142
shell-script × 136
centos × 117
shell × 110
software-installation × 85
awk × 74
scripting × 74
cron × 72
text-processing × 67
rhel × 67
systemd × 59
apt × 59
package-management × 57
perl × 57
sed × 55
yum × 54
arch-linux × 53
raspberry-pi × 47
ssh × 44