Help - Search - Members - Calendar
Full Version: Got Wifi-radar Working
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
jerrybme
I've been using Wifi-radar on my laptop and want to use it to identify and associate with wireless networks. The interface is written in Python and only requires pygtk2 and iwconfig. I have all of those installed, yet I keep getting this error when I try and run it:
CODE
[/home/root] # wifi-radar -v
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
 File "/usr/sbin/wifi-radar", line 1241, in ?
   confFile = ConfigParser.ConfigParser()
NameError: name 'ConfigParser' is not defined



Any Python gurus out there than can help? I've tried googling the error without coming up with anything that helps (meaning that I can understand - see my avatar wink.gif )

This would be a great app for the Z if we could get it to run.

For more info and the files for Wifi-Radar see: http://www.bitbuilder.com/wifi_radar/

Cheers,
Jerry

****Update****
Thanks to iamasmith's help below, this handy utility is working.It works fine with my old Socket card.

I made an ipk of it complete with desktop file so it shows up in the menu. Let me know how it works with your different cards.
pgas
maybe import site fails because all package are not installed.

A workaround maybe to install
python_2.4.1_armv5tel.ipk which I believe contains the whole python install

or import the modules individually... import ConfigParser or something..

(Note I know almost nothing about python)
jerrybme
QUOTE(pgas @ Feb 21 2006, 03:53 AM)
maybe import site fails because all package are not installed.

A workaround maybe to install
python_2.4.1_armv5tel.ipk which I believe contains the whole python install

or import the modules individually... import ConfigParser or something..

(Note I know almost nothing about python)
*

Above error is with the whole python ipk installed. I even tried compiling python 2.4.2 and installing that, which fixed everything but the ConfigParser error. From reading the Python site, it seems that ConfigParser is part of the python tool set & not an extra module, at least I couldn't find info about compiling it as an extra module....
iamasmith
Most unusual... just try this and see if it throws any errors...

python
import ConfigParser


Press Ctrl-D to exit Python when you have finished.

ConfigParser should be in the base library set.

- Andy
jerrybme
QUOTE(iamasmith @ Feb 21 2006, 07:56 AM)
Most unusual... just try this and see if it throws any errors...

python
import ConfigParser


Press Ctrl-D to exit Python when you have finished.

ConfigParser should be in the base library set.

- Andy
*

From the python command line the import ConfigParser command goes fine without throwing any errors.. blink.gif

Wierd
JohnX
Wow. That is a cool program. I was looking for something exactly like this. Anyways, I managed to get it running on OpenZaurus/GPE ("unstable" distro, built from the latest stuff in the OE tree) w/ 2.6.15 kernel on a C1000. I know this is the pdaxrom forum, but I just thought I'd comment that it's totally worth it to get this program running. I'm running python 2.4.2. If you need to know any other details about my setup, just ask. smile.gif
iamasmith
QUOTE(jerrybme @ Feb 21 2006, 07:22 PM)
QUOTE(iamasmith @ Feb 21 2006, 07:56 AM)
Most unusual... just try this and see if it throws any errors...

python
import ConfigParser


Press Ctrl-D to exit Python when you have finished.

ConfigParser should be in the base library set.

- Andy
*

From the python command line the import ConfigParser command goes fine without throwing any errors.. blink.gif

Wierd
*



Just re-read the message... it's failing on site, which would seem to suggest that you didn't install one of the site-packages modules... you have built/installed py-gtk2 haven't you?

And no I can't say for sure why it's failing on ConfigParser seeing as though that's on a seperate import line to gtk and gobject.

- Andy
jerrybme
QUOTE(iamasmith @ Feb 22 2006, 05:19 AM)
Just re-read the message... it's failing on site, which would seem to suggest that you didn't install one of the site-packages modules... you have built/installed py-gtk2 haven't you?

And no I can't say for sure why it's failing on ConfigParser seeing as though that's on a seperate import line to gtk and gobject.

- Andy
*

Yep, got pygtk2 installed
CODE
python
>>> import site

works fine from the python command line..

Thanks for your help Andy, BTW (hijacking my own thread..)I've been following all of your work on the BSD arm version, I'm curious as to the difference/benefit to using BSD on the Z compared to pdaXrom?

Cheers,
Jerry
jerrybme
QUOTE(JohnX @ Feb 22 2006, 05:11 AM)
Wow.  That is a cool program. I was looking for something exactly like this. Anyways, I managed to get it running on OpenZaurus/GPE ("unstable" distro, built from the latest stuff in the OE tree) w/ 2.6.15 kernel on a C1000. I know this is the pdaxrom forum, but I just thought I'd comment that it's totally worth it to get this program running. I'm running python 2.4.2.  If you need to know any other details about my setup, just ask. smile.gif
*

Glad to hear it's working for you, yes it's a fine tool for easily connecting to APs. I compiled the python 2.4.2 version and installed it, got the same error..

Hopefully someone else with more technical savvy than I (like Andy) will figure it out for the pdaXrom users.

Cheers,
Jerry
iamasmith
QUOTE(jerrybme @ Feb 22 2006, 02:39 PM)
QUOTE(iamasmith @ Feb 22 2006, 05:19 AM)
Just re-read the message... it's failing on site, which would seem to suggest that you didn't install one of the site-packages modules... you have built/installed py-gtk2 haven't you?

And no I can't say for sure why it's failing on ConfigParser seeing as though that's on a seperate import line to gtk and gobject.

- Andy
*

Yep, got pygtk2 installed
CODE
python
>>> import site

works fine from the python command line..

Thanks for your help Andy, BTW (hijacking my own thread..)I've been following all of your work on the BSD arm version, I'm curious as to the difference/benefit to using BSD on the Z compared to pdaXrom?

Cheers,
Jerry
*




OK, I'll come back to you on this.... I have an old SL-C860 knocking around and a couple of free hours tongue.gif

-Andy
iamasmith
Edit the first line of wifi-radar and take off the -OO there seems to be a problem with bytecode optimisation.

- Andy
iamasmith
...and I will write a comparison between OpenBSD and other distributions for the Zaurus soon because a lot of folk are curious.

-Andy
jerrybme
QUOTE(iamasmith @ Feb 22 2006, 09:53 AM)
Edit the first line of wifi-radar and take off the -OO there seems to be a problem with bytecode optimisation.

- Andy
*

That was it, damn, that was simple! Thanks Andy!
mbaush
Hello I'm also interested in making this software work, can you instruct on how to get the dependencies and every step to make it work?

Thanks!
jerrybme
QUOTE(mbaush @ Mar 19 2006, 07:12 PM)
Hello I'm also interested in making this software work, can you instruct on how to get the dependencies and every step to make it work?

Thanks!
*

Just install the ipk (in my first post in this thread), only dependencies are python, iwconfig & pygtk2 but they are installed by default in the ROM.

If it doesn't work, start from a terminal & post the error message.

Cheers,
Jerry
mbaush
Those dependencies are pre-installed on pdaXrom right? Is it possible to be run under Cacko?
jerrybme
QUOTE(mbaush @ Mar 21 2006, 12:59 PM)
Those dependencies are pre-installed on pdaXrom right? Is it possible to be run under Cacko?
*

In theory, given the the python & pygkt2 dependencies. You can't install the ipk I made. I'd download the source files and manually install. It doesn't need to be compiled. Don't forget to remove the OO in the first line of the script and edit the location of the wifi-radar.conf file. Been a while since I used Cacko, can't remember if you run as root, but the script needs to be run as root as it calls iwconfig.

Alternately, you could untar my ipk and manually move the files from the data.tar.gz

Good luck, it's a great app.

PS 3rd alternative, ask Maslovsky to add it to the ROM or feed wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.