Advertisement
shaifali

i18n error with gettextutils

Oct 2nd, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.66 KB | None | 0 0
  1. xxx@ubuntu:/opt/stack/python-glanceclient$
  2. xxx@ubuntu:/opt/stack/python-glanceclient$ ./run_tests.sh
  3. py27 develop-inst-nodeps: /opt/stack/python-glanceclient
  4. py27 runtests: PYTHONHASHSEED='0'
  5. py27 runtests: commands[0] | python setup.py testr --testr-args=
  6. running testr
  7. running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests
  8. ======================================================================
  9. FAIL: unittest.loader.ModuleImportFailure.tests.test_base
  10. tags: worker-0
  11. ----------------------------------------------------------------------
  12. Traceback (most recent call last):
  13. ImportError: Failed to import test module: tests.test_base
  14. Traceback (most recent call last):
  15. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  16. module = self._get_module_from_name(name)
  17. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  18. __import__(name)
  19. File "tests/test_base.py", line 19, in <module>
  20. from glanceclient.openstack.common.apiclient import base
  21. File "glanceclient/__init__.py", line 18, in <module>
  22. import glanceclient.client
  23. File "glanceclient/client.py", line 16, in <module>
  24. from glanceclient.common import utils
  25. File "glanceclient/common/utils.py", line 38, in <module>
  26. from glanceclient.openstack.common import strutils
  27. File "glanceclient/openstack/common/strutils.py", line 27, in <module>
  28. from glanceclient.openstack.common.gettextutils import _
  29. File "glanceclient/openstack/common/gettextutils.py", line 89, in <module>
  30. _translators = TranslatorFactory('glanceclient')
  31. NameError: name 'TranslatorFactory' is not defined
  32. ======================================================================
  33. FAIL: unittest.loader.ModuleImportFailure.tests.test_exc
  34. tags: worker-0
  35. ----------------------------------------------------------------------
  36. Traceback (most recent call last):
  37. ImportError: Failed to import test module: tests.test_exc
  38. Traceback (most recent call last):
  39. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  40. module = self._get_module_from_name(name)
  41. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  42. __import__(name)
  43. File "tests/test_exc.py", line 18, in <module>
  44. from glanceclient import exc
  45. ImportError: cannot import name exc
  46. ======================================================================
  47. FAIL: unittest.loader.ModuleImportFailure.tests.test_http
  48. tags: worker-0
  49. ----------------------------------------------------------------------
  50. Traceback (most recent call last):
  51. ImportError: Failed to import test module: tests.test_http
  52. Traceback (most recent call last):
  53. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  54. module = self._get_module_from_name(name)
  55. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  56. __import__(name)
  57. File "tests/test_http.py", line 25, in <module>
  58. from glanceclient.common import http
  59. File "glanceclient/common/http.py", line 38, in <module>
  60. from glanceclient.common import https
  61. File "glanceclient/common/https.py", line 31, in <module>
  62. from glanceclient.common import utils
  63. File "glanceclient/common/utils.py", line 36, in <module>
  64. from glanceclient import exc
  65. ImportError: cannot import name exc
  66. ======================================================================
  67. FAIL: unittest.loader.ModuleImportFailure.tests.test_shell
  68. tags: worker-0
  69. ----------------------------------------------------------------------
  70. Traceback (most recent call last):
  71. ImportError: Failed to import test module: tests.test_shell
  72. Traceback (most recent call last):
  73. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  74. module = self._get_module_from_name(name)
  75. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  76. __import__(name)
  77. File "tests/test_shell.py", line 22, in <module>
  78. from glanceclient import exc
  79. ImportError: cannot import name exc
  80. ======================================================================
  81. FAIL: unittest.loader.ModuleImportFailure.tests.test_ssl
  82. tags: worker-0
  83. ----------------------------------------------------------------------
  84. Traceback (most recent call last):
  85. ImportError: Failed to import test module: tests.test_ssl
  86. Traceback (most recent call last):
  87. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  88. module = self._get_module_from_name(name)
  89. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  90. __import__(name)
  91. File "tests/test_ssl.py", line 22, in <module>
  92. from glanceclient.common import http
  93. File "glanceclient/common/http.py", line 38, in <module>
  94. from glanceclient.common import https
  95. File "glanceclient/common/https.py", line 31, in <module>
  96. from glanceclient.common import utils
  97. File "glanceclient/common/utils.py", line 36, in <module>
  98. from glanceclient import exc
  99. ImportError: cannot import name exc
  100. ======================================================================
  101. FAIL: unittest.loader.ModuleImportFailure.tests.test_utils
  102. tags: worker-0
  103. ----------------------------------------------------------------------
  104. Traceback (most recent call last):
  105. ImportError: Failed to import test module: tests.test_utils
  106. Traceback (most recent call last):
  107. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  108. module = self._get_module_from_name(name)
  109. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  110. __import__(name)
  111. File "tests/test_utils.py", line 21, in <module>
  112. from glanceclient.common import utils
  113. File "glanceclient/common/utils.py", line 36, in <module>
  114. from glanceclient import exc
  115. ImportError: cannot import name exc
  116. ======================================================================
  117. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_client
  118. tags: worker-0
  119. ----------------------------------------------------------------------
  120. Traceback (most recent call last):
  121. ImportError: Failed to import test module: tests.v1.test_client
  122. Traceback (most recent call last):
  123. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  124. module = self._get_module_from_name(name)
  125. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  126. __import__(name)
  127. File "tests/v1/test_client.py", line 18, in <module>
  128. from glanceclient.v1 import client
  129. File "glanceclient/v1/__init__.py", line 16, in <module>
  130. from glanceclient.v1.client import Client # noqa
  131. File "glanceclient/v1/client.py", line 16, in <module>
  132. from glanceclient.common.http import HTTPClient
  133. File "glanceclient/common/http.py", line 38, in <module>
  134. from glanceclient.common import https
  135. File "glanceclient/common/https.py", line 31, in <module>
  136. from glanceclient.common import utils
  137. File "glanceclient/common/utils.py", line 36, in <module>
  138. from glanceclient import exc
  139. ImportError: cannot import name exc
  140. ======================================================================
  141. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_image_members
  142. tags: worker-0
  143. ----------------------------------------------------------------------
  144. Traceback (most recent call last):
  145. ImportError: Failed to import test module: tests.v1.test_image_members
  146. Traceback (most recent call last):
  147. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  148. module = self._get_module_from_name(name)
  149. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  150. __import__(name)
  151. File "tests/v1/test_image_members.py", line 18, in <module>
  152. import glanceclient.v1.image_members
  153. File "glanceclient/v1/__init__.py", line 16, in <module>
  154. from glanceclient.v1.client import Client # noqa
  155. File "glanceclient/v1/client.py", line 16, in <module>
  156. from glanceclient.common.http import HTTPClient
  157. File "glanceclient/common/http.py", line 38, in <module>
  158. from glanceclient.common import https
  159. File "glanceclient/common/https.py", line 31, in <module>
  160. from glanceclient.common import utils
  161. File "glanceclient/common/utils.py", line 36, in <module>
  162. from glanceclient import exc
  163. ImportError: cannot import name exc
  164. ======================================================================
  165. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_images
  166. tags: worker-0
  167. ----------------------------------------------------------------------
  168. Traceback (most recent call last):
  169. ImportError: Failed to import test module: tests.v1.test_images
  170. Traceback (most recent call last):
  171. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  172. module = self._get_module_from_name(name)
  173. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  174. __import__(name)
  175. File "tests/v1/test_images.py", line 23, in <module>
  176. from glanceclient.v1 import client
  177. File "glanceclient/v1/__init__.py", line 16, in <module>
  178. from glanceclient.v1.client import Client # noqa
  179. File "glanceclient/v1/client.py", line 16, in <module>
  180. from glanceclient.common.http import HTTPClient
  181. File "glanceclient/common/http.py", line 38, in <module>
  182. from glanceclient.common import https
  183. File "glanceclient/common/https.py", line 31, in <module>
  184. from glanceclient.common import utils
  185. File "glanceclient/common/utils.py", line 36, in <module>
  186. from glanceclient import exc
  187. ImportError: cannot import name exc
  188. ======================================================================
  189. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_shell
  190. tags: worker-0
  191. ----------------------------------------------------------------------
  192. Traceback (most recent call last):
  193. ImportError: Failed to import test module: tests.v1.test_shell
  194. Traceback (most recent call last):
  195. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  196. module = self._get_module_from_name(name)
  197. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  198. __import__(name)
  199. File "tests/v1/test_shell.py", line 27, in <module>
  200. from glanceclient import exc
  201. ImportError: cannot import name exc
  202. ======================================================================
  203. FAIL: unittest.loader.ModuleImportFailure.tests.v2.test_client
  204. tags: worker-0
  205. ----------------------------------------------------------------------
  206. Traceback (most recent call last):
  207. ImportError: Failed to import test module: tests.v2.test_client
  208. Traceback (most recent call last):
  209. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  210. module = self._get_module_from_name(name)
  211. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  212. __import__(name)
  213. File "tests/v2/test_client.py", line 18, in <module>
  214. from glanceclient.v2 import client
  215. File "glanceclient/v2/client.py", line 17, in <module>
  216. from glanceclient.common import http
  217. File "glanceclient/common/http.py", line 38, in <module>
  218. from glanceclient.common import https
  219. File "glanceclient/common/https.py", line 31, in <module>
  220. from glanceclient.common import utils
  221. File "glanceclient/common/utils.py", line 36, in <module>
  222. from glanceclient import exc
  223. ImportError: cannot import name exc
  224. ======================================================================
  225. FAIL: unittest.loader.ModuleImportFailure.tests.v2.test_images
  226. tags: worker-0
  227. ----------------------------------------------------------------------
  228. Traceback (most recent call last):
  229. ImportError: Failed to import test module: tests.v2.test_images
  230. Traceback (most recent call last):
  231. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  232. module = self._get_module_from_name(name)
  233. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  234. __import__(name)
  235. File "tests/v2/test_images.py", line 22, in <module>
  236. from glanceclient import exc
  237. ImportError: cannot import name exc
  238. ======================================================================
  239. FAIL: unittest.loader.ModuleImportFailure.tests.v2.test_members
  240. tags: worker-0
  241. ----------------------------------------------------------------------
  242. Traceback (most recent call last):
  243. ImportError: Failed to import test module: tests.v2.test_members
  244. Traceback (most recent call last):
  245. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  246. module = self._get_module_from_name(name)
  247. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  248. __import__(name)
  249. File "tests/v2/test_members.py", line 18, in <module>
  250. from glanceclient.v2 import image_members
  251. File "glanceclient/v2/image_members.py", line 18, in <module>
  252. from glanceclient.common import utils
  253. File "glanceclient/common/utils.py", line 36, in <module>
  254. from glanceclient import exc
  255. ImportError: cannot import name exc
  256. ======================================================================
  257. FAIL: unittest.loader.ModuleImportFailure.tests.v2.test_metadefs_namespaces
  258. tags: worker-0
  259. ----------------------------------------------------------------------
  260. Traceback (most recent call last):
  261. ImportError: Failed to import test module: tests.v2.test_metadefs_namespaces
  262. Traceback (most recent call last):
  263. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  264. module = self._get_module_from_name(name)
  265. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  266. __import__(name)
  267. File "tests/v2/test_metadefs_namespaces.py", line 18, in <module>
  268. from glanceclient.v2 import metadefs
  269. File "glanceclient/v2/metadefs.py", line 20, in <module>
  270. from glanceclient.common import utils
  271. File "glanceclient/common/utils.py", line 36, in <module>
  272. from glanceclient import exc
  273. ImportError: cannot import name exc
  274. ======================================================================
  275. FAIL: unittest.loader.ModuleImportFailure.tests.v2.test_metadefs_objects
  276. tags: worker-0
  277. ----------------------------------------------------------------------
  278. Traceback (most recent call last):
  279. ImportError: Failed to import test module: tests.v2.test_metadefs_objects
  280. Traceback (most recent call last):
  281. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  282. module = self._get_module_from_name(name)
  283. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  284. __import__(name)
  285. File "tests/v2/test_metadefs_objects.py", line 19, in <module>
  286. from glanceclient.v2 import metadefs
  287. File "glanceclient/v2/metadefs.py", line 20, in <module>
  288. from glanceclient.common import utils
  289. File "glanceclient/common/utils.py", line 36, in <module>
  290. from glanceclient import exc
  291. ImportError: cannot import name exc
  292. ======================================================================
  293. FAIL: unittest.loader.ModuleImportFailure.tests.v2.test_metadefs_properties
  294. tags: worker-0
  295. ----------------------------------------------------------------------
  296. Traceback (most recent call last):
  297. ImportError: Failed to import test module: tests.v2.test_metadefs_properties
  298. Traceback (most recent call last):
  299. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  300. module = self._get_module_from_name(name)
  301. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  302. __import__(name)
  303. File "tests/v2/test_metadefs_properties.py", line 18, in <module>
  304. from glanceclient.v2 import metadefs
  305. File "glanceclient/v2/metadefs.py", line 20, in <module>
  306. from glanceclient.common import utils
  307. File "glanceclient/common/utils.py", line 36, in <module>
  308. from glanceclient import exc
  309. ImportError: cannot import name exc
  310. ======================================================================
  311. FAIL: unittest.loader.ModuleImportFailure.tests.v2.test_metadefs_resource_types
  312. tags: worker-0
  313. ----------------------------------------------------------------------
  314. Traceback (most recent call last):
  315. ImportError: Failed to import test module: tests.v2.test_metadefs_resource_types
  316. Traceback (most recent call last):
  317. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  318. module = self._get_module_from_name(name)
  319. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  320. __import__(name)
  321. File "tests/v2/test_metadefs_resource_types.py", line 18, in <module>
  322. from glanceclient.v2 import metadefs
  323. File "glanceclient/v2/metadefs.py", line 20, in <module>
  324. from glanceclient.common import utils
  325. File "glanceclient/common/utils.py", line 36, in <module>
  326. from glanceclient import exc
  327. ImportError: cannot import name exc
  328. ======================================================================
  329. FAIL: unittest.loader.ModuleImportFailure.tests.v2.test_shell_v2
  330. tags: worker-0
  331. ----------------------------------------------------------------------
  332. Traceback (most recent call last):
  333. ImportError: Failed to import test module: tests.v2.test_shell_v2
  334. Traceback (most recent call last):
  335. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  336. module = self._get_module_from_name(name)
  337. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  338. __import__(name)
  339. File "tests/v2/test_shell_v2.py", line 20, in <module>
  340. from glanceclient.common import utils
  341. File "glanceclient/common/utils.py", line 36, in <module>
  342. from glanceclient import exc
  343. ImportError: cannot import name exc
  344. ======================================================================
  345. FAIL: unittest.loader.ModuleImportFailure.tests.v2.test_tags
  346. tags: worker-0
  347. ----------------------------------------------------------------------
  348. Traceback (most recent call last):
  349. ImportError: Failed to import test module: tests.v2.test_tags
  350. Traceback (most recent call last):
  351. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  352. module = self._get_module_from_name(name)
  353. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  354. __import__(name)
  355. File "tests/v2/test_tags.py", line 18, in <module>
  356. from glanceclient.v2 import image_tags
  357. File "glanceclient/v2/image_tags.py", line 18, in <module>
  358. from glanceclient.common import utils
  359. File "glanceclient/common/utils.py", line 36, in <module>
  360. from glanceclient import exc
  361. ImportError: cannot import name exc
  362. Ran 33 (-189) tests in 0.130s (-1.165s)
  363. FAILED (id=7, failures=19 (-1))
  364. error: testr failed (1)
  365. ERROR: InvocationError: '/opt/stack/python-glanceclient/.tox/py27/bin/python setup.py testr --testr-args='
  366. ___________________________________ summary ____________________________________
  367. ERROR: py27: commands failed
  368. xxx@ubuntu:/opt/stack/python-glanceclient$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement