Can I get Pasaffe on Fedora?
It's very nice and lightweight!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Pasaffe Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
I don't think anyone has packaged Pasaffe on Fedora yet. It would be great if someone did though!
Revision history for this message
![]() |
#2 |
I just rebuilt a rpm as I updated to Fedora 32.
I did the following:
$ sudo dnf install rpmdevtools
$ wget https:/
$ tar xvzf pasaffe-0.56.tar.gz
$ cd pasaffe-0.56
$ python setup.py bdist_rpm
$ find dist/*.rpm
dist/pasaffe-
dist/pasaffe-
$ sudo dnf install dist/pasaffe-
If others would like an rpm package for fedora I'm happy to help figure out build details either on launchpad or somewhere else.
(If no one else wants it then at least next time I hit this issue I'll find this note from myself)
Revision history for this message
![]() |
#3 |
The above needed one additional fix for Fedora 333 as `ElementTree.
The below quick (& dirty) patch worked for me.
```
$ diff /usr/lib/
86,87c86
< #ele_widgets = tree.getiterato
< ele_widgets = tree.iter("object")
---
> ele_widgets = tree.getiterato
109,110c108
< #ele_signals = tree.getiterato
< ele_signals = tree.iter("signal")
---
> ele_signals = tree.getiterato
```
Revision history for this message
![]() |
#4 |
Thanks for comment #3, I've fixed that in version 0.56,
Revision history for this message
![]() |
#5 |
Hi Marc and Michael,
I was unsuccessful getting pasaffe installed on Fedora 33. I'm trying to install 0.57-1. Your directions worked great until this point:
[russellwilson@
dist/pasaffe-
dist/pasaffe-
[russellwilson@
Last metadata expiration check: 0:16:45 ago on Sat 23 Jan 2021 04:43:45 PM PST.
Error: Will not install a source rpm package (pasaffe-
I'm new to Fedora and rpm so please forgive me if this question is basic.
Any suggestions?
Thank you in advance for your help!
Revision history for this message
![]() |
#6 |
Hey Russ!
Apologies, I had a mistake in my instructions, you should install the .noarch.rpm, not the .src.rpm!
In your case:
$ sudo dnf install ./dist/
Michael
Revision history for this message
![]() |
#7 |
Hi Michael!
Thank you so much for your quick reply. Yes, that did the trick. I should have just tried the other rpm first!
Install seemed to go well but the software won't launch for some reason...
Anything I need to do post install to get it to work?
Thanks again!
Russ
Revision history for this message
![]() |
#8 |
I did a fresh install on Fedora 33 but still not joy launching pasaffe after what appears to be a successful install.
Here's the message I receive:
[russ@localhost ~]$ pasaffe
Traceback (most recent call last):
File "/usr/bin/pasaffe", line 45, in <module>
import pasaffe
File "/usr/lib/
from pasaffe import PasaffeWindow # noqa: E402
File "/usr/lib/
from pasaffe_lib.readdb import PassSafeFile # noqa: E402
File "/usr/lib/
from unidecode import unidecode # noqa: E402
ModuleNotFoundE
Have you seen this missing 'unidecode' error before?
Any help you can provide would be much appreciated!
Russ
Revision history for this message
![]() |
#9 |
Hey Russ,
Try installing python3-unidecode - `sudo dnf install python3-unidecode`?
I'll try dig up notes when I first installed pasaffe to see if there are other dependencies.
Michael
`
[michael@x1 ~]$ python -c "import unidecode; print(unidecode
['/usr/
[michael@x1 ~]$ rpm -qf /usr/lib/
python3-
`
Revision history for this message
![]() |
#10 |
Other requirements are documented in the README - https:/
If you need help with a specific fedora package to meet the dependency let me know and I'll check my local install.
Unfortunately I did this the "quick" way and didn't make any notes or set up a clean build environment, I just hacked enough to make it work for me.
Revision history for this message
![]() |
#11 |
The unidecode did it! Thank you so much, Michael! I really appreciate all of your help!
Clearly I have a long way to go in debugging errors in Linux, but being able to make Fedora my every day machine depends on being able to run my password manager of choice. Thank you! Thank you! Thank you!
Russ
Revision history for this message
![]() |
#12 |
Hello!
I'm trying to build the .rpm-package for my Fedora install, since I'm migrating from Xubuntu to Fedora. I get the following error though:
....
+ export LDFLAGS
+ LT_SYS_
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd pasaffe-0.58
+ python3 setup.py install --single-
ERROR: Python module psyco not found
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-
fel: Dålig slutstatus från /var/tmp/
RPM byggvarningar:
source_
RPM-byggfel:
Dålig slutstatus från /var/tmp/
error: command '/usr/bin/rpmbuild' failed with exit code 1
It's in Swedish. But it's saying that module psyco is missing. From what I gather from googling "psyco" it's been abandoned in 2012. Python is not really my thing, but if someone has a solution, I would be grateful!
Revision history for this message
![]() |
#13 |
Try editing the pasaffe_
try:
import psyco
psyco.full()
except ImportError:
pass
Does that work?
Revision history for this message
![]() |
#14 |
It works, but it still does not put out an .rpm-package. It gives the following result:
...
+ export LDFLAGS
+ LT_SYS_
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd pasaffe-0.58
+ python3 setup.py install --single-
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-
fel: Dålig slutstatus från /var/tmp/
RPM byggvarningar:
source_
RPM-byggfel:
Dålig slutstatus från /var/tmp/
error: command '/usr/bin/rpmbuild' failed with exit code 1
Thanks for a fast reply
Revision history for this message
![]() |
#15 |
I managed to built the package in the end. These are the complete steps
$ sudo dnf install -y rpmdevtools python3-pip python3-
$ pip3 install unidecode
$ wget https:/
$ tar xvzf pasaffe-0.58.tar.gz
$ cd pasaffe-0.58
$ vim pasaffe_
Delete the following lines:
try:
import psyco
psyco.full()
except ImportError:
pass
$ sudo sed -i -e 's@ --single-
$ python setup.py bdist_rpm
$ find dist/*.rpm
dist/pasaffe-
dist/pasaffe-
$ sudo dnf install dist/pasaffe-
Can you help with this problem?
Provide an answer of your own, or ask Paul Ouellette for more information if necessary.