Re: [chirp_users] Fwd: Re: Linux My CHIRP Protests
I reinstalled chirp and pygtk. I still get this error.
David On Jun 24, 2014 1:34 PM, "D.J.J. Ring, Jr." djringjr@gmail.com wrote:
I have pygtk installed.
Is there some way I can force chirp to see it?
David ---------- Forwarded message ---------- From: "Jens J." kd4tjx@yahoo.com Date: Jun 24, 2014 9:16 AM Subject: Re: [chirp_users] Linux My CHIRP Protests To: "Discussion of CHIRP" chirp_users@intrepid.danplanet.com
Looks like it cant find pygtk
*From:* "D.J.J. Ring, Jr." n1ea@arrl.net *To:* Discussion of CHIRP chirp_users@intrepid.danplanet.com *Sent:* Tuesday, June 24, 2014 12:14 AM *Subject:* [chirp_users] Linux My CHIRP Protests
Honest, I had this working and I uninstalled it because somehow CHIRP got registered as a file browser program and NOW it protests:
chirpw Traceback (most recent call last): File "/usr/bin/chirpw", line 25, in <module> import gtk ImportError: No module named gtk
All the dependencies that I know about are installed.
I am running ARCH Linux.
73 David N1EA
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
On Tue, Jun 24, 2014 at 4:14 PM, D.J.J. Ring, Jr. n1ea@arrl.net wrote:
I reinstalled chirp and pygtk. I still get this error.
What happens when you open a shell and type this:
python -c 'import gtk'
Tom KD7LXL
Happy summer in Alaska, I've been listening to one of my favorite Anchorage stations - I used to be Radio Officer on Tote's Westward Venture from Tacoma to Anchorage every week. Things are getting warm up there!
~]$ python -c 'import gtk' Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named 'gtk'
That's what I get.
73 DR
On Tue, Jun 24, 2014 at 7:21 PM, Tom Hayward tom@tomh.us wrote:
On Tue, Jun 24, 2014 at 4:14 PM, D.J.J. Ring, Jr. n1ea@arrl.net wrote:
I reinstalled chirp and pygtk. I still get this error.
What happens when you open a shell and type this:
python -c 'import gtk'
Tom KD7LXL _______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
The first character should be ' not "
73,
Alan - W6ARH
From: chirp_users-bounces@intrepid.danplanet.com [mailto:chirp_users-bounces@intrepid.danplanet.com] On Behalf Of D.J.J. Ring, Jr. Sent: Monday, June 30, 2014 7:40 PM To: Discussion of CHIRP Subject: Re: [chirp_users] Fwd: Re: Linux My CHIRP Protests
Happy summer in Alaska, I've been listening to one of my favorite Anchorage stations - I used to be Radio Officer on Tote's Westward Venture from Tacoma to Anchorage every week. Things are getting warm up there!
~]$ python -c 'import gtk' Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named 'gtk'
That's what I get.
73
DR
On Tue, Jun 24, 2014 at 7:21 PM, Tom Hayward tom@tomh.us wrote:
On Tue, Jun 24, 2014 at 4:14 PM, D.J.J. Ring, Jr. n1ea@arrl.net wrote:
I reinstalled chirp and pygtk. I still get this error.
What happens when you open a shell and type this:
python -c 'import gtk'
Tom KD7LXL
_______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
What Flavor of Linux are you running?
-------------------------------------- There is no future until we settle our past...
On Tue, Jun 24, 2014 at 5:14 PM, D.J.J. Ring, Jr. n1ea@arrl.net wrote:
I reinstalled chirp and pygtk. I still get this error.
David On Jun 24, 2014 1:34 PM, "D.J.J. Ring, Jr." djringjr@gmail.com wrote:
I have pygtk installed.
Is there some way I can force chirp to see it?
David ---------- Forwarded message ---------- From: "Jens J." kd4tjx@yahoo.com Date: Jun 24, 2014 9:16 AM Subject: Re: [chirp_users] Linux My CHIRP Protests To: "Discussion of CHIRP" chirp_users@intrepid.danplanet.com
Looks like it cant find pygtk
*From:* "D.J.J. Ring, Jr." n1ea@arrl.net *To:* Discussion of CHIRP chirp_users@intrepid.danplanet.com *Sent:* Tuesday, June 24, 2014 12:14 AM *Subject:* [chirp_users] Linux My CHIRP Protests
Honest, I had this working and I uninstalled it because somehow CHIRP got registered as a file browser program and NOW it protests:
chirpw Traceback (most recent call last): File "/usr/bin/chirpw", line 25, in <module> import gtk ImportError: No module named gtk
All the dependencies that I know about are installed.
I am running ARCH Linux.
73 David N1EA
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
I am running Arch Linux.
Python 3.4.1 GCC 4.9.0 20140507 Kernel 3.14.4-1-ARCH #1 SMP PREEMPT
32 bit system.
CHIRP 0.3.1-1
David
On Tue, Jun 24, 2014 at 7:32 PM, Denis Dimick dgdimick@gmail.com wrote:
What Flavor of Linux are you running?
There is no future until we settle our past...
On Tue, Jun 24, 2014 at 5:14 PM, D.J.J. Ring, Jr. n1ea@arrl.net wrote:
I reinstalled chirp and pygtk. I still get this error.
David On Jun 24, 2014 1:34 PM, "D.J.J. Ring, Jr." djringjr@gmail.com wrote:
I have pygtk installed.
Is there some way I can force chirp to see it?
David ---------- Forwarded message ---------- From: "Jens J." kd4tjx@yahoo.com Date: Jun 24, 2014 9:16 AM Subject: Re: [chirp_users] Linux My CHIRP Protests To: "Discussion of CHIRP" chirp_users@intrepid.danplanet.com
Looks like it cant find pygtk
*From:* "D.J.J. Ring, Jr." n1ea@arrl.net *To:* Discussion of CHIRP chirp_users@intrepid.danplanet.com *Sent:* Tuesday, June 24, 2014 12:14 AM *Subject:* [chirp_users] Linux My CHIRP Protests
Honest, I had this working and I uninstalled it because somehow CHIRP got registered as a file browser program and NOW it protests:
chirpw Traceback (most recent call last): File "/usr/bin/chirpw", line 25, in <module> import gtk ImportError: No module named gtk
All the dependencies that I know about are installed.
I am running ARCH Linux.
73 David N1EA
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
Any suggestions to get CHIRP to see pygtk?
David On Jun 24, 2014 7:50 PM, "D.J.J. Ring, Jr." n1ea@arrl.net wrote:
I am running Arch Linux.
Python 3.4.1 GCC 4.9.0 20140507 Kernel 3.14.4-1-ARCH #1 SMP PREEMPT
32 bit system.
CHIRP 0.3.1-1
David
On Tue, Jun 24, 2014 at 7:32 PM, Denis Dimick dgdimick@gmail.com wrote:
What Flavor of Linux are you running?
There is no future until we settle our past...
On Tue, Jun 24, 2014 at 5:14 PM, D.J.J. Ring, Jr. n1ea@arrl.net wrote:
I reinstalled chirp and pygtk. I still get this error.
David On Jun 24, 2014 1:34 PM, "D.J.J. Ring, Jr." djringjr@gmail.com wrote:
I have pygtk installed.
Is there some way I can force chirp to see it?
David ---------- Forwarded message ---------- From: "Jens J." kd4tjx@yahoo.com Date: Jun 24, 2014 9:16 AM Subject: Re: [chirp_users] Linux My CHIRP Protests To: "Discussion of CHIRP" chirp_users@intrepid.danplanet.com
Looks like it cant find pygtk
*From:* "D.J.J. Ring, Jr." n1ea@arrl.net *To:* Discussion of CHIRP chirp_users@intrepid.danplanet.com *Sent:* Tuesday, June 24, 2014 12:14 AM *Subject:* [chirp_users] Linux My CHIRP Protests
Honest, I had this working and I uninstalled it because somehow CHIRP got registered as a file browser program and NOW it protests:
chirpw Traceback (most recent call last): File "/usr/bin/chirpw", line 25, in <module> import gtk ImportError: No module named gtk
All the dependencies that I know about are installed.
I am running ARCH Linux.
73 David N1EA
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
Any suggestions to get CHIRP to see pygtk?
Yes:
Python 3.4.1
PyGTK can't run in Python 3. If you have it installed, it's for a Python 2 somewhere on your system. You need to arrange for CHIRP to run with Python 2. My guess would be that you recently uninstalled (i.e. thinking it was an upgrade) Python 2 in favor of Python 3, or a default for /usr/bin/python changed.
Most systems have both a Python 2 and Python 3 runtime right now since most of the world won't work with Python 3.
--Dan
Dan,
Is there a way I can run python 2 and python 3 at the same time?
I noticed that python upgrade was preventing me from updating my computer as many programs now use python3..
David
On Wed, Jun 25, 2014 at 9:41 AM, Dan Smith dsmith@danplanet.com wrote:
Any suggestions to get CHIRP to see pygtk?
Yes:
Python 3.4.1
PyGTK can't run in Python 3. If you have it installed, it's for a Python 2 somewhere on your system. You need to arrange for CHIRP to run with Python 2. My guess would be that you recently uninstalled (i.e. thinking it was an upgrade) Python 2 in favor of Python 3, or a default for /usr/bin/python changed.
Most systems have both a Python 2 and Python 3 runtime right now since most of the world won't work with Python 3.
--Dan
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
Is there a way I can run python 2 and python 3 at the same time?
Yes, as I said, most current distros ship both at the same time. You just need to arrange for chirp to run under python 2. How to do that depends on your distro and environment. On some distros, that's as easy as running chirp like this:
$ py27 chirpw
--Dan
Python 3 is now standard for ARCH Linux.
Is there a beta version of CHIR that works under python 3?
David
On Wed, Jun 25, 2014 at 10:14 AM, Dan Smith dsmith@danplanet.com wrote:
Is there a way I can run python 2 and python 3 at the same time?
Yes, as I said, most current distros ship both at the same time. You just need to arrange for chirp to run under python 2. How to do that depends on your distro and environment. On some distros, that's as easy as running chirp like this:
$ py27 chirpw
--Dan
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
Python 3 is now standard for ARCH Linux.
That has nothing to do with it. If you can't also install a python 2 runtime, then you need to get a different distro. Python 3 is part of the standard install of Ubuntu too, but they also include a Python 2 runtime because so many things still require it (anything that uses pygtk, for starters).
Is there a beta version of CHIR that works under python 3?
No. Python 3 is not compatible with Python 2, and PyGTK will never be ported to Python 3. Making CHIRP support Python 3 will require a substantial rewrite of its entire UI to use the new bindings. It will happen someday, but not any time soon.
Google for "python 3 pygtk" and you'll see a lot of similar confusion.
Looks like all you have to do is install the python2 package in Arch:
https://wiki.archlinux.org/index.php/python
...and as I said, arrange for chirp to be run by /usr/bin/python2 instead of /usr/bin/python.
--Dan
Hello Dan,
Thank you.
I have python2 installed.
The first line in the chirpw fiile says:
#!/usr/bin/python2
Which is what https://wiki.archlinux.org/index.php/python says it should be to use python2.
I have no py27 so the command py27 chirpw fails.
So it appears that I still have python2 installed and the heading in chirpw is correct.
I make a symbolic link from python2 to py27 so I can use a command like you suggest.
# ln -s /usr/bin/python2 /usr/bin/py27 # ls /usr/bin/py27 -l lrwxrwxrwx 1 root root 16 Jun 25 13:47 /usr/bin/py27 -> /usr/bin/python2
# py27 chirpw Traceback (most recent call last): File "chirpw", line 25, in <module> import gtk ImportError: No module named gtk
Finding pygtk:
# locate pygtk /usr/bin/pygtk-codegen-2.0 /usr/bin/pygtk-demo /usr/include/pygtk-2.0 /usr/include/pygtk-2.0/pyglib.h /usr/include/pygtk-2.0/pygobject.h /usr/include/pygtk-2.0/pygtk /usr/include/pygtk-2.0/pygtk/pygtk.h /usr/lib/pygtk <SNIP SNIP>
I guess chirpw is failing only because it cannot find and import pygtk.
If I knew what I was doing it would help you I am sure, but you're stuck with ignorance on this end.
But I take directions pretty well.
Any suggestions?
With gratitude,
David N1EA
On Wed, Jun 25, 2014 at 10:47 AM, Dan Smith dsmith@danplanet.com wrote:
Python 3 is now standard for ARCH Linux.
That has nothing to do with it. If you can't also install a python 2 runtime, then you need to get a different distro. Python 3 is part of the standard install of Ubuntu too, but they also include a Python 2 runtime because so many things still require it (anything that uses pygtk, for starters).
Is there a beta version of CHIR that works under python 3?
No. Python 3 is not compatible with Python 2, and PyGTK will never be ported to Python 3. Making CHIRP support Python 3 will require a substantial rewrite of its entire UI to use the new bindings. It will happen someday, but not any time soon.
Google for "python 3 pygtk" and you'll see a lot of similar confusion.
Looks like all you have to do is install the python2 package in Arch:
https://wiki.archlinux.org/index.php/python
...and as I said, arrange for chirp to be run by /usr/bin/python2 instead of /usr/bin/python.
--Dan
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
The first line in the chirpw fiile says:
#!/usr/bin/python2
Then it should be running in python 2.x, which is fine.
Which is what https://wiki.archlinux.org/index.php/python says it should be to use python2.
I have no py27 so the command py27 chirpw fails.
So it appears that I still have python2 installed and the heading in chirpw is correct.
Yes.
I make a symbolic link from python2 to py27 so I can use a command like you suggest.
# ln -s /usr/bin/python2 /usr/bin/py27 # ls /usr/bin/py27 -l lrwxrwxrwx 1 root root 16 Jun 25 13:47 /usr/bin/py27 -> /usr/bin/python2
# py27 chirpw
You don't need to do this based on the above.
Traceback (most recent call last): File "chirpw", line 25, in <module> import gtk ImportError: No module named gtk
This is it trying to import gtk, not pygtk. Do this:
% python2 Python 2.7.5+ (default, Feb 27 2014, 19:37:08) [GCC 4.8.1] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import pygtk import gtk
Verify that it's running Python 2.x, and try to do those two imports without seeing the ImportError. If you can't, then you're missing something on your system, completely independent of CHIRP.
I'm not familiar with Arch (other than to know that it's really not the ideal choice for user-friendliness) so I can't help much. I don't know what the package names are, or how they split apart python libraries to tell you what to install. Maybe someone else here is more familiar and can help out.
Good luck!
--Dan
Hello Dan,
I had this working a few days ago before I upgraded!
Here is what I get:
$ python2 Python 2.7.7 (default, Jun 3 2014, 01:48:00) [GCC 4.9.0 20140521 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import pygtk
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named pygtk
import gtk
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named gtk
Same error: No module named gtk.
Anyone understand what's wrong?
Thanks!!!
David N1EA
On Wed, 25 Jun 2014, Dan Smith wrote:
The first line in the chirpw fiile says:
#!/usr/bin/python2
Then it should be running in python 2.x, which is fine.
Which is what https://wiki.archlinux.org/index.php/python says it should be to use python2.
I have no py27 so the command py27 chirpw fails.
So it appears that I still have python2 installed and the heading in chirpw is correct.
Yes.
I make a symbolic link from python2 to py27 so I can use a command like you suggest.
# ln -s /usr/bin/python2 /usr/bin/py27 # ls /usr/bin/py27 -l lrwxrwxrwx 1 root root 16 Jun 25 13:47 /usr/bin/py27 -> /usr/bin/python2
# py27 chirpw
You don't need to do this based on the above.
Traceback (most recent call last): File "chirpw", line 25, in <module> import gtk ImportError: No module named gtk
This is it trying to import gtk, not pygtk. Do this:
% python2 Python 2.7.5+ (default, Feb 27 2014, 19:37:08) [GCC 4.8.1] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import pygtk import gtk
Verify that it's running Python 2.x, and try to do those two imports without seeing the ImportError. If you can't, then you're missing something on your system, completely independent of CHIRP.
I'm not familiar with Arch (other than to know that it's really not the ideal choice for user-friendliness) so I can't help much. I don't know what the package names are, or how they split apart python libraries to tell you what to install. Maybe someone else here is more familiar and can help out.
Good luck!
--Dan
On Wed, Jun 25, 2014 at 12:02 PM, David J. Ring, Jr. n1ea@arrl.net wrote:
Same error: No module named gtk.
Anyone understand what's wrong?
Yes, simple: you don't have PyGTK installed. At least it is not installed correctly. PyGTK is required before you can run Chirp (as you've found).
We provide instructions for installing Chirp dependencies on Debian/Ubuntu and Fedora/RedHat style systems: http://chirp.danplanet.com/projects/chirp/wiki/Running_Under_Linux#Manual-in...
Being an Arch user, I'm sure you can translate those instructions to something appropriate for Arch. If not, maybe a more contextual subject than "Linux My CHIRP Protests" will catch another Arch user's eye and they will reply with some instructions for Arch. Or, now that you know what the problem is, I bet a Google search would be fruitful.
Tom KD7LXL
you could also try to run this: sudo easy_install pygtk pyserial
If easy_install doesnt work, try installing whatever package provides this.. on ubuntu its python-setuptools
If that doesnt work try to install whatever package installs pip, and then use pip to install those modules.
This is a generic python/dependency issue unrelated to chirp, so you will probably have better luck chasing this down on some python/pygtk or your os distro support forum/mailing list, etc.
-Jens
________________________________ From: Tom Hayward tom@tomh.us To: Discussion of CHIRP chirp_users@intrepid.danplanet.com Sent: Wednesday, June 25, 2014 3:39 PM Subject: Re: [chirp_users] Fwd: Re: Linux My CHIRP Protests
On Wed, Jun 25, 2014 at 12:02 PM, David J. Ring, Jr. n1ea@arrl.net wrote:
Same error: No module named gtk.
Anyone understand what's wrong?
Yes, simple: you don't have PyGTK installed. At least it is not installed correctly. PyGTK is required before you can run Chirp (as you've found).
We provide instructions for installing Chirp dependencies on Debian/Ubuntu and Fedora/RedHat style systems: http://chirp.danplanet.com/projects/chirp/wiki/Running_Under_Linux#Manual-in...
Being an Arch user, I'm sure you can translate those instructions to something appropriate for Arch. If not, maybe a more contextual subject than "Linux My CHIRP Protests" will catch another Arch user's eye and they will reply with some instructions for Arch. Or, now that you know what the problem is, I bet a Google search would be fruitful.
Tom KD7LXL
_______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
Thank you! On Jun 30, 2014 8:44 PM, "Jens J." kd4tjx@yahoo.com wrote:
you could also try to run this: sudo easy_install pygtk pyserial
If easy_install doesnt work, try installing whatever package provides this.. on ubuntu its python-setuptools
If that doesnt work try to install whatever package installs pip, and then use pip to install those modules.
This is a generic python/dependency issue unrelated to chirp, so you will probably have better luck chasing this down on some python/pygtk or your os distro support forum/mailing list, etc.
-Jens
*From:* Tom Hayward tom@tomh.us *To:* Discussion of CHIRP chirp_users@intrepid.danplanet.com *Sent:* Wednesday, June 25, 2014 3:39 PM *Subject:* Re: [chirp_users] Fwd: Re: Linux My CHIRP Protests
On Wed, Jun 25, 2014 at 12:02 PM, David J. Ring, Jr. n1ea@arrl.net wrote:
Same error: No module named gtk.
Anyone understand what's wrong?
Yes, simple: you don't have PyGTK installed. At least it is not installed correctly. PyGTK is required before you can run Chirp (as you've found).
We provide instructions for installing Chirp dependencies on Debian/Ubuntu and Fedora/RedHat style systems:
http://chirp.danplanet.com/projects/chirp/wiki/Running_Under_Linux#Manual-in...
Being an Arch user, I'm sure you can translate those instructions to something appropriate for Arch. If not, maybe a more contextual subject than "Linux My CHIRP Protests" will catch another Arch user's eye and they will reply with some instructions for Arch. Or, now that you know what the problem is, I bet a Google search would be fruitful.
Tom KD7LXL
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users
participants (7)
-
D.J.J. Ring, Jr.
-
Dan Smith
-
David J. Ring, Jr.
-
Denis Dimick
-
Jens J.
-
Silverfox
-
Tom Hayward