New answers tagged

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 ...
Stephen Kitt's user avatar
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 /...
Sergey Ponomarev's user avatar
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. ...
Alex Martian's user avatar
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 ...
Danny Smith's user avatar
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 ...
szmoore's user avatar
  • 121
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 ...
Marcus Müller's user avatar
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 ...
Martin Kealey's user avatar
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 ;
dubis's user avatar
  • 1,450
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
user117799's user avatar

Top 50 recent answers are included