Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453710 - media-radio/wspr-2.00 with dev-lang/python-3 - wspr: print " / / / SyntaxError: invalid syntax
Summary: media-radio/wspr-2.00 with dev-lang/python-3 - wspr: print " / / / SyntaxErro...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-23 17:59 UTC by Teun Blok
Modified: 2013-02-01 18:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info,4.58 KB, text/plain)
2013-01-23 18:01 UTC, Teun Blok
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Teun Blok 2013-01-23 17:59:56 UTC
When I run emerge wspr, proces is ok without errors. After trying to run, it gives a error and wspr doesn't show up.

Reproducible: Always

Steps to Reproduce:
1.emerge wspr
2.wspr or python wspr.py
3.error
Actual Results:  
I tried two way's to run wspr:

teun@i5-750 ~ $ wspr
  File "/usr//bin/wspr.py", line 33
    print "******************************************************************"
                                                                             ^
SyntaxError: invalid syntax


teun@i5-750 ~ $ python wspr.py
/usr/bin/python3.2: can't open file 'wspr.py': [Errno 2] No such file or directory


As root I have the same problem.
Comment 1 Teun Blok 2013-01-23 18:01:42 UTC
Created attachment 336618 [details]
emerge --info
Comment 2 Thomas Beierlein gentoo-dev 2013-01-24 19:58:46 UTC
Seems you run python3 as your default python interpreter. I know wspr does not work with python3 yet. But I will look a little bit closer into it the next days.
Comment 3 Thomas Beierlein gentoo-dev 2013-01-27 16:52:18 UTC
(In reply to comment #0)

> teun@i5-750 ~ $ python wspr.py
> /usr/bin/python3.2: can't open file 'wspr.py': [Errno 2] No such file or
> directory
> 
> 
Teun, please try to run 'python2 /usr/bin/wspr.py' and report what happens for you.
Comment 4 Teun Blok 2013-01-28 21:44:38 UTC
Tom, I tried:

teun@i5-750 ~ $ python2 /usr/bin/wspr.py
python2: can't open file '/usr/bin/wspr.py': [Errno 2] No such file or directory
teun@i5-750 ~ $ 

To show that python2 is working:

i5-750 teun # python2
Python 2.7.3 (default, Jan 24 2013, 17:48:58) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Comment 5 Teun Blok 2013-01-31 18:55:56 UTC
Tom, it works now with python2 /usr/bin/wspr.py

python2 /usr/bin/wspr.py
******************************************************************
WSPR Version 2.0_r1714 , by K1JT
Run date:   Thu Jan 31 18:53:27 2013 UTC
ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
^CTraceback (most recent call last):
  File "/usr/bin/wspr.py", line 1474, in <module>
    root.mainloop()
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1017, in mainloop
    self.tk.mainloop(n)
KeyboardInterrupt


Thanks

Teun
Comment 6 Thomas Beierlein gentoo-dev 2013-02-01 18:26:50 UTC
(In reply to comment #5)
> Tom, it works now with python2 /usr/bin/wspr.py
> 
Good to hear. 

Anyway I just working on a fix to make calling wspr itself easier by using the new python-r1 eclass infrastructure. sew Bug #453570