Tagged: linux error oserror
October 29, 2016 at 5:36 pm #642
Set up airnef under Gentoo linux by untaring it in ~
Launching it as ./airnef/airnef/airnef seems okay but when I press big button with “wireless” pic I got the following in the terminal window:
Launching airnefcmd with args: –outputdir “/home/kanyck/Pictures” –ifexists uniquename –ipaddress 192.168.1.1 –realtimedownload disabled –logginglevel normal –cameratransferlist exitifnotavail
Exception in Tkinter callback
Traceback (most recent call last):
File “/usr/lib/python2.7/lib-tk/Tkinter.py”, line 1535, in __call__
File “<string>”, line 809, in <lambda>
File “<string>”, line 859, in wizard_1_0_ButtonClick
File “<string>”, line 255, in launchAirnefcmd
File “/usr/lib/python2.7/subprocess.py”, line 710, in __init__
File “/usr/lib/python2.7/subprocess.py”, line 1335, in _execute_child
OSError: [Errno 2] No such file or directory
What can be the reason?October 31, 2016 at 6:39 pm #643
Based on the error, airnefcmd is not being found when airnef launches it (airnef is the front-end GUI – it launches airnefcmd to do the actual work). airnef uses the directory it was launched from to find/specify airnefcmd, so as long as both are in the same directory it should work.November 1, 2016 at 12:05 pm #644
That’s very strange. airnefcmd is in the same directory as airnef, namely ~/airnef/airnef. I did not touch anything, just unpacked the tarball into my home directory. I may issue airnefcmd by hand and it works. But I keep getting the same error whatever I try when I use gui. I cd-ed into airnef/airnef an tried to launch the front-end from there. I added ~/airnef/airnef into the PATH environment variable. Now I can issue both airnef and airnefcmd just as any other command — without any dir prefixes but I still get the same error.
which airnefcmdfounds in and returns the right path.
How do you launch it?November 1, 2016 at 3:06 pm #645
I launch airnefcmd in an xterm process. Perhaps xterm isn’t installed on your system or not in the path? Here’s the python source line that launches for Linux:
process = subprocess.Popen([‘xterm’, ‘+hold’, ‘-e’, os.path.join(g.appDir, ‘airnefcmd’)] + argList)November 1, 2016 at 5:30 pm #646
Sure, I’ve no xterm in the system — that’s the reason — been using lilyterm for a long time. Could you parse $TERM env variable instead? That will be more correct and compliant with the “unix way”. Thanks!
UPDATE: I checked it out and found that $TERM does different thing, namely sets the term capabilities. I did not found the way how to generalize the term emulator invocation (and suppose there’s no way to do it because there are about two dozens of TE in linux and they use different command-line sintax when invoked so to simply substitute a program name won’t work). So I may try to symlink my TE to xterm (hoping that sintax will match) or just install xterm purposely for airnef. Thanx again!
November 1, 2016 at 7:19 pm #648
- This reply was modified 3 months, 3 weeks ago by kanyck.
The symlink trick has worked. So I can download pics now. Maybe you should mention it in the docs. Could not manage to invoke geeqie via downloadexec yet but it’s another story. Thanx again!
You must be logged in to reply to this topic.