As far as I know Arch/Manjaro should have all of the packages required.
There may well be an issue with the installation tool Gdebi but there is no reason that the software can't be unpacked manually and installed manually, footswitch is written in python.
Dependencies are:
python (>= 2.7), python-configobj, vlc (>=2.1.4), libreoffice-writer (>=4.2), libreoffice-gnome, libreoffice-gtk, python3-uno, libreoffice-script-provider-python, default-jre, python-wxgtk3.0, sqlite3, pulseaudio (>=4.0), fuse, gvfs, gvfs-backends, gvfs-bin, gvfs-fuse, sox, wkhtmltopdf, python-dateutil, python-evdev, python-requests, swh-plugins, cmt, bs2b-ladspa, pulseaudio-utils, ladspa-sdk, python-notify2
Suggests: ffmpeg (>= 2.6)
Note: that the next release 5.1.0 removes the requirement for the gvfs modules and shifts from python2 to python3
Once everything has been copied into place manually run
sudo python /usr/share/footswitch2/fs2_setup.py
if all goes well a simple
fs2
on the command line or a link to /usr/bin/fs2 will start footswitch
The best bet is to try it and let me know if there are issues, what they are and I can resolve them.
If your question is, do I intend to create an install package for Manjaro, the answer is no I don't, as I do not use that OS.
Finally, see this question and answers: https://unix.stackexchange.com/questions/83540/installing-a-deb-package-on-arch-is-it-possible
If you have any questions, feel free to contact me.
Regards,
Rolf
Last edit: Rolf 2018-08-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've installed the lib and usr folder/files to root and am now checking/installing your dependency list. I have questions concerning the following...
Missing from manjaro (and AUR) repo...
python-wxgtk3.0
python-notify2
python3-uno
(will the standard python package 3.6.6.1 include these or are there alternatives?)
pulseaudio-utils
(but various others are available such as pulseaudio-ctl - will that do?)
default-jre
(but jre8-openjdk is installed - up to jre10 available)
gvfs-backends
gvfs-bin
gvfs-fuse
(may be in main gvfs package?)
bs2b-ladspa
ladspa-sdk
(I assume ladspa alone will suffice?)
NOTE: Current version of ffmpeg on Manjaro has an “n” in front of version number 4 (ie n4.0.2). This causes identity crisis with get_iplayer: will it be ok with footswitch?
Apart from above beginning to look promising. :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's the old package name switcheroo I see. https://aur.archlinux.org/packages/wxpython-gtk2/ should be fine
wxpython Version 2.8 gtk2. Avoid the gtk3 version as key widgets changed and makes a mess of the main screen.
python3-uno has to be there somewhere as it is part of libreoffice
pulseaudio-utils is a package containing the command line utilites for pulseaudio,
pactl, pacmd, pamon etc I pretty sure that they are not used unless unless you want to access the equaliser or effects such as mono or pulseaudio filters like noise gates.
jre whichever one you have, it is used by libreoffice to enable the scripts to communicate with footswitch and should be turned on in libreoffice>Tools>Advanced
The gvfs packages are for connecting to webdav connected drives and performing automated downloads. This feature has been removed from the latest version but I am reasonably sure that this should fail quietly and not affect you if you don't have it.
To begin:
I do not intend using libre in this project and it is not currently installed. Is this vital? We do not use it on the ubuntu maching but it is installed there.
Similarly we do not (knowingly) use any audio filters, nor auto-downloads.
On running the command I get a pop-up panel saying...
Attempt to delete old footswitch rules if they exist
old 50-footswitch.rules files did not exist - This does not matter
Issuing the udevadm commands to register Known foot pedals
and in Terminal it says...
/usr/share/footswitch2/fs2_setup.py:40: wxPyDeprecationWarning: Call to deprecated item. Use Move instead.
self.MoveXY(10,10)
Traceback (most recent call last):
File "/usr/share/footswitch2/fs2_setup.py", line 75, in OnTimer
user = [u for u in pwd.getpwall() if u.pw_dir >0 and u.pw_uid >999 and u.pw_dir.startswith('/home')]
File "/usr/share/footswitch2/fs2_setup.py", line 75, in <listcomp>
user = [u for u in pwd.getpwall() if u.pw_dir >0 and u.pw_uid >999 and u.pw_dir.startswith('/home')]
TypeError: '>' not supported between instances of 'str' and 'int'</listcomp>
Then it hangs until I hit Ctrl-C, when the popup also goes away.
Sorry. :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just checked in, it's late on Sunday night, I'll come back to you tomorrow
Rolf
On 12/08/18 16:27, Dave Stiles wrote:
Hi, Rolf. I ran the setup command but it failed.
To begin:
I do not intend using libre in this project and it is not currently installed. Is this vital? We do not use it on the ubuntu maching but it is installed there.
Similarly we do not (knowingly) use any audio filters, nor auto-downloads.
On running the command I get a pop-up panel saying...
Attempt to delete old footswitch rules if they exist
old 50-footswitch.rules files did not exist - This does not matter
Issuing the udevadm commands to register Known foot pedals
and in Terminal it says...
/usr/share/footswitch2/fs2_setup.py:40: wxPyDeprecationWarning: Call to deprecated item. Use Move instead.
self.MoveXY(10,10)
Traceback (most recent call last):
File "/usr/share/footswitch2/fs2_setup.py", line 75, in OnTimer
user = [u for u in pwd.getpwall() if u.pw_dir >0 and u.pw_uid >999 and u.pw_dir.startswith('/home')]
File "/usr/share/footswitch2/fs2_setup.py", line 75, in <listcomp>
user = [u for u in pwd.getpwall() if u.pw_dir >0 and u.pw_uid >999 and u.pw_dir.startswith('/home')]
TypeError: '>' not supported between instances of 'str' and 'int'</listcomp>
Then it hangs until I hit Ctrl-C, when the popup also goes away.
The fact that you are getting deprecation errors, suggests that you are using a newer version of wxpython than that version of footswitch was written on (wx 2.8) but it should still function.
The setup is attempting to set the environment for evdev to access the foot pedal on your system.
For this to happen it attempts to ensure that the groups 'plugdev' and 'input' exist on your system, if they don't it creates them.
The next step is to add any users on your system to those groups.
It may be that Manjaro has an issue with that or indeed uses a different group for the udev entries or keeps them in a different place. (/dev/input)
Next it attempts to identify the foot pedal on your system from a list of know id's, identifies the event id (/dev/input/event(n)) and stamps that into the $HOME/fs2.cfg file.
That is pretty much it.
What foot pedal is attached to your system?
lsusb should show you.
If you are not using libreoffice, what are you using or are you not seeking to use footswitch as a transcriber? Footswitch and Libreoffice are tied together using macros that allow you to control the audio playback from within libreoffice as well as via the foot pedal.
The footswitch2.pdf file that comes with footswitch has detailed notes and some trouble shooting help as well. You should read
1.1.2 Trouble shooting Notes
1.3 Access to the foot pedal HID device using /lib/udev/rules.d
1.4 The fs2_list_devices.py device identification program
and possibly
Remapping foot pedal input codes
I suspect that your issues are to do with slight differences in the Linux environment and the setup and configuration does expect Mint/ Ubuntu.
Regards
Rolf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, Rolf. Thanks for getting back to me. I should say: this project is not critical and a few days or even weeks delay are not important = ie, no rush. :)
This is a backup system in case the one in use fails. It's Manjaro because I'm gradually transitioning from Mint.
We are using two machines for transcription: one to run footswitch2 and one for libre writer. The two are not footswitch-connected.
I'm ok with what you're saying and could alter the permissions if necessary for line 75 (OnTimer and ListComp). My problem so far is: "TypeError: '>' not supported between instances of 'str' and 'int'" which causes the build to fail.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dave, the reason that I detailed what the setup is attempting to do, was so that you can manually perform those actions on your Manjaro machine.
The reason being, that I suspect there may be differences between the commands available to perform those actions between Manjaro and Ubuntu/Mint or the environment, which no amount of fiddling with the code itself is going to fix, without an in depth knowledge of what those differences are.
I do now recall you and your circumstances from 2016 and your initial installation.
Can I assume from what you are saying about not using LibreOffice, that you never made use of the TCP_SERVER configuration setting, to run footswitch on one box and LibreOffice on the other?
The purpose of them being able to talk to each other is, primarily, to enable you to request timestamps stamped into the document on the fly via a hot key, as well as the other more mundane hot key control features.
Regards
Rolf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the response, Rolf. I'm ok with manual actions but cannot get past the "TypeError: '>' not supported between instances of 'str' and 'int'" which hangs the build. I assume this is a fault in the python script. I am not familiar with Python, though I used to program in C, Perl, and PHP and still use ASP. I do not know where to look for the discrepancy.
I have tried to build with and without a footswitch installed (the one we use every day) and there is no difference,
If it helps, the process has got as far as installing the start-up icon in the Multimedia menu.
No, we do not use the Libre connection at all. The time codes are usually embedded within the video and can only be extracted visually. Time Stamps are not useful in these cases.
Dave
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
my point was that if you have manually copied everything in to the right
place, and performed the set up actions manually, there is no need to
run the set up script at all.
On the time code issue, au contraire, since version 3.3 there has been
an OSD time code facility.
Start the video, pause it, key in the difference between the video
playing time and the on screen time code, then use the fs2TimeCode macro
(Alt O) in LibreOffice. The OSD time code will be stamped into the
document at the current position. The difference would have to be
re-input if the was a break or jump in the OSD time code.
Just for my information, which versions of footswitch, python and
wxpython are you running?
If don't mind letting me know, what's your rational for moving to an
Arch Linux rather than an Ubuntu based one?
The only reason I can think of, off hand, is security/privacy.
Regards,
Rolf
On 16/08/18 11:40, Dave Stiles wrote:
Thanks for the response, Rolf. I'm ok with manual actions but cannot get past the "TypeError: '>' not supported between instances of 'str' and 'int'" which hangs the build. I assume this is a fault in the python script. I am not familiar with Python, though I used to program in C, Perl, and PHP and still use ASP. I do not know where to look for the discrepancy.
I have tried to build with and without a footswitch installed (the one we use every day) and there is no difference,
If it helps, the process has got as far as installing the start-up icon in the Multimedia menu.
No, we do not use the Libre connection at all. The time codes are usually embedded within the video and can only be extracted visually. Time Stamps are not useful in these cases.
I'll look at the setup/copying again. As I said, there is an option in the multimedia menu but it does not work.
Timestamp - that would only work sometimes. The videos are not always linearly time coded and there are often gaps in the embedded code. The frequency of this is variable, but the way we work seems better suited to our needs and is consistent. Thanks for programming it, though! :)
Footswitch2 version 4.1.1 according to the readme.
python version 3.6.6
python-wxpython version 4.0.1-2
(there is also python2-wxpython available but not installed)
Reason for moving to Manjaro xfce from Mint Mate... Hmm... Curiosity in part - this was a new machine so seemed like a good time. Mint 18 played up on one installation just before that. I had to build a backup machine on my previous machine so went with Manjaro on that as well. We've still got a few Mint machines. There are a few downsides to Manjaro but I'm getting used to it after almost a year.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
footswitch2 version 4.1.1 will not work with python3, only python2 and
therefore wxpython 2.8 and probably wxpython3 (Classic)
You would be better off cancelling what you have done so far and waiting
for footswitch2 Version 5.1.0.
The new version (5.1.0) will be fully python3 with wxpython 4 (Phoenix)
compatible.
I am still juggling with whether I should accept if I have to bite the
bullet and run with Gtk3 rather than Gtk2, as I have an issue or two
with Gtk3 and wxwidgets. There seem to be a lot of discrepancies, with
Gtk3 Warnings spewing out all over the place and I hate with a passion
the new "improved" SpinCtrl, so much so, I have resorted to writing my
own. This needs further testing.
I would expect Version 5.1.0 to be released within the next month.
You can of course, always soldier on but you will need python2.7 and
wxpython 2.8 or 3 for python2
Regards
Rolf
On 16/08/18 15:56, Dave Stiles wrote:
Hello, Rolf.
I'll look at the setup/copying again. As I said, there is an option in the multimedia menu but it does not work.
Timestamp - that would only work sometimes. The videos are not always linearly time coded and there are often gaps in the embedded code. The frequency of this is variable, but the way we work seems better suited to our needs and is consistent. Thanks for programming it, though! :)
Footswitch2 version 4.1.1 according to the readme.
python version 3.6.6
python-wxpython version 4.0.1-2
(there is also python2-wxpython available but not installed)
Reason for moving to Manjaro xfce from Mint Mate... Hmm... Curiosity in part - this was a new machine so seemed like a good time. Mint 18 played up on one installation just before that. I had to build a backup machine on my previous machine so went with Manjaro on that as well. We've still got a few Mint machines. There are a few downsides to Manjaro but I'm getting used to it after almost a year.
Ok, Rolf, I'm happy to dump the current attempt and wait for the new version. As I said, it's a backup system and not (apparently) urgent. Thanks for your help and advice.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I realise that it has been a very long time since you contacted me and I
suggested that you wait for the python 3 version of footswitch, it has
however, finally been released.
It is available for download on sourceforge as version 6.1.0.
It became an update that simply got out of control. Couple that with a
monster olive harvest, which didn't finish until the end of January,
dying solar batteries for the finca etc
Still, it's done and published, so feel free to hack away at your
Manjaro installation and Good Luck!
Regards,
Rolf
On 17/08/2018 12:27, Dave Stiles wrote:
Ok, Rolf, I'm happy to dump the current attempt and wait for the new version. As I said, it's a backup system and not (apparently) urgent. Thanks for your help and advice.
I have now installed fs2 on Manjaro. Not sure I got the procedure correct. I downloaded the tar and performed the following...
Build:
md ~/fs2
extract control.tar.xz to ~/fs2
extract data.tar.xz to ~/fs2/data
open thunar as root with tabs at / and ~/fs2/data
and copy lib and usr to /
in terminal type fs2
pdf should pop up showing fs2-install - close after reading
popup shows warning that install is about to set up libreoffice
popup shows warning "remember to define your footpedal codes in Footswitch Tools->Define Footpedal Codes"
popup asks Open Libre Writer now?
(I did, looked at the fs2 menu and closed it again)
I got a warning about a missing footpedal, saying it would use a dummy device. (ok)
When I try to run fs2 I again get the latter message. In task manager fs2 pops up. After I cancel the warning popup there is a short delay and then fs2 disappears from the task manager. I do not get VLC or control panel or anything else running.
This happens with or without the foot pedal. I tried to start it from libre but still nothing.
I'm guessing I did something wrong during installation but I could find no installer script.
I have since run preinst and postinst, the latter hanging on "register known footpedals". Still no VLC or control panel.
Just rebooted the machine - still nothing except the popup.
--
Dave Stiles
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry Dave, you lost me at "I downloaded the tar file", which tar file?
As you know the .deb file should be processed by the gebi program or dpkg.
If those are not available under manjaro then the installation process would be to extract the contents of the .deb file.
Manually copy the /usr and /lib entires to /
reboot and check the ''group'' of the events entries in /dev/input
Ensure that the user belongs to that group to allow access via the udev system to the foot pedal
check libreoffice is on the system
check that vlc is on the system
on command line run fs2
This will create the ~/fs2 directory for you and populate it.
As you are not running the install scripts you will have to edit the ~/fs2/fs2.cfg file and manually input these entries:
FOOTPEDAL_VPID_LOCK = 0c45:7403
HID_FILE_ID = /dev/input/event5
where the code 0c45:7403 is the vendor code for your foot pedal (help from command lsusb)
and /dev/input/event5 corresponds to the correct event on your system
See the manual section "Access to the foot pedal HID device using /lib/udev/rules.d" for further details and issues with the "group" that the events belong to.
If you currently have an ~/fs2 directory, remove it and try the above.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
P.S. Apparently, there is a package on Manjaro called debtap that purports to create an installable package for you from a .deb package. That might be another avenue worth investigation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
.tar.gz files are what is shown in engrampa if you click on the deb file, plus an empty debian.binary.
I didn't know about debtap but now downloaded and run.
After a couple of bad starts with debtap (I expected to have to use an option switch, but no) I got the message "cannot resolve bs". Is this necessary or can it be ignored? (NOTE: I am not using libre, only vlc).
--
Dave Stiles
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dave, bs certainly isn't a dependency of footswitch so I'd run with ignore and see where it takes you, unless that is, debtap is being literal. In which case it's in the same boat as the rest of us, in that none of us can resolve b#ll sh#t or it's just being rather rude about my code. ;)
Last edit: Rolf 2019-06-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does not work, Rolf, either with Y or N. In both cases it reports: "Unable to satisfy dependency 'bs' required by footswitch2" and "The following package cannot be upgraded due to unresolvable dependencies: footswitch2".
I tried using
sudo pacman -U footswitch2-6.1.0-1-any.pkg.tar.xz
and also right-click "Open with software install".
The implication is that 'bs' has got added to the installation requirements somewhere but I have no idea where to look.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd revert to manual installation, for which I have provided copious notes.
There is also extensive documentation provided within the footswitch
package.
On 19/06/2019 17:34, Dave Stiles wrote:
Does not work, Rolf, either with Y or N. In both cases it reports: "Unable to satisfy dependency 'bs' required by footswitch2" and "The following package cannot be upgraded due to unresolvable dependencies: footswitch2".
I tried using
sudo pacman -U footswitch2-6.1.0-1-any.pkg.tar.xz
and also right-click "Open with software install".
The implication is that 'bs' has got added to the installation requirements somewhere but I have no idea where to look.
there is now an "Arch Linux" directory on SourceForge.net for both
Footswitch2 and Footswitch3.
They are NOT pacman friendly, as I haven't worked out how to
successfully create a PKGBUILD file for my python sources but there are
installation notes.
I've successfully installed and run both on Manjaro and a Manjaro
virtual machine.
Feel free to have a look and if you can create a PKGBUILD file feel even
free'er to send me a copy, mine gets stuck in a loop at or after
creating the PKGINFO file.
Regards Rolf
p.s. I added a TimeZoom function, with your wife in mind. It opens a
window of just the current audio time in a point size of your choosing.
It can be zoomed in size up to the entire screen. It may or may not be
useful (my own "her indoors" is allergic to any form of change) and rid
you of the need to open a separate magnifier.
On 19/06/2019 17:34, Dave Stiles wrote:
Does not work, Rolf, either with Y or N. In both cases it reports: "Unable to satisfy dependency 'bs' required by footswitch2" and "The following package cannot be upgraded due to unresolvable dependencies: footswitch2".
I tried using
sudo pacman -U footswitch2-6.1.0-1-any.pkg.tar.xz
and also right-click "Open with software install".
The implication is that 'bs' has got added to the installation requirements somewhere but I have no idea where to look.
As far as I know Arch/Manjaro should have all of the packages required.
There may well be an issue with the installation tool Gdebi but there is no reason that the software can't be unpacked manually and installed manually, footswitch is written in python.
Dependencies are:
python (>= 2.7), python-configobj, vlc (>=2.1.4), libreoffice-writer (>=4.2), libreoffice-gnome, libreoffice-gtk, python3-uno, libreoffice-script-provider-python, default-jre, python-wxgtk3.0, sqlite3, pulseaudio (>=4.0), fuse, gvfs, gvfs-backends, gvfs-bin, gvfs-fuse, sox, wkhtmltopdf, python-dateutil, python-evdev, python-requests, swh-plugins, cmt, bs2b-ladspa, pulseaudio-utils, ladspa-sdk, python-notify2
Suggests: ffmpeg (>= 2.6)
Note: that the next release 5.1.0 removes the requirement for the gvfs modules and shifts from python2 to python3
Once everything has been copied into place manually run
sudo python /usr/share/footswitch2/fs2_setup.py
if all goes well a simple
fs2
on the command line or a link to /usr/bin/fs2 will start footswitch
The best bet is to try it and let me know if there are issues, what they are and I can resolve them.
If your question is, do I intend to create an install package for Manjaro, the answer is no I don't, as I do not use that OS.
Finally, see this question and answers:
https://unix.stackexchange.com/questions/83540/installing-a-deb-package-on-arch-is-it-possible
If you have any questions, feel free to contact me.
Regards,
Rolf
Last edit: Rolf 2018-08-09
Thanks, Rolf. Much appreciated.
I've installed the lib and usr folder/files to root and am now checking/installing your dependency list. I have questions concerning the following...
Missing from manjaro (and AUR) repo...
python-wxgtk3.0
python-notify2
python3-uno
(will the standard python package 3.6.6.1 include these or are there alternatives?)
pulseaudio-utils
(but various others are available such as pulseaudio-ctl - will that do?)
default-jre
(but jre8-openjdk is installed - up to jre10 available)
gvfs-backends
gvfs-bin
gvfs-fuse
(may be in main gvfs package?)
bs2b-ladspa
ladspa-sdk
(I assume ladspa alone will suffice?)
NOTE: Current version of ffmpeg on Manjaro has an “n” in front of version number 4 (ie n4.0.2). This causes identity crisis with get_iplayer: will it be ok with footswitch?
Apart from above beginning to look promising. :)
It's the old package name switcheroo I see.
https://aur.archlinux.org/packages/wxpython-gtk2/ should be fine
wxpython Version 2.8 gtk2. Avoid the gtk3 version as key widgets changed and makes a mess of the main screen.
https://aur.archlinux.org/packages/python-notify2/
python3-uno has to be there somewhere as it is part of libreoffice
pulseaudio-utils is a package containing the command line utilites for pulseaudio,
pactl, pacmd, pamon etc I pretty sure that they are not used unless unless you want to access the equaliser or effects such as mono or pulseaudio filters like noise gates.
jre whichever one you have, it is used by libreoffice to enable the scripts to communicate with footswitch and should be turned on in libreoffice>Tools>Advanced
The gvfs packages are for connecting to webdav connected drives and performing automated downloads. This feature has been removed from the latest version but I am reasonably sure that this should fail quietly and not affect you if you don't have it.
bs2b-ladspa and ladspa-sdk
https://aur.archlinux.org/packages/ladspa-bs2b/
probably https://www.archlinux.org/packages/extra/x86_64/ladspa/
but again you can probably get away without these if you don't use the equaliser or any effects
ffmpeg - should be fine. It is banged onto the command line if you want to convert a video/audio file to another format.
Regards Rolf
Hi, Rolf. I ran the setup command but it failed.
To begin:
I do not intend using libre in this project and it is not currently installed. Is this vital? We do not use it on the ubuntu maching but it is installed there.
Similarly we do not (knowingly) use any audio filters, nor auto-downloads.
On running the command I get a pop-up panel saying...
Attempt to delete old footswitch rules if they exist
old 50-footswitch.rules files did not exist - This does not matter
Issuing the udevadm commands to register Known foot pedals
and in Terminal it says...
/usr/share/footswitch2/fs2_setup.py:40: wxPyDeprecationWarning: Call to deprecated item. Use Move instead.
self.MoveXY(10,10)
Traceback (most recent call last):
File "/usr/share/footswitch2/fs2_setup.py", line 75, in OnTimer
user = [u for u in pwd.getpwall() if u.pw_dir >0 and u.pw_uid >999 and u.pw_dir.startswith('/home')]
File "/usr/share/footswitch2/fs2_setup.py", line 75, in <listcomp>
user = [u for u in pwd.getpwall() if u.pw_dir >0 and u.pw_uid >999 and u.pw_dir.startswith('/home')]
TypeError: '>' not supported between instances of 'str' and 'int'</listcomp>
Then it hangs until I hit Ctrl-C, when the popup also goes away.
Sorry. :(
Just checked in, it's late on Sunday night, I'll come back to you tomorrow
Rolf
On 12/08/18 16:27, Dave Stiles wrote:
Related
Tickets:
#4The fact that you are getting deprecation errors, suggests that you are using a newer version of wxpython than that version of footswitch was written on (wx 2.8) but it should still function.
The setup is attempting to set the environment for evdev to access the foot pedal on your system.
For this to happen it attempts to ensure that the groups 'plugdev' and 'input' exist on your system, if they don't it creates them.
The next step is to add any users on your system to those groups.
It may be that Manjaro has an issue with that or indeed uses a different group for the udev entries or keeps them in a different place. (/dev/input)
Next it attempts to identify the foot pedal on your system from a list of know id's, identifies the event id (/dev/input/event(n)) and stamps that into the $HOME/fs2.cfg file.
That is pretty much it.
What foot pedal is attached to your system?
lsusb should show you.
If you are not using libreoffice, what are you using or are you not seeking to use footswitch as a transcriber? Footswitch and Libreoffice are tied together using macros that allow you to control the audio playback from within libreoffice as well as via the foot pedal.
The footswitch2.pdf file that comes with footswitch has detailed notes and some trouble shooting help as well. You should read
1.1.2 Trouble shooting Notes
1.3 Access to the foot pedal HID device using /lib/udev/rules.d
1.4 The fs2_list_devices.py device identification program
and possibly
I suspect that your issues are to do with slight differences in the Linux environment and the setup and configuration does expect Mint/ Ubuntu.
Regards
Rolf
Hello, Rolf. Thanks for getting back to me. I should say: this project is not critical and a few days or even weeks delay are not important = ie, no rush. :)
This is a backup system in case the one in use fails. It's Manjaro because I'm gradually transitioning from Mint.
We are using two machines for transcription: one to run footswitch2 and one for libre writer. The two are not footswitch-connected.
I'm ok with what you're saying and could alter the permissions if necessary for line 75 (OnTimer and ListComp). My problem so far is: "TypeError: '>' not supported between instances of 'str' and 'int'" which causes the build to fail.
Dave, the reason that I detailed what the setup is attempting to do, was so that you can manually perform those actions on your Manjaro machine.
The reason being, that I suspect there may be differences between the commands available to perform those actions between Manjaro and Ubuntu/Mint or the environment, which no amount of fiddling with the code itself is going to fix, without an in depth knowledge of what those differences are.
I do now recall you and your circumstances from 2016 and your initial installation.
Can I assume from what you are saying about not using LibreOffice, that you never made use of the TCP_SERVER configuration setting, to run footswitch on one box and LibreOffice on the other?
The purpose of them being able to talk to each other is, primarily, to enable you to request timestamps stamped into the document on the fly via a hot key, as well as the other more mundane hot key control features.
Regards
Rolf
Thanks for the response, Rolf. I'm ok with manual actions but cannot get past the "TypeError: '>' not supported between instances of 'str' and 'int'" which hangs the build. I assume this is a fault in the python script. I am not familiar with Python, though I used to program in C, Perl, and PHP and still use ASP. I do not know where to look for the discrepancy.
I have tried to build with and without a footswitch installed (the one we use every day) and there is no difference,
If it helps, the process has got as far as installing the start-up icon in the Multimedia menu.
No, we do not use the Libre connection at all. The time codes are usually embedded within the video and can only be extracted visually. Time Stamps are not useful in these cases.
Dave
Dave,
my point was that if you have manually copied everything in to the right
place, and performed the set up actions manually, there is no need to
run the set up script at all.
On the time code issue, au contraire, since version 3.3 there has been
an OSD time code facility.
Start the video, pause it, key in the difference between the video
playing time and the on screen time code, then use the fs2TimeCode macro
(Alt O) in LibreOffice. The OSD time code will be stamped into the
document at the current position. The difference would have to be
re-input if the was a break or jump in the OSD time code.
Just for my information, which versions of footswitch, python and
wxpython are you running?
If don't mind letting me know, what's your rational for moving to an
Arch Linux rather than an Ubuntu based one?
The only reason I can think of, off hand, is security/privacy.
Regards,
Rolf
On 16/08/18 11:40, Dave Stiles wrote:
Related
Tickets:
#4Hello, Rolf.
I'll look at the setup/copying again. As I said, there is an option in the multimedia menu but it does not work.
Timestamp - that would only work sometimes. The videos are not always linearly time coded and there are often gaps in the embedded code. The frequency of this is variable, but the way we work seems better suited to our needs and is consistent. Thanks for programming it, though! :)
Footswitch2 version 4.1.1 according to the readme.
python version 3.6.6
python-wxpython version 4.0.1-2
(there is also python2-wxpython available but not installed)
Reason for moving to Manjaro xfce from Mint Mate... Hmm... Curiosity in part - this was a new machine so seemed like a good time. Mint 18 played up on one installation just before that. I had to build a backup machine on my previous machine so went with Manjaro on that as well. We've still got a few Mint machines. There are a few downsides to Manjaro but I'm getting used to it after almost a year.
Dave,
footswitch2 version 4.1.1 will not work with python3, only python2 and
therefore wxpython 2.8 and probably wxpython3 (Classic)
You would be better off cancelling what you have done so far and waiting
for footswitch2 Version 5.1.0.
The new version (5.1.0) will be fully python3 with wxpython 4 (Phoenix)
compatible.
I am still juggling with whether I should accept if I have to bite the
bullet and run with Gtk3 rather than Gtk2, as I have an issue or two
with Gtk3 and wxwidgets. There seem to be a lot of discrepancies, with
Gtk3 Warnings spewing out all over the place and I hate with a passion
the new "improved" SpinCtrl, so much so, I have resorted to writing my
own. This needs further testing.
I would expect Version 5.1.0 to be released within the next month.
You can of course, always soldier on but you will need python2.7 and
wxpython 2.8 or 3 for python2
Regards
Rolf
On 16/08/18 15:56, Dave Stiles wrote:
Related
Tickets:
#4Ok, Rolf, I'm happy to dump the current attempt and wait for the new version. As I said, it's a backup system and not (apparently) urgent. Thanks for your help and advice.
Happy 2019 Dave!
I realise that it has been a very long time since you contacted me and I
suggested that you wait for the python 3 version of footswitch, it has
however, finally been released.
It is available for download on sourceforge as version 6.1.0.
It became an update that simply got out of control. Couple that with a
monster olive harvest, which didn't finish until the end of January,
dying solar batteries for the finca etc
Still, it's done and published, so feel free to hack away at your
Manjaro installation and Good Luck!
Regards,
Rolf
On 17/08/2018 12:27, Dave Stiles wrote:
Related
Tickets:
#4Hello, Rolf.
I have now installed fs2 on Manjaro. Not sure I got the procedure correct. I downloaded the tar and performed the following...
Build:
md ~/fs2
extract control.tar.xz to ~/fs2
extract data.tar.xz to ~/fs2/data
open thunar as root with tabs at / and ~/fs2/data
and copy lib and usr to /
in terminal type fs2
pdf should pop up showing fs2-install - close after reading
popup shows warning that install is about to set up libreoffice
popup shows warning "remember to define your footpedal codes in Footswitch Tools->Define Footpedal Codes"
popup asks Open Libre Writer now?
(I did, looked at the fs2 menu and closed it again)
I got a warning about a missing footpedal, saying it would use a dummy device. (ok)
When I try to run fs2 I again get the latter message. In task manager fs2 pops up. After I cancel the warning popup there is a short delay and then fs2 disappears from the task manager. I do not get VLC or control panel or anything else running.
This happens with or without the foot pedal. I tried to start it from libre but still nothing.
I'm guessing I did something wrong during installation but I could find no installer script.
I have since run preinst and postinst, the latter hanging on "register known footpedals". Still no VLC or control panel.
Just rebooted the machine - still nothing except the popup.
--
Dave Stiles
Sorry Dave, you lost me at "I downloaded the tar file", which tar file?
As you know the .deb file should be processed by the gebi program or dpkg.
If those are not available under manjaro then the installation process would be to extract the contents of the .deb file.
Manually copy the /usr and /lib entires to /
reboot and check the ''group'' of the events entries in /dev/input
Ensure that the user belongs to that group to allow access via the udev system to the foot pedal
check libreoffice is on the system
check that vlc is on the system
on command line run fs2
This will create the ~/fs2 directory for you and populate it.
As you are not running the install scripts you will have to edit the ~/fs2/fs2.cfg file and manually input these entries:
FOOTPEDAL_VPID_LOCK = 0c45:7403
HID_FILE_ID = /dev/input/event5
where the code 0c45:7403 is the vendor code for your foot pedal (help from command lsusb)
and /dev/input/event5 corresponds to the correct event on your system
See the manual section "Access to the foot pedal HID device using /lib/udev/rules.d" for further details and issues with the "group" that the events belong to.
If you currently have an ~/fs2 directory, remove it and try the above.
P.S. Apparently, there is a package on Manjaro called
debtapthat purports to create an installable package for you from a .deb package. That might be another avenue worth investigation.Thanks, Rolf.
.tar.gz files are what is shown in engrampa if you click on the deb file, plus an empty debian.binary.
I didn't know about debtap but now downloaded and run.
After a couple of bad starts with debtap (I expected to have to use an option switch, but no) I got the message "cannot resolve bs". Is this necessary or can it be ignored? (NOTE: I am not using libre, only vlc).
--
Dave Stiles
Dave,
bscertainly isn't a dependency of footswitch so I'd run with ignore and see where it takes you, unless that is, debtap is being literal. In which case it's in the same boat as the rest of us, in that none of us can resolve b#ll sh#t or it's just being rather rude about my code. ;)Last edit: Rolf 2019-06-19
Does not work, Rolf, either with Y or N. In both cases it reports: "Unable to satisfy dependency 'bs' required by footswitch2" and "The following package cannot be upgraded due to unresolvable dependencies: footswitch2".
I tried using
sudo pacman -U footswitch2-6.1.0-1-any.pkg.tar.xz
and also right-click "Open with software install".
The implication is that 'bs' has got added to the installation requirements somewhere but I have no idea where to look.
Debtap was only an idea.
I'd revert to manual installation, for which I have provided copious notes.
There is also extensive documentation provided within the footswitch
package.
On 19/06/2019 17:34, Dave Stiles wrote:
Related
Tickets:
#4Dave,
there is now an "Arch Linux" directory on SourceForge.net for both
Footswitch2 and Footswitch3.
They are NOT pacman friendly, as I haven't worked out how to
successfully create a PKGBUILD file for my python sources but there are
installation notes.
I've successfully installed and run both on Manjaro and a Manjaro
virtual machine.
Feel free to have a look and if you can create a PKGBUILD file feel even
free'er to send me a copy, mine gets stuck in a loop at or after
creating the PKGINFO file.
Regards Rolf
p.s. I added a TimeZoom function, with your wife in mind. It opens a
window of just the current audio time in a point size of your choosing.
It can be zoomed in size up to the entire screen. It may or may not be
useful (my own "her indoors" is allergic to any form of change) and rid
you of the need to open a separate magnifier.
On 19/06/2019 17:34, Dave Stiles wrote:
Related
Tickets:
#4Thanks for the info, Rolf. I'm very interested. Just installed Mint 20 just for footswitch and I do not like it!
It will take me a few days to get round to it but round to it I will definitely get!
Dave Stiles
It's horses for courses, Dave!
I can't bring myself to like Manjaro, so I stuck it in a small virtual
machine, just for testing purposes.
That in itself caused more issues than I care to admit. Try building
wxpython with 2Gb of memory and 2 Cpus.
After 6 hours in runs out of space in /tmp, Aaaaargh! Not Manjaros fault
of course.
On 29/07/2020 15:48, Dave Stiles wrote:
Related
Tickets:
#4