Advertisement
romerlrl

Untitled

Feb 14th, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.12 KB | None | 0 0
  1.  
  2. (base) C:\Users\lucas>cp.bat
  3.  
  4. (base) C:\Users\lucas>cd desktop\cp\chancelerpalpatine
  5.  
  6. (base) C:\Users\lucas\Desktop\cp\chancelerpalpatine>conda activate cp
  7.  
  8. (cp) C:\Users\lucas\Desktop\cp\chancelerpalpatine>python -m unittest
  9. WARNING:discord.client:PyNaCl is not installed, voice will NOT be supported
  10. E........EFE...EEE.EE....
  11. ======================================================================
  12. ERROR: bot.models (unittest.loader._FailedTest)
  13. ----------------------------------------------------------------------
  14. ImportError: Failed to import test module: bot.models
  15. Traceback (most recent call last):
  16. File "D:\Users\lucas\anaconda3\envs\cp\lib\unittest\loader.py", line 470, in _find_test_path
  17. package = self._get_module_from_name(name)
  18. File "D:\Users\lucas\anaconda3\envs\cp\lib\unittest\loader.py", line 377, in _get_module_from_name
  19. __import__(name)
  20. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\models\__init__.py", line 11, in <module>
  21. engine = create_engine(os.environ.get("DB_URL"), pool_size=POOL_SIZE)
  22. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\sqlalchemy\engine\__init__.py", line 520, in create_engine
  23. return strategy.create(*args, **kwargs)
  24. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\sqlalchemy\engine\strategies.py", line 56, in create
  25. plugins = u._instantiate_plugins(kwargs)
  26. AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'
  27.  
  28.  
  29. ======================================================================
  30. ERROR: tests.test_astrology_chart (unittest.loader._FailedTest)
  31. ----------------------------------------------------------------------
  32. ImportError: Failed to import test module: tests.test_astrology_chart
  33. Traceback (most recent call last):
  34. File "D:\Users\lucas\anaconda3\envs\cp\lib\unittest\loader.py", line 436, in _find_test_path
  35. module = self._get_module_from_name(name)
  36. File "D:\Users\lucas\anaconda3\envs\cp\lib\unittest\loader.py", line 377, in _get_module_from_name
  37. __import__(name)
  38. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\tests\test_astrology_chart.py", line 6, in <module>
  39. from bot.astrology.astrology_chart import AstrologyChart
  40. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\astrology\astrology_chart.py", line 5, in <module>
  41. from flatlib.chart import Chart
  42. ModuleNotFoundError: No module named 'flatlib'
  43.  
  44.  
  45. ======================================================================
  46. ERROR: tests.test_chess (unittest.loader._FailedTest)
  47. ----------------------------------------------------------------------
  48. ImportError: Failed to import test module: tests.test_chess
  49. Traceback (most recent call last):
  50. File "D:\Users\lucas\anaconda3\envs\cp\lib\unittest\loader.py", line 436, in _find_test_path
  51. module = self._get_module_from_name(name)
  52. File "D:\Users\lucas\anaconda3\envs\cp\lib\unittest\loader.py", line 377, in _get_module_from_name
  53. __import__(name)
  54. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\tests\test_chess.py", line 9, in <module>
  55. from bot.chess.chess import Chess
  56. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\chess\chess.py", line 17, in <module>
  57. from bot.chess.game import Game
  58. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\chess\game.py", line 7, in <module>
  59. from bot.models.chess_game import ChessGame
  60. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\models\__init__.py", line 11, in <module>
  61. engine = create_engine(os.environ.get("DB_URL"), pool_size=POOL_SIZE)
  62. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\sqlalchemy\engine\__init__.py", line 520, in create_engine
  63. return strategy.create(*args, **kwargs)
  64. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\sqlalchemy\engine\strategies.py", line 56, in create
  65. plugins = u._instantiate_plugins(kwargs)
  66. AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'
  67.  
  68.  
  69. ======================================================================
  70. ERROR: test_complete_leaderboard_flow (tests.test_leaderboard.TestLeaderboard)
  71. ----------------------------------------------------------------------
  72. Traceback (most recent call last):
  73. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\tests\test_leaderboard.py", line 200, in test_complete_leaderboard_flow
  74. actual = run(complete_flow(leaderboard_bot))
  75. File "D:\Users\lucas\anaconda3\envs\cp\lib\asyncio\runners.py", line 43, in run
  76. return loop.run_until_complete(main)
  77. File "D:\Users\lucas\anaconda3\envs\cp\lib\asyncio\base_events.py", line 616, in run_until_complete
  78. return future.result()
  79. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\tests\test_leaderboard.py", line 194, in complete_flow
  80. return await leaderboard_bot.draw_leaderboard(leaderboard_result, 1)
  81. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\utils.py", line 14, in function_wrapper
  82. return await loop.run_in_executor(pool, partial(func, *args, **kwargs))
  83. File "D:\Users\lucas\anaconda3\envs\cp\lib\concurrent\futures\thread.py", line 57, in run
  84. result = self.fn(*self.args, **self.kwargs)
  85. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\utils.py", line 22, in function_wrapper
  86. return event_loop.run_until_complete(corofn)
  87. File "D:\Users\lucas\anaconda3\envs\cp\lib\asyncio\base_events.py", line 616, in run_until_complete
  88. return future.result()
  89. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\sww_leaderboard\leaderboard.py", line 111, in draw_leaderboard
  90. font=ImageFont.truetype(os.environ.get("TRUETYPE_FONT_FOR_USERS_PATH"), size=font_size)
  91. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 655, in truetype
  92. return freetype(font)
  93. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 652, in freetype
  94. return FreeTypeFont(font, size, index, encoding, layout_engine)
  95. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 193, in __init__
  96. self.font = core.getfont(
  97. OSError: cannot open resource
  98.  
  99. ======================================================================
  100. ERROR: test_draw_leaderboard_one_page (tests.test_leaderboard.TestLeaderboard)
  101. ----------------------------------------------------------------------
  102. Traceback (most recent call last):
  103. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\tests\test_leaderboard.py", line 151, in test_draw_leaderboard_one_page
  104. actual = run(leaderboard_bot.draw_leaderboard(leaderboard, 1))
  105. File "D:\Users\lucas\anaconda3\envs\cp\lib\asyncio\runners.py", line 43, in run
  106. return loop.run_until_complete(main)
  107. File "D:\Users\lucas\anaconda3\envs\cp\lib\asyncio\base_events.py", line 616, in run_until_complete
  108. return future.result()
  109. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\utils.py", line 14, in function_wrapper
  110. return await loop.run_in_executor(pool, partial(func, *args, **kwargs))
  111. File "D:\Users\lucas\anaconda3\envs\cp\lib\concurrent\futures\thread.py", line 57, in run
  112. result = self.fn(*self.args, **self.kwargs)
  113. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\utils.py", line 22, in function_wrapper
  114. return event_loop.run_until_complete(corofn)
  115. File "D:\Users\lucas\anaconda3\envs\cp\lib\asyncio\base_events.py", line 616, in run_until_complete
  116. return future.result()
  117. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\sww_leaderboard\leaderboard.py", line 111, in draw_leaderboard
  118. font=ImageFont.truetype(os.environ.get("TRUETYPE_FONT_FOR_USERS_PATH"), size=font_size)
  119. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 655, in truetype
  120. return freetype(font)
  121. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 652, in freetype
  122. return FreeTypeFont(font, size, index, encoding, layout_engine)
  123. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 193, in __init__
  124. self.font = core.getfont(
  125. OSError: cannot open resource
  126.  
  127. ======================================================================
  128. ERROR: test_draw_leaderboard_second_page (tests.test_leaderboard.TestLeaderboard)
  129. ----------------------------------------------------------------------
  130. Traceback (most recent call last):
  131. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\tests\test_leaderboard.py", line 184, in test_draw_leaderboard_second_page
  132. actual = run(leaderboard_bot.draw_leaderboard(leaderboard, 2))
  133. File "D:\Users\lucas\anaconda3\envs\cp\lib\asyncio\runners.py", line 43, in run
  134. return loop.run_until_complete(main)
  135. File "D:\Users\lucas\anaconda3\envs\cp\lib\asyncio\base_events.py", line 616, in run_until_complete
  136. return future.result()
  137. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\utils.py", line 14, in function_wrapper
  138. return await loop.run_in_executor(pool, partial(func, *args, **kwargs))
  139. File "D:\Users\lucas\anaconda3\envs\cp\lib\concurrent\futures\thread.py", line 57, in run
  140. result = self.fn(*self.args, **self.kwargs)
  141. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\utils.py", line 22, in function_wrapper
  142. return event_loop.run_until_complete(corofn)
  143. File "D:\Users\lucas\anaconda3\envs\cp\lib\asyncio\base_events.py", line 616, in run_until_complete
  144. return future.result()
  145. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\sww_leaderboard\leaderboard.py", line 111, in draw_leaderboard
  146. font=ImageFont.truetype(os.environ.get("TRUETYPE_FONT_FOR_USERS_PATH"), size=font_size)
  147. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 655, in truetype
  148. return freetype(font)
  149. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 652, in freetype
  150. return FreeTypeFont(font, size, index, encoding, layout_engine)
  151. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 193, in __init__
  152. self.font = core.getfont(
  153. OSError: cannot open resource
  154.  
  155. ======================================================================
  156. ERROR: test_meme_saimaluco_image (tests.test_meme.TestMeme)
  157. ----------------------------------------------------------------------
  158. Traceback (most recent call last):
  159. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\tests\test_meme.py", line 9, in test_meme_saimaluco_image
  160. actual = meme_saimaluco_image('Test 123 really long text loooongword')
  161. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\meme\__init__.py", line 12, in meme_saimaluco_image
  162. image_font = ImageFont.truetype(os.environ.get("TRUETYPE_FONT_FOR_POINTS_PATH"), size=12)
  163. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 655, in truetype
  164. return freetype(font)
  165. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 652, in freetype
  166. return FreeTypeFont(font, size, index, encoding, layout_engine)
  167. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\PIL\ImageFont.py", line 193, in __init__
  168. self.font = core.getfont(
  169. OSError: cannot open resource
  170.  
  171. ======================================================================
  172. ERROR: tests.test_puzzle (unittest.loader._FailedTest)
  173. ----------------------------------------------------------------------
  174. ImportError: Failed to import test module: tests.test_puzzle
  175. Traceback (most recent call last):
  176. File "D:\Users\lucas\anaconda3\envs\cp\lib\unittest\loader.py", line 436, in _find_test_path
  177. module = self._get_module_from_name(name)
  178. File "D:\Users\lucas\anaconda3\envs\cp\lib\unittest\loader.py", line 377, in _get_module_from_name
  179. __import__(name)
  180. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\tests\test_puzzle.py", line 6, in <module>
  181. from bot.chess.game import Game
  182. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\chess\game.py", line 7, in <module>
  183. from bot.models.chess_game import ChessGame
  184. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\bot\models\__init__.py", line 11, in <module>
  185. engine = create_engine(os.environ.get("DB_URL"), pool_size=POOL_SIZE)
  186. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\sqlalchemy\engine\__init__.py", line 520, in create_engine
  187. return strategy.create(*args, **kwargs)
  188. File "D:\Users\lucas\anaconda3\envs\cp\lib\site-packages\sqlalchemy\engine\strategies.py", line 56, in create
  189. plugins = u._instantiate_plugins(kwargs)
  190. AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'
  191.  
  192.  
  193. ======================================================================
  194. FAIL: test_text_to_aurebesh (tests.test_aurebesh.TestAurebesh)
  195. ----------------------------------------------------------------------
  196. Traceback (most recent call last):
  197. File "C:\Users\lucas\Desktop\cp\chancelerpalpatine\tests\test_aurebesh.py", line 12, in test_text_to_aurebesh
  198. self.assertEqual(actual.getvalue(), f.read())
  199. AssertionError: b'\x8[101 chars]0\x07+IDATx\x9c\xed\x9byl\x15U\x14\x87?\xca* \[5217 chars]\x82' != b'\x8[101 chars]0\x07*IDATx\x9c\xed\x9by\x88WU\x14\xc7?\xe3:\x[5306 chars]\x82'
  200.  
  201. ----------------------------------------------------------------------
  202. Ran 25 tests in 22.481s
  203.  
  204. FAILED (failures=1, errors=8)
  205.  
  206. (cp) C:\Users\lucas\Desktop\cp\chancelerpalpatine>
  207.  
  208. (cp) C:\Users\lucas\Desktop\cp\chancelerpalpatine>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement