Advertisement
Guest User

GNU Radio Python 3 import problem

a guest
Jan 18th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.76 KB | None | 0 0
  1. 1 ro1@watch:~/playground$ python3 -v -c "from gnuradio import gr"
  2. import _frozen_importlib # frozen
  3. import _imp # builtin
  4. import sys # builtin
  5. import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
  6. import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
  7. import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
  8. import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
  9. import '_io' # <class '_frozen_importlib.BuiltinImporter'>
  10. import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
  11. import 'posix' # <class '_frozen_importlib.BuiltinImporter'>
  12. import _thread # previously loaded ('_thread')
  13. import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
  14. import _weakref # previously loaded ('_weakref')
  15. import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
  16. # installing zipimport hook
  17. import 'zipimport' # <class '_frozen_importlib.BuiltinImporter'>
  18. # installed zipimport hook
  19. # /usr/lib64/python3.6/encodings/__pycache__/__init__.cpython-36.pyc matches /usr/lib64/python3.6/encodings/__init__.py
  20. # code object from '/usr/lib64/python3.6/encodings/__pycache__/__init__.cpython-36.pyc'
  21. # /usr/lib64/python3.6/__pycache__/codecs.cpython-36.pyc matches /usr/lib64/python3.6/codecs.py
  22. # code object from '/usr/lib64/python3.6/__pycache__/codecs.cpython-36.pyc'
  23. import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
  24. import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbbb70b8>
  25. # /usr/lib64/python3.6/encodings/__pycache__/aliases.cpython-36.pyc matches /usr/lib64/python3.6/encodings/aliases.py
  26. # code object from '/usr/lib64/python3.6/encodings/__pycache__/aliases.cpython-36.pyc'
  27. import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbbc6a58>
  28. import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbc2fc18>
  29. # /usr/lib64/python3.6/encodings/__pycache__/utf_8.cpython-36.pyc matches /usr/lib64/python3.6/encodings/utf_8.py
  30. # code object from '/usr/lib64/python3.6/encodings/__pycache__/utf_8.cpython-36.pyc'
  31. import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbbd4860>
  32. import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
  33. # /usr/lib64/python3.6/encodings/__pycache__/latin_1.cpython-36.pyc matches /usr/lib64/python3.6/encodings/latin_1.py
  34. # code object from '/usr/lib64/python3.6/encodings/__pycache__/latin_1.cpython-36.pyc'
  35. import 'encodings.latin_1' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbbdb390>
  36. # /usr/lib64/python3.6/__pycache__/io.cpython-36.pyc matches /usr/lib64/python3.6/io.py
  37. # code object from '/usr/lib64/python3.6/__pycache__/io.cpython-36.pyc'
  38. # /usr/lib64/python3.6/__pycache__/abc.cpython-36.pyc matches /usr/lib64/python3.6/abc.py
  39. # code object from '/usr/lib64/python3.6/__pycache__/abc.cpython-36.pyc'
  40. # /usr/lib64/python3.6/__pycache__/_weakrefset.cpython-36.pyc matches /usr/lib64/python3.6/_weakrefset.py
  41. # code object from '/usr/lib64/python3.6/__pycache__/_weakrefset.cpython-36.pyc'
  42. import '_weakrefset' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbbe1320>
  43. import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbbdb978>
  44. import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbbdb5c0>
  45. # /usr/lib64/python3.6/__pycache__/site.cpython-36.pyc matches /usr/lib64/python3.6/site.py
  46. # code object from '/usr/lib64/python3.6/__pycache__/site.cpython-36.pyc'
  47. # /usr/lib64/python3.6/__pycache__/os.cpython-36.pyc matches /usr/lib64/python3.6/os.py
  48. # code object from '/usr/lib64/python3.6/__pycache__/os.cpython-36.pyc'
  49. import 'errno' # <class '_frozen_importlib.BuiltinImporter'>
  50. # /usr/lib64/python3.6/__pycache__/stat.cpython-36.pyc matches /usr/lib64/python3.6/stat.py
  51. # code object from '/usr/lib64/python3.6/__pycache__/stat.cpython-36.pyc'
  52. import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
  53. import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbb836a0>
  54. # /usr/lib64/python3.6/__pycache__/posixpath.cpython-36.pyc matches /usr/lib64/python3.6/posixpath.py
  55. # code object from '/usr/lib64/python3.6/__pycache__/posixpath.cpython-36.pyc'
  56. # /usr/lib64/python3.6/__pycache__/genericpath.cpython-36.pyc matches /usr/lib64/python3.6/genericpath.py
  57. # code object from '/usr/lib64/python3.6/__pycache__/genericpath.cpython-36.pyc'
  58. import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbb8d0b8>
  59. import 'posixpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbb83d68>
  60. # /usr/lib64/python3.6/__pycache__/_collections_abc.cpython-36.pyc matches /usr/lib64/python3.6/_collections_abc.py
  61. # code object from '/usr/lib64/python3.6/__pycache__/_collections_abc.cpython-36.pyc'
  62. import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbb8d710>
  63. import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbb73f98>
  64. # /usr/lib64/python3.6/__pycache__/_sitebuiltins.cpython-36.pyc matches /usr/lib64/python3.6/_sitebuiltins.py
  65. # code object from '/usr/lib64/python3.6/__pycache__/_sitebuiltins.cpython-36.pyc'
  66. import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbb773c8>
  67. # /usr/lib64/python3.6/__pycache__/sysconfig.cpython-36.pyc matches /usr/lib64/python3.6/sysconfig.py
  68. # code object from '/usr/lib64/python3.6/__pycache__/sysconfig.cpython-36.pyc'
  69. import 'sysconfig' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbb1eb70>
  70. # /usr/lib64/python3.6/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc matches /usr/lib64/python3.6/_sysconfigdata_m_linux_x86_64-linux-gnu.py
  71. # code object from '/usr/lib64/python3.6/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc'
  72. import '_sysconfigdata_m_linux_x86_64-linux-gnu' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbb31470>
  73. import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0x7f1ebbbe6c50>
  74. Python 3.6.8 (default, Aug 7 2019, 17:28:10)
  75. [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
  76. Type "help", "copyright", "credits" or "license" for more information.
  77. # possible namespace for /usr/local/include/gnuradio
  78. # possible namespace for /usr/local/etc/gnuradio
  79. import 'gnuradio' # None
  80. Traceback (most recent call last):
  81. File "<string>", line 1, in <module>
  82. ImportError: cannot import name 'gr'
  83. # clear builtins._
  84. # clear sys.path
  85. # clear sys.argv
  86. # clear sys.ps1
  87. # clear sys.ps2
  88. # clear sys.last_type
  89. # clear sys.last_value
  90. # clear sys.last_traceback
  91. # clear sys.path_hooks
  92. # clear sys.path_importer_cache
  93. # clear sys.meta_path
  94. # clear sys.__interactivehook__
  95. # clear sys.flags
  96. # clear sys.float_info
  97. # restore sys.stdin
  98. # restore sys.stdout
  99. # restore sys.stderr
  100. # cleanup[2] removing builtins
  101. # cleanup[2] removing sys
  102. # cleanup[2] removing _frozen_importlib
  103. # cleanup[2] removing _imp
  104. # cleanup[2] removing _warnings
  105. # cleanup[2] removing _thread
  106. # cleanup[2] removing _weakref
  107. # cleanup[2] removing _frozen_importlib_external
  108. # cleanup[2] removing _io
  109. # cleanup[2] removing marshal
  110. # cleanup[2] removing posix
  111. # cleanup[2] removing zipimport
  112. # cleanup[2] removing encodings
  113. # destroy encodings
  114. # cleanup[2] removing codecs
  115. # cleanup[2] removing _codecs
  116. # cleanup[2] removing encodings.aliases
  117. # cleanup[2] removing encodings.utf_8
  118. # cleanup[2] removing _signal
  119. # cleanup[2] removing __main__
  120. # destroy __main__
  121. # cleanup[2] removing encodings.latin_1
  122. # cleanup[2] removing io
  123. # destroy io
  124. # cleanup[2] removing abc
  125. # cleanup[2] removing _weakrefset
  126. # destroy _weakrefset
  127. # cleanup[2] removing site
  128. # destroy site
  129. # cleanup[2] removing os
  130. # cleanup[2] removing errno
  131. # cleanup[2] removing stat
  132. # cleanup[2] removing _stat
  133. # cleanup[2] removing posixpath
  134. # cleanup[2] removing genericpath
  135. # cleanup[2] removing os.path
  136. # cleanup[2] removing _collections_abc
  137. # destroy _collections_abc
  138. # cleanup[2] removing _sitebuiltins
  139. # cleanup[2] removing sysconfig
  140. # destroy sysconfig
  141. # cleanup[2] removing _sysconfigdata_m_linux_x86_64-linux-gnu
  142. # destroy _sysconfigdata_m_linux_x86_64-linux-gnu
  143. # cleanup[2] removing gnuradio
  144. # destroy gnuradio
  145. # destroy zipimport
  146. # destroy _signal
  147. # destroy _sitebuiltins
  148. # destroy abc
  149. # destroy errno
  150. # destroy posixpath
  151. # destroy _stat
  152. # destroy genericpath
  153. # destroy stat
  154. # destroy os
  155. # cleanup[3] wiping _frozen_importlib
  156. # destroy _frozen_importlib_external
  157. # cleanup[3] wiping _imp
  158. # cleanup[3] wiping _warnings
  159. # cleanup[3] wiping _thread
  160. # cleanup[3] wiping _weakref
  161. # cleanup[3] wiping _io
  162. # cleanup[3] wiping marshal
  163. # cleanup[3] wiping posix
  164. # cleanup[3] wiping codecs
  165. # cleanup[3] wiping _codecs
  166. # cleanup[3] wiping encodings.aliases
  167. # cleanup[3] wiping encodings.utf_8
  168. # cleanup[3] wiping encodings.latin_1
  169. # cleanup[3] wiping sys
  170. # cleanup[3] wiping builtins
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement