Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use VIRGO, need guidance #30

Open
sirsendu64 opened this issue Aug 19, 2022 · 7 comments
Open

Unable to use VIRGO, need guidance #30

sirsendu64 opened this issue Aug 19, 2022 · 7 comments

Comments

@sirsendu64
Copy link

I installed GNU Companion, osmocom, and other dependencies. Installed Virgo also, as per the direction given in the manual. I'm using Linux Mint as OS. But could not understand how to import modules and where to import them. how to use it with GNU Companion? Please give me a step-by-step guide. Python 2.7.17 is there in my system. #python -c "import virgo" shows no output on the command line. virgo is present under module list.
`$ python
Python 2.7.17 (default, Jul 1 2022, 15:56:32)
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

help('modules')

Please wait a moment while I gather a list of all available modules...

WARNING: AstropyDeprecationWarning: The astropy.vo.samp module has now been moved to astropy.samp [astropy.vo.samp]
/usr/local/lib/python2.7/dist-packages/skimage/novice/init.py:103: UserWarning: The skimage.novice module was deprecated in version 0.14. It will be removed in 0.16.
warnings.warn("The skimage.novice module was deprecated in version 0.14. "
No handlers could be found for logger "OpenGL.Tk"
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

/usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
BaseHTTPServer astropy imaplib rlcompleter
Bastion asynchat imghdr robotparser
CDROM asyncore imp runpy
CGIHTTPServer atexit importlib samba
Canvas atk imputil scanext
Cheetah atomicwrites imutils sched
ConfigParser attr iniparse scipy
Cookie attrs inspect select
Crypto audiodev io serial
DLFCN audioop itertools setproctitle
Dialog backports json sets
DocXMLRPCServer base64 keyword setuptools
FileDialog bdb ldb sgmllib
FixTk binascii lib2to3 sha
HTMLParser binhex libxml2 shelve
Hamlib bisect libxml2mod shlex
IN bsddb libxslt shutil
MimeWriter bz2 libxsltmod signal
OpenGL cPickle linecache sip
PIL cProfile linuxaudiodev sipconfig
PyPDF2 cStringIO locale sipconfig_nd
PyQt4 cairo logging site
PyQt5 calendar lsb_release sitecustomize
PySide cgi lxml six
Queue cgitb macpath skimage
ScrolledText chirp macurl2path smtpd
SimpleDialog chunk mailbox smtplib
SimpleHTTPServer cloudpickle mailcap sndhdr
SimpleXMLRPCServer cmath markupbase socket
SoapySDR cmd marshal spwd
SocketServer code math sqlite3
StringIO codecs matplotlib sre
TYPES codeop md5 sre_compile
Tix collada mhlib sre_constants
Tkconstants collections mimetools sre_parse
Tkdnd colorsys mimetypes ssl
Tkinter commands mimify stat
UserDict compileall mmap statvfs
UserList compiler modulefinder string
UserString configobj more_itertools stringold
Xlib contextlib mpl_toolkits stringprep
_Hamlib cookielib multifile strop
_LWPCookieJar copy multiprocessing struct
_MozillaCookieJar copy_reg mutex subprocess
_SoapySDR crypt netrc subprocess32
builtin csv networkx sunau
future ctypes new sunaudio
_abcoll cupsext nis symbol
_ast curses nntplib symtable
_bisect cv2 ntpath sys
_bsddb cycler nturl2path sysconfig
_codecs datetime numbers syslog
_codecs_cn dateutil numpy tabnanny
_codecs_hk dbhash oauth2 talloc
_codecs_iso2022 dbm opcode tarfile
_codecs_jp dbus operator tdb
_codecs_kr decimal optparse telnetlib
_codecs_tw decorator os tempfile
_collections difflib os2emxpath termios
_csv dircache osmosdr tesserocr
_ctypes dis ossaudiodev test
_ctypes_test distutils pango tests
_curses doctest pangocairo textwrap
_curses_panel drv_libxml2 parser this
_dbus_bindings dsextras pathtools thread
_dbus_glib_bindings dumbdbm pcardext threading
_elementtree dummy_thread pdb thrift
_functools dummy_threading pickle time
_hashlib easy_install pickletools timeit
_heapq email pip tkColorChooser
_hotshot encodings pipes tkCommonDialog
_io ensurepip pivy tkFileDialog
_json ephem pkg_resources tkFont
_ldb_text errno pkgutil tkMessageBox
_locale evernote platform tkSimpleDialog
_lsprof exceptions plistlib toaiff
_md5 fcntl pluggy token
_multibytecodec filecmp ply tokenize
_multiprocessing fileinput pmt trace
_osx_support fnmatch popen2 traceback
_posixsubprocess formatter poplib ttk
_pyio fpformat posix tty
_pytest fractions posixfile turtle
_random ftplib posixpath types
_sha funcsigs pprint unicodedata
_sha256 functools profile unittest
_sha512 future_builtins pstats urllib
_socket gc pty urllib2
_sqlite3 genericpath pwd urlparse
_sre getopt py user
_ssl getpass py_compile uu
_strptime gettext pyclbr uuid
_struct gi pydoc validate
_symtable gio pydoc_data virgo
_sysconfigdata glib pyexpat warnings
_sysconfigdata_nd glob pygtk watchdog
_tdb_text gnuradio pygtkcompat wave
_testcapi gobject pylab weakref
_threading_local gps pynotify webbrowser
_version grc_gnuradio pyparsing whichdb
_warnings grp pypdfocr wsgiref
_weakref gtk pysideuic wx
_weakrefset gtkunixprint pytest wxversion
abc gzip pytz xdg
aifc hashlib pywt xdrlib
antigravity heapq quopri xml
anydbm hmac random xmllib
apt hotshot re xmlrpclib
apt_inst hpmudext readline xxsubtype
apt_pkg htmlentitydefs reportlab zbar
aptsources htmllib repr zipfile
argparse httplib resource zipimport
array httplib2 rexec zlib
ast ihooks rfc822 zmq
`

@0xCoto
Copy link
Owner

0xCoto commented Aug 19, 2022

@sirsendu64 Firstly, why not use Python 3? Also, what happens if you run python -m pip show astro-virgo?

@sirsendu64
Copy link
Author

@sirsendu64 Firstly, why not use Python 3? Also, what happens if you run python -m pip show astro-virgo?

Yes, python -m pip shows astro-virgo 3.8.1

Terminal Output as under:-

$ python -m pip list
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Package Version


astro-virgo 3.8.1
astropy 2.0.16
atomicwrites 1.4.1
attrs 21.4.0
backports.functools-lru-cache 1.4
Cheetah 2.4.4
chirp daily-20170714
cloudpickle 1.3.0
configobj 5.0.6
cycler 0.10.0
decorator 4.4.2
ephem 4.1.3
evernote 1.25.3
funcsigs 1.0.2
gps 3.17
httplib2 0.19.0
imutils 0.5.4
iniparse 0.4
lxml 4.2.1
matplotlib 2.1.1
more-itertools 5.0.0
networkx 2.2
numpy 1.13.3
oauth2 1.9.0.post1
pathtools 0.1.2
Pillow 5.1.0
pip 20.3.4
Pivy 0.5.0
pluggy 0.7.1
ply 3.11
py 1.11.0
pycairo 1.16.2
pycollada 0.4
pycrypto 2.6.1
pygobject 3.26.1
PyOpenGL 3.1.0
pyparsing 2.4.7
PyPDF2 1.26.0
pypdfocr 0.9.1
pyserial 3.4
PySide 1.2.2
pytest 3.6.4
python-apt 1.6.5+ubuntu0.7
python-dateutil 2.6.1
python-xlib 0.20
pytz 2018.3
PyWavelets 1.0.3
pyxdg 0.25
pyzmq 16.0.2
reportlab 3.4.0
scikit-image 0.14.5
scipy 1.2.3
setproctitle 1.1.10
setuptools 44.1.1
six 1.11.0
subprocess32 3.2.7
tesserocr 2.5.1
watchdog 0.10.6
wxPython 3.0.2.0
wxPython-common 3.0.2.0

@sirsendu64
Copy link
Author

@sirsendu64 Firstly, why not use Python 3? Also, what happens if you run python -m pip show astro-virgo?

These three python are already installed

$ python3.10 --version
Python 3.10.0
$ python3 --version
Python 3.6.9
$ python --version
Python 2.7.17

@0xCoto
Copy link
Owner

0xCoto commented Aug 20, 2022

Try installing/running with the other Pythons you've got installed. Python 2 is very outdated, with slightly different syntax, so Python 3.x is always more reliable. Check with pip list for the other Pythons and see if the GNU Radio module is recognized (that's probably the right Python version to use).

@sirsendu64
Copy link
Author

My current GNU Companion version: GNU Radio Companion 3.8.3.1,
$python -m pip list
astro-virgo 3.8.1 ,
$ python -VV
Python 2.7.17 $ python3 -VV
Python 3.6.9 (default, Jun 29 2022, 11:45:57)
[GCC 8.4.0] ;
Now when I load grc wola or grc ftf file at GNU companion it shows red color error at observation.dat file.

Error2_ftf
Error1_wola

Please help me out in this case and also tell me how to run those python files at Linux mint

@0xCoto
Copy link
Owner

0xCoto commented Aug 30, 2022

I'm pretty sure your GNU Radio version uses Python 3 and not Python 2. Also regarding the flowcharts (which I guess aren't working properly because I haven't updated Virgo for GNU Radio 3.8).

@sirsendu64 In the meantime, to fix this double click on the dev_args and obs_file blocks and set the type to String. I'll try to push an update with the fix, give me an hour (but you can try this in the meantime, and recompile (button next to "play")). You do have to rename them back though and place them in the right folder.

Give me some time, if I can push an update it'll be easier to just update and not touch anything else.

@0xCoto
Copy link
Owner

0xCoto commented Aug 30, 2022

@sirsendu64 Try updating virgo with pip install astro-virgo -U and check if it works with Python 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants