Re: [Discuss-gnuradio] gnuradio-companion problem
Hi Dan - Make sure you've installed both the gnuradio and gr-osmosdr ports with the +swig variant. Without it, you do not get the *_swig import libraries. If this is not the case, then email me off list and I'll help you debug the issue. - MLD On May 21, 2013, at 11:11 AM, Dan Aldrich wrote: > Installed gnu radio using mac ports. First attempt was bumpy, so unistalled > and reinstalled again. > The companion comes up, but when I try a simple FM receiver (RTL-SDR -> WBFM > -> Audio Sink), I get the following: > > Generating: "/Users/daldrich/top_block.py" > > Executing: "/Users/daldrich/top_block.py" > > Traceback (most recent call last): > File "/Users/daldrich/top_block.py", line 17, in >import osmosdr > File > "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/__init__.py", > line 45, in >from osmosdr_swig import * > ImportError: No module named osmosdr_swig ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] gnuradio-companion problem
Installed gnu radio using mac ports. First attempt was bumpy, so unistalled and reinstalled again. The companion comes up, but when I try a simple FM receiver (RTL-SDR -> WBFM -> Audio Sink), I get the following: Generating: "/Users/daldrich/top_block.py" Executing: "/Users/daldrich/top_block.py" Traceback (most recent call last): File "/Users/daldrich/top_block.py", line 17, in import osmosdr File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/__init__.py", line 45, in from osmosdr_swig import * ImportError: No module named osmosdr_swig >>> Done Thanks, -d ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] gnuradio companion problem
On Wed, Dec 02, 2009 at 08:57:58PM +0200, mehmet kabasakal wrote: > Hi everyone, > > I am trying to run grc from the terminal. But when i type grc i got: > > meh...@mehmet-laptop:~$ grc > Traceback (most recent call last): > File "/usr/bin/grc", line 48, in > from gnuradio.grc.python.Platform import Platform > File "/usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py", > line 22, in > from .. base.Platform import Platform as _Platform > File "/usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py", > line 22, in > from .. base import ParseXML, odict > File "/usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py", > line 20, in > from lxml import etree > File "lxml.etree.pyx", line 188, in lxml.etree > (src/lxml/lxml.etree.c:124917) > LookupError: unknown encoding: ASCII > Error in sys.excepthook: > Traceback (most recent call last): > File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 38, in > apport_excepthook > from apport.packaging_impl import impl as packaging > File "/usr/lib/python2.6/dist-packages/apport/__init__.py", line 1, in > > from apport.report import Report > File "/usr/lib/python2.6/dist-packages/apport/report.py", line 20, in > > from problem_report import ProblemReport > File "/usr/lib/python2.6/dist-packages/problem_report.py", line 17, in > > from email.Encoders import encode_base64 > File "/usr/lib/python2.6/email/__init__.py", line 47, in > sys.setrecursionlimit(1500) > NameError: name 'sys' is not defined > > Original exception was: > Traceback (most recent call last): > File "/usr/bin/grc", line 48, in > from gnuradio.grc.python.Platform import Platform > File "/usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py", > line 22, in > from .. base.Platform import Platform as _Platform > File "/usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py", > line 22, in > from .. base import ParseXML, odict > File "/usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py", > line 20, in > from lxml import etree > File "lxml.etree.pyx", line 188, in lxml.etree > (src/lxml/lxml.etree.c:124917) > LookupError: unknown encoding: ASCII > > Do you have any idea about this? > I use gnuradio 3.2.2 and ubuntu 9.04 I think somebody else reported something like this a week or two ago. Can you try searching the archives. The problem might have been the wrong version of lxml. Try searching for gnuradio+lxml+ascii Eric ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] gnuradio companion problem
Hi everyone, I am trying to run grc from the terminal. But when i type grc i got: meh...@mehmet-laptop:~$ grc Traceback (most recent call last): File "/usr/bin/grc", line 48, in from gnuradio.grc.python.Platform import Platform File "/usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py", line 22, in from .. base.Platform import Platform as _Platform File "/usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py", line 22, in from .. base import ParseXML, odict File "/usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py", line 20, in from lxml import etree File "lxml.etree.pyx", line 188, in lxml.etree (src/lxml/lxml.etree.c:124917) LookupError: unknown encoding: ASCII Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 38, in apport_excepthook from apport.packaging_impl import impl as packaging File "/usr/lib/python2.6/dist-packages/apport/__init__.py", line 1, in from apport.report import Report File "/usr/lib/python2.6/dist-packages/apport/report.py", line 20, in from problem_report import ProblemReport File "/usr/lib/python2.6/dist-packages/problem_report.py", line 17, in from email.Encoders import encode_base64 File "/usr/lib/python2.6/email/__init__.py", line 47, in sys.setrecursionlimit(1500) NameError: name 'sys' is not defined Original exception was: Traceback (most recent call last): File "/usr/bin/grc", line 48, in from gnuradio.grc.python.Platform import Platform File "/usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py", line 22, in from .. base.Platform import Platform as _Platform File "/usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py", line 22, in from .. base import ParseXML, odict File "/usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py", line 20, in from lxml import etree File "lxml.etree.pyx", line 188, in lxml.etree (src/lxml/lxml.etree.c:124917) LookupError: unknown encoding: ASCII Do you have any idea about this? I use gnuradio 3.2.2 and ubuntu 9.04 ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio