rongchenlin / BiliBili-Lucky-Draw

B站抽奖转发——薅羊毛脚本 : 一个小脚本能够帮助你去看看B站上面今天有哪些Up有抽奖活动,然后还能帮助你自动进行抽奖(转发动态+关注),毕竟抽奖总得试试吗,万一中奖了呢
GNU General Public License v3.0
353 stars 46 forks source link

大一小白,摸索着把docker desktop安装后照readme执行,最后这样了,该如何解决 #21

Closed ssbcf closed 8 months ago

ssbcf commented 9 months ago

2024-02-07 22:07:27 dynamic_share-1 | WARNING:root:ip :127.0.0.1 2024-02-07 22:07:27 dynamic_share-1 | Traceback (most recent call last): 2024-02-07 22:07:27 dynamic_share-1 | File "/app/main.py", line 15, in 2024-02-07 22:07:27 dynamic_share-1 | 127.0.0.1 2024-02-07 22:07:27 dynamic_share-1 | 127.0.0.1 2024-02-07 22:07:27 dynamic_share-1 | DataBase connect error,please check the db config. 2024-02-07 22:07:27 dynamic_share-1 | do_search() 2024-02-07 22:07:27 dynamic_share-1 | File "/app/main.py", line 9, in do_search 2024-02-07 22:07:27 dynamic_share-1 | SearchDynamicByUps(globals.my_user_id).init_search() 2024-02-07 22:07:27 dynamic_share-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-02-07 22:07:27 dynamic_share-1 | File "/app/service/search_draw_dynamic_service/SearchDynamicByUps.py", line 25, in init 2024-02-07 22:07:27 dynamic_share-1 | db = init_db() 2024-02-07 22:07:27 dynamic_share-1 | ^^^^^^^^^ 2024-02-07 22:07:27 dynamic_share-1 | File "/app/dao/init_db.py", line 27, in init_db 2024-02-07 22:07:27 dynamic_share-1 | db.selectDataBase(dbname) 2024-02-07 22:07:27 dynamic_share-1 | File "/app/utils/mysql_operate.py", line 38, in selectDataBase 2024-02-07 22:07:27 dynamic_share-1 | self.con.select_db(DB_NAME) 2024-02-07 22:07:27 dynamic_share-1 | ^^^^^^^^^^^^^^^^^^ 2024-02-07 22:07:27 dynamic_share-1 | AttributeError: 'NoneType' object has no attribute 'select_db' 2024-02-07 22:07:27 dynamic_share-1 | Exception ignored in: <function MysqldbHelper.del at 0x7f1982f09940> 2024-02-07 22:07:27 dynamic_share-1 | Traceback (most recent call last): 2024-02-07 22:07:27 dynamic_share-1 | File "/app/utils/mysql_operate.py", line 290, in del 2024-02-07 22:07:27 dynamic_share-1 | self.cur.close() 2024-02-07 22:07:27 dynamic_share-1 | ^^^^^^^^^^^^^^ 2024-02-07 22:07:27 dynamic_share-1 | AttributeError: 'NoneType' object has no attribute 'close' 2024-02-07 22:07:43 dynamic_share-1 | WARNING:root:ip :127.0.0.1 2024-02-07 22:07:43 dynamic_share-1 | Traceback (most recent call last): 2024-02-07 22:07:43 dynamic_share-1 | File "/app/main.py", line 15, in 2024-02-07 22:07:43 dynamic_share-1 | 127.0.0.1 2024-02-07 22:07:43 dynamic_share-1 | 127.0.0.1 2024-02-07 22:07:43 dynamic_share-1 | DataBase connect error,please check the db config. 2024-02-07 22:07:43 dynamic_share-1 | do_search() 2024-02-07 22:07:43 dynamic_share-1 | File "/app/main.py", line 9, in do_search 2024-02-07 22:07:43 dynamic_share-1 | SearchDynamicByUps(globals.my_user_id).init_search() 2024-02-07 22:07:43 dynamic_share-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-02-07 22:07:43 dynamic_share-1 | File "/app/service/search_draw_dynamic_service/SearchDynamicByUps.py", line 25, in init 2024-02-07 22:07:43 dynamic_share-1 | db = init_db() 2024-02-07 22:07:43 dynamic_share-1 | ^^^^^^^^^ 2024-02-07 22:07:43 dynamic_share-1 | File "/app/dao/init_db.py", line 27, in init_db 2024-02-07 22:07:43 dynamic_share-1 | db.selectDataBase(dbname) 2024-02-07 22:07:43 dynamic_share-1 | File "/app/utils/mysql_operate.py", line 38, in selectDataBase 2024-02-07 22:07:43 dynamic_share-1 | self.con.select_db(DB_NAME) 2024-02-07 22:07:43 dynamic_share-1 | ^^^^^^^^^^^^^^^^^^ 2024-02-07 22:07:43 dynamic_share-1 | AttributeError: 'NoneType' object has no attribute 'select_db' 2024-02-07 22:07:43 dynamic_share-1 | Exception ignored in: <function MysqldbHelper.del at 0x7fb3cbf99940> 2024-02-07 22:07:43 dynamic_share-1 | Traceback (most recent call last): 2024-02-07 22:07:43 dynamic_share-1 | File "/app/utils/mysql_operate.py", line 290, in del 2024-02-07 22:07:43 dynamic_share-1 | self.cur.close() 2024-02-07 22:07:43 dynamic_share-1 | ^^^^^^^^^^^^^^ 2024-02-07 22:07:43 dynamic_share-1 | AttributeError: 'NoneType' object has no attribute 'close'

rongchenlin commented 9 months ago

建议IP不要填写127.0.0.1 , 而是通过在cmd通过ipconfig查看IP并将其填入配置文件 image

ssbcf commented 9 months ago

建议IP不要填写127.0.0.1 , 而是通过在cmd通过ipconfig查看IP并将其填入配置文件 image 好像还有数据库的问题?? 2024-02-09 21:42:34 dynamic_share-1 | Traceback (most recent call last): 2024-02-09 21:42:34 dynamic_share-1 | File "/app/main.py", line 15, in 2024-02-09 21:42:34 dynamic_share-1 | 2024-02-09 21:42:34 dynamic_share-1 | ip我隐藏了 2024-02-09 21:42:34 dynamic_share-1 | DataBase connect error,please check the db config. 2024-02-09 21:42:34 dynamic_share-1 | do_search() 2024-02-09 21:42:34 dynamic_share-1 | File "/app/main.py", line 9, in do_search 2024-02-09 21:42:34 dynamic_share-1 | SearchDynamicByUps(globals.my_user_id).init_search() 2024-02-09 21:42:34 dynamic_share-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-02-09 21:42:34 dynamic_share-1 | File "/app/service/search_draw_dynamic_service/SearchDynamicByUps.py", line 25, in init 2024-02-09 21:42:34 dynamic_share-1 | db = init_db() 2024-02-09 21:42:34 dynamic_share-1 | ^^^^^^^^^ 2024-02-09 21:42:34 dynamic_share-1 | File "/app/dao/init_db.py", line 27, in init_db 2024-02-09 21:42:34 dynamic_share-1 | db.selectDataBase(dbname) 2024-02-09 21:42:34 dynamic_share-1 | File "/app/utils/mysql_operate.py", line 38, in selectDataBase 2024-02-09 21:42:34 dynamic_share-1 | self.con.select_db(DB_NAME) 2024-02-09 21:42:34 dynamic_share-1 | ^^^^^^^^^^^^^^^^^^ 2024-02-09 21:42:34 dynamic_share-1 | AttributeError: 'NoneType' object has no attribute 'select_db' 2024-02-09 21:42:34 dynamic_share-1 | Exception ignored in: <function MysqldbHelper.del at 0x7fdef176d940> 2024-02-09 21:42:34 dynamic_share-1 | Traceback (most recent call last): 2024-02-09 21:42:34 dynamic_share-1 | File "/app/utils/mysql_operate.py", line 290, in del 2024-02-09 21:42:34 dynamic_share-1 | self.cur.close() 2024-02-09 21:42:34 dynamic_share-1 | ^^^^^^^^^^^^^^ 2024-02-09 21:42:34 dynamic_share-1 | AttributeError: 'NoneType' object has no attribute 'close'