Advertisement
Guest User

python-fangfrisch errors

a guest
Feb 20th, 2023
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.85 KB | None | 0 0
  1. ==> Making package: python-fangfrisch 1.6.0-1 (Mon 20 Feb 2023 07:52:09 PM EST)
  2. ==> Checking runtime dependencies...
  3. ==> Checking buildtime dependencies...
  4. ==> Retrieving sources...
  5. -> Downloading python-fangfrisch-1.6.0.tar.gz...
  6. % Total % Received % Xferd Average Speed Time Time Time Current
  7. Dload Upload Total Spent Left Speed
  8.  
  9. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  10. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  11.  
  12. 100 14574 0 14574 0 0 29576 0 --:--:-- --:--:-- --:--:-- 29576
  13. 100 110k 0 110k 0 0 200k 0 --:--:-- --:--:-- --:--:-- 1609k
  14. -> Found fangfrisch.conf
  15. -> Found fangfrisch.service
  16. -> Found fangfrisch.timer
  17. -> Found fangfrisch.tmpfiles
  18. ==> Validating source files with sha512sums...
  19. python-fangfrisch-1.6.0.tar.gz ... Passed
  20. fangfrisch.conf ... Passed
  21. fangfrisch.service ... Passed
  22. fangfrisch.timer ... Passed
  23. fangfrisch.tmpfiles ... Passed
  24. ==> Extracting sources...
  25. -> Extracting python-fangfrisch-1.6.0.tar.gz with bsdtar
  26. ==> Starting build()...
  27. running build
  28. running build_py
  29. creating build
  30. creating build/lib
  31. creating build/lib/fangfrisch
  32. copying fangfrisch/__init__.py -> build/lib/fangfrisch
  33. copying fangfrisch/__main__.py -> build/lib/fangfrisch
  34. copying fangfrisch/refresh.py -> build/lib/fangfrisch
  35. copying fangfrisch/log.py -> build/lib/fangfrisch
  36. copying fangfrisch/download.py -> build/lib/fangfrisch
  37. copying fangfrisch/db.py -> build/lib/fangfrisch
  38. copying fangfrisch/dump.py -> build/lib/fangfrisch
  39. copying fangfrisch/util.py -> build/lib/fangfrisch
  40. creating build/lib/fangfrisch/config
  41. copying fangfrisch/config/sanesecurity.py -> build/lib/fangfrisch/config
  42. copying fangfrisch/config/__init__.py -> build/lib/fangfrisch/config
  43. copying fangfrisch/config/malwarepatrol.py -> build/lib/fangfrisch/config
  44. copying fangfrisch/config/config.py -> build/lib/fangfrisch/config
  45. copying fangfrisch/config/securiteinfo.py -> build/lib/fangfrisch/config
  46. copying fangfrisch/config/urlhaus.py -> build/lib/fangfrisch/config
  47. ==> Starting check()...
  48. .................EEEEE...EEEEE...E/usr/lib/python3.10/unittest/case.py:613: ResourceWarning: unclosed file <_io.TextIOWrapper name=6 mode='w+t' encoding='UTF-8'>
  49. outcome.errors.clear()
  50. ResourceWarning: Enable tracemalloc to get the object allocation traceback
  51. EEE......EEEEEE.EEEEEE.................
  52. ======================================================================
  53. ERROR: test_cleanup1 (test_db.DbTests)
  54. ----------------------------------------------------------------------
  55. Traceback (most recent call last):
  56. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_db.py", line 110, in test_cleanup1
  57. self.assertEqual(0, RefreshLog.cleanup_provider(self.UNKNOWN))
  58. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 213, in cleanup_provider
  59. with RefreshLog._session() as session, session.begin():
  60. AttributeError: __enter__
  61.  
  62. ======================================================================
  63. ERROR: test_cleanup2 (test_db.DbTests)
  64. ----------------------------------------------------------------------
  65. Traceback (most recent call last):
  66. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_db.py", line 122, in test_cleanup2
  67. self.assertEqual(1, RefreshLog.cleanup_provider(provider))
  68. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 213, in cleanup_provider
  69. with RefreshLog._session() as session, session.begin():
  70. AttributeError: __enter__
  71.  
  72. ======================================================================
  73. ERROR: test_create_metadata1 (test_db.DbTests)
  74. ----------------------------------------------------------------------
  75. Traceback (most recent call last):
  76. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_db.py", line 71, in test_create_metadata1
  77. self.assertTrue(DbMeta().create_metadata(False))
  78. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 92, in create_metadata
  79. with DbMeta._session() as session, session.begin():
  80. AttributeError: __enter__
  81.  
  82. ======================================================================
  83. ERROR: test_create_metadata2 (test_db.DbTests)
  84. ----------------------------------------------------------------------
  85. Traceback (most recent call last):
  86. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_db.py", line 75, in test_create_metadata2
  87. DbMeta().create_metadata(False)
  88. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 92, in create_metadata
  89. with DbMeta._session() as session, session.begin():
  90. AttributeError: __enter__
  91.  
  92. ======================================================================
  93. ERROR: test_create_metadata3 (test_db.DbTests)
  94. ----------------------------------------------------------------------
  95. Traceback (most recent call last):
  96. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_db.py", line 78, in test_create_metadata3
  97. self.assertTrue(DbMeta().create_metadata(True))
  98. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 92, in create_metadata
  99. with DbMeta._session() as session, session.begin():
  100. AttributeError: __enter__
  101.  
  102. ======================================================================
  103. ERROR: test_refresh_required (test_db.DbTests)
  104. ----------------------------------------------------------------------
  105. Traceback (most recent call last):
  106. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_db.py", line 98, in test_refresh_required
  107. self.assertTrue(RefreshLog.is_outdated(URL1, 0))
  108. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 145, in is_outdated
  109. with RefreshLog._session() as session:
  110. AttributeError: __enter__
  111.  
  112. ======================================================================
  113. ERROR: test_stamp1 (test_db.DbTests)
  114. ----------------------------------------------------------------------
  115. Traceback (most recent call last):
  116. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_db.py", line 101, in test_stamp1
  117. RefreshLog.update(self.ci, DIGEST_DUMMY) # Must not raise an exception
  118. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 194, in update
  119. with RefreshLog._session() as session, session.begin():
  120. AttributeError: __enter__
  121.  
  122. ======================================================================
  123. ERROR: test_stamp2 (test_db.DbTests)
  124. ----------------------------------------------------------------------
  125. Traceback (most recent call last):
  126. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_db.py", line 106, in test_stamp2
  127. RefreshLog.update(self.ci, DIGEST_DUMMY) # Must not raise an exception
  128. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 194, in update
  129. with RefreshLog._session() as session, session.begin():
  130. AttributeError: __enter__
  131.  
  132. ======================================================================
  133. ERROR: test_version_match (test_db.DbTests)
  134. ----------------------------------------------------------------------
  135. Traceback (most recent call last):
  136. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_db.py", line 49, in test_version_match
  137. self.assertTrue(DbMeta.assert_version_match())
  138. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 80, in assert_version_match
  139. dm: DbMeta = session.query(DbMeta).one()
  140. File "/usr/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 3500, in one
  141. raise orm_exc.NoResultFound("No row was found for one()")
  142. sqlalchemy.orm.exc.NoResultFound: No row was found for one()
  143.  
  144. ======================================================================
  145. ERROR: test_version_mismatch (test_db.DbTests)
  146. ----------------------------------------------------------------------
  147. Traceback (most recent call last):
  148. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_db.py", line 53, in test_version_mismatch
  149. dm: DbMeta = session.query(DbMeta).one()
  150. File "/usr/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 3500, in one
  151. raise orm_exc.NoResultFound("No row was found for one()")
  152. sqlalchemy.orm.exc.NoResultFound: No row was found for one()
  153.  
  154. ======================================================================
  155. ERROR: test_dump_all (test_dump.DumpDbTests)
  156. ----------------------------------------------------------------------
  157. Traceback (most recent call last):
  158. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_dump.py", line 48, in test_dump_all
  159. dump.print_url_path_mappings(file)
  160. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/dump.py", line 28, in print_url_path_mappings
  161. for r in RefreshLog.url_path_mappings(self.args.provider):
  162. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 183, in url_path_mappings
  163. with RefreshLog._session() as session:
  164. AttributeError: __enter__
  165.  
  166. ======================================================================
  167. ERROR: test_match_none (test_dump.DumpDbTests)
  168. ----------------------------------------------------------------------
  169. Traceback (most recent call last):
  170. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_dump.py", line 63, in test_match_none
  171. x = RefreshLog.url_path_mappings('ham')
  172. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 183, in url_path_mappings
  173. with RefreshLog._session() as session:
  174. AttributeError: __enter__
  175.  
  176. ======================================================================
  177. ERROR: test_match_one (test_dump.DumpDbTests)
  178. ----------------------------------------------------------------------
  179. Traceback (most recent call last):
  180. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_dump.py", line 59, in test_match_one
  181. x = RefreshLog.url_path_mappings('^spam$')
  182. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 183, in url_path_mappings
  183. with RefreshLog._session() as session:
  184. AttributeError: __enter__
  185.  
  186. ======================================================================
  187. ERROR: test_match_two (test_dump.DumpDbTests)
  188. ----------------------------------------------------------------------
  189. Traceback (most recent call last):
  190. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_dump.py", line 55, in test_match_two
  191. x = RefreshLog.url_path_mappings('spam')
  192. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 183, in url_path_mappings
  193. with RefreshLog._session() as session:
  194. AttributeError: __enter__
  195.  
  196. ======================================================================
  197. ERROR: test_404 (test_refresh.RefreshTests)
  198. ----------------------------------------------------------------------
  199. Traceback (most recent call last):
  200. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 49, in test_404
  201. self.assertFalse(self.ref.refresh(ci))
  202. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 112, in refresh
  203. elif not RefreshLog.is_outdated(ci.url, ci.interval):
  204. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 145, in is_outdated
  205. with RefreshLog._session() as session:
  206. AttributeError: __enter__
  207.  
  208. ======================================================================
  209. ERROR: test_bad_sha256 (test_refresh.RefreshTests)
  210. ----------------------------------------------------------------------
  211. Traceback (most recent call last):
  212. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 53, in test_bad_sha256
  213. self.assertFalse(self.ref.refresh(ci))
  214. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 112, in refresh
  215. elif not RefreshLog.is_outdated(ci.url, ci.interval):
  216. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 145, in is_outdated
  217. with RefreshLog._session() as session:
  218. AttributeError: __enter__
  219.  
  220. ======================================================================
  221. ERROR: test_good_md5 (test_refresh.RefreshTests)
  222. ----------------------------------------------------------------------
  223. Traceback (most recent call last):
  224. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 61, in test_good_md5
  225. self.assertTrue(self.ref.refresh(ci))
  226. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 112, in refresh
  227. elif not RefreshLog.is_outdated(ci.url, ci.interval):
  228. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 145, in is_outdated
  229. with RefreshLog._session() as session:
  230. AttributeError: __enter__
  231.  
  232. ======================================================================
  233. ERROR: test_good_sha256 (test_refresh.RefreshTests)
  234. ----------------------------------------------------------------------
  235. Traceback (most recent call last):
  236. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 57, in test_good_sha256
  237. self.assertTrue(self.ref.refresh(ci))
  238. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 112, in refresh
  239. elif not RefreshLog.is_outdated(ci.url, ci.interval):
  240. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 145, in is_outdated
  241. with RefreshLog._session() as session:
  242. AttributeError: __enter__
  243.  
  244. ======================================================================
  245. ERROR: test_missing_checksum (test_refresh.RefreshTests)
  246. ----------------------------------------------------------------------
  247. Traceback (most recent call last):
  248. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 65, in test_missing_checksum
  249. self.assertFalse(self.ref.refresh(ci))
  250. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 112, in refresh
  251. elif not RefreshLog.is_outdated(ci.url, ci.interval):
  252. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 145, in is_outdated
  253. with RefreshLog._session() as session:
  254. AttributeError: __enter__
  255.  
  256. ======================================================================
  257. ERROR: test_missing_path (test_refresh.RefreshTests)
  258. ----------------------------------------------------------------------
  259. Traceback (most recent call last):
  260. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 70, in test_missing_path
  261. self.assertTrue(self.ref.refresh(ci))
  262. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 112, in refresh
  263. elif not RefreshLog.is_outdated(ci.url, ci.interval):
  264. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 145, in is_outdated
  265. with RefreshLog._session() as session:
  266. AttributeError: __enter__
  267.  
  268. ======================================================================
  269. ERROR: test_refresh (test_refresh.RefreshTests)
  270. ----------------------------------------------------------------------
  271. Traceback (most recent call last):
  272. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 99, in test_refresh
  273. n = self.ref.refresh_all()
  274. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 140, in refresh_all
  275. count = self.cleanup_providers()
  276. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 92, in cleanup_providers
  277. count += RefreshLog.cleanup_provider(section)
  278. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 213, in cleanup_provider
  279. with RefreshLog._session() as session, session.begin():
  280. AttributeError: __enter__
  281.  
  282. ======================================================================
  283. ERROR: test_refresh_age (test_refresh.RefreshTests)
  284. ----------------------------------------------------------------------
  285. Traceback (most recent call last):
  286. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 86, in test_refresh_age
  287. self.assertFalse(self.ref.refresh(ci))
  288. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 112, in refresh
  289. elif not RefreshLog.is_outdated(ci.url, ci.interval):
  290. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 145, in is_outdated
  291. with RefreshLog._session() as session:
  292. AttributeError: __enter__
  293.  
  294. ======================================================================
  295. ERROR: test_refresh_digest_match (test_refresh.RefreshTests)
  296. ----------------------------------------------------------------------
  297. Traceback (most recent call last):
  298. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 93, in test_refresh_digest_match
  299. self.assertFalse(self.ref.refresh(ci))
  300. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 112, in refresh
  301. elif not RefreshLog.is_outdated(ci.url, ci.interval):
  302. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 145, in is_outdated
  303. with RefreshLog._session() as session:
  304. AttributeError: __enter__
  305.  
  306. ======================================================================
  307. ERROR: test_refresh_force (test_refresh.RefreshTests)
  308. ----------------------------------------------------------------------
  309. Traceback (most recent call last):
  310. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 78, in test_refresh_force
  311. self.assertEqual(3, cr.refresh_all())
  312. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 140, in refresh_all
  313. count = self.cleanup_providers()
  314. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 92, in cleanup_providers
  315. count += RefreshLog.cleanup_provider(section)
  316. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 213, in cleanup_provider
  317. with RefreshLog._session() as session, session.begin():
  318. AttributeError: __enter__
  319.  
  320. ======================================================================
  321. ERROR: test_unknown_check (test_refresh.RefreshTests)
  322. ----------------------------------------------------------------------
  323. Traceback (most recent call last):
  324. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 74, in test_unknown_check
  325. self.assertFalse(self.ref.refresh(ci))
  326. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 112, in refresh
  327. elif not RefreshLog.is_outdated(ci.url, ci.interval):
  328. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 145, in is_outdated
  329. with RefreshLog._session() as session:
  330. AttributeError: __enter__
  331.  
  332. ======================================================================
  333. ERROR: test_url_blank (test_refresh.RefreshTests)
  334. ----------------------------------------------------------------------
  335. Traceback (most recent call last):
  336. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/tests/test_refresh.py", line 106, in test_url_blank
  337. n = self.ref.refresh_all()
  338. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 140, in refresh_all
  339. count = self.cleanup_providers()
  340. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/refresh.py", line 92, in cleanup_providers
  341. count += RefreshLog.cleanup_provider(section)
  342. File "/home/samueldy/.cache/yay/python-fangfrisch/src/fangfrisch-1.6.0/fangfrisch/db.py", line 213, in cleanup_provider
  343. with RefreshLog._session() as session, session.begin():
  344. AttributeError: __enter__
  345.  
  346. ----------------------------------------------------------------------
  347. Ran 73 tests in 2.550s
  348.  
  349. FAILED (errors=26)
  350. ==> ERROR: A failure occurred in check().
  351. Aborting...
  352.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement