Comments (28)
修改username和password
建立一个bat文件
@echo off d: cd %~dp0 ::在bat中执行cmd cmd /k "cd /d D:\Code\Python\daxuexi\Beijing_Daxuexi_Simple&&D:\TOOL\Anaconda\Anaconda_root\python.exe D:\Code\Python\daxuexi\Beijing_Daxuexi_Simple\main.py" exit
建立一个计时器每2天运行一次bat就行
from beijing_daxuexi_simple.
本地运行,也可以登录 https://m.bjyouth.net/site/login 后,在控制台输入命令后回车:
fetch('https://m.bjyouth.net/dxx/index',{method:'get'}).then(res=>{res.json().then(id=>{fetch('https://m.bjyouth.net/dxx/is-league',{method:'get'}).then(res=>{res.json().then(org_id=>{fetch('https://m.bjyouth.net/dxx/check', {'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON.stringify({id:id['newCourse']['id'].toString(),org_id:org_id})})})})})})
from beijing_daxuexi_simple.
我也遇到了这个问题.....是封了Github的IP嘛
from beijing_daxuexi_simple.
11月3日凌晨还是正常的,11月3日中午就出现上述情况。感觉是封了GitHub的IP。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/runner/work/Beijing_Daxuexi/Beijing_Daxuexi/study.py", line 20, in study
touch = bjySession.get(url="https://m.bjyouth.net/site/login")
File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='m.bjyouth.net', port=443): Max retries exceeded with url: /site/login (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d01119790>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Error: The operation was canceled.
from beijing_daxuexi_simple.
不知道可否利用本地运行的办法来解决。
from beijing_daxuexi_simple.
亲测本地运行可以,直接在main.py里把username和password写上去就行
不知道可否利用本地运行的办法来解决。
from beijing_daxuexi_simple.
from beijing_daxuexi_simple.
我在本地运行的时候出现了类似主楼的报错,请问一下是哪里出了问题呢?
这是我的bat文件
@echo off
d:
cd %~dp0
::在bat中执行cmd
cmd /k "cd /d "D:\GitHub\Beijing_Daxuexi_Simple" && "D:\Program Files\Python310\python.exe" D:\GitHub\Beijing_Daxuexi_Simple\main.py"
exit
这是报错内容
Traceback (most recent call last):
File "D:\GitHub\Beijing_Daxuexi_Simple\main.py", line 4, in
from study import study
File "D:\GitHub\Beijing_Daxuexi_Simple\study.py", line 8, in
from utility import encrypt, cap_recognize
File "D:\GitHub\Beijing_Daxuexi_Simple\utility.py", line 4, in
from Crypto.Cipher import PKCS1_v1_5 as Cipher_pksc1_v1_5
ModuleNotFoundError: No module named 'Crypto'
from beijing_daxuexi_simple.
我在本地运行的时候出现了类似主楼的报错,请问一下是哪里出了问题呢?
这是我的bat文件 @echo off d: cd %~dp0 ::在bat中执行cmd cmd /k "cd /d "D:\GitHub\Beijing_Daxuexi_Simple" && "D:\Program Files\Python310\python.exe" D:\GitHub\Beijing_Daxuexi_Simple\main.py" exit
这是报错内容
Traceback (most recent call last): File "D:\GitHub\Beijing_Daxuexi_Simple\main.py", line 4, in from study import study File "D:\GitHub\Beijing_Daxuexi_Simple\study.py", line 8, in from utility import encrypt, cap_recognize File "D:\GitHub\Beijing_Daxuexi_Simple\utility.py", line 4, in from Crypto.Cipher import PKCS1_v1_5 as Cipher_pksc1_v1_5 ModuleNotFoundError: No module named 'Crypto'
如果你确定所有依赖的模块都已经安装了可以检查一下安装好的 Crypto
模块的文件夹名称是不是 crypto
,是的话把首字母改成大写就行。
当然直接用 pipenv
之类的东西新建一个虚拟环境应该不会遇到这种问题。
from beijing_daxuexi_simple.
同本地报错,求问
Traceback (most recent call last):
File "/Users/qiaohaoran/Beijing_Daxuexi_Simple/main.py", line 4, in
from study import study
File "/Users/qiaohaoran/Beijing_Daxuexi_Simple/study.py", line 8, in
from utility import encrypt, cap_recognize
File "/Users/qiaohaoran/Beijing_Daxuexi_Simple/utility.py", line 4, in
from Crypto.Cipher import PKCS1_v1_5 as Cipher_pksc1_v1_5
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/Crypto/Cipher/PKCS1_v1_5.py", line 73, in
from Crypto.Util.number import ceil_div
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/Crypto/Util/number.py", line 139
value |= 2L ** (N-1) # Ensure high bit is set
^
SyntaxError: invalid decimal literal
from beijing_daxuexi_simple.
我在本地运行的时候出现了类似主楼的报错,请问一下是哪里出了问题呢?
这是我的bat文件 @echo off d: cd %~dp0 ::在bat中执行cmd cmd /k "cd /d "D:\GitHub\Beijing_Daxuexi_Simple" && "D:\Program Files\Python310\python.exe" D:\GitHub\Beijing_Daxuexi_Simple\main.py" exit
这是报错内容
Traceback (most recent call last): File "D:\GitHub\Beijing_Daxuexi_Simple\main.py", line 4, in from study import study File "D:\GitHub\Beijing_Daxuexi_Simple\study.py", line 8, in from utility import encrypt, cap_recognize File "D:\GitHub\Beijing_Daxuexi_Simple\utility.py", line 4, in from Crypto.Cipher import PKCS1_v1_5 as Cipher_pksc1_v1_5 ModuleNotFoundError: No module named 'Crypto'如果你确定所有依赖的模块都已经安装了可以检查一下安装好的
Crypto
模块的文件夹名称是不是crypto
,是的话把首字母改成大写就行。当然直接用
pipenv
之类的东西新建一个虚拟环境应该不会遇到这种问题。
笑死我了,因为不知道依赖模块安装在哪,我把utility里的大写改成小写之后,pycharm里重新运行,就变成和上面一样的报错了(本来pycharm还可以跑)
from beijing_daxuexi_simple.
安装依赖命令 pip install -r requirements.txt
from beijing_daxuexi_simple.
我在本地运行的时候出现了类似主楼的报错,请问一下是哪里出了问题呢?
这是我的bat文件 @echo off d: cd %~dp0 ::在bat中执行cmd cmd /k "cd /d "D:\GitHub\Beijing_Daxuexi_Simple" && "D:\Program Files\Python310\python.exe" D:\GitHub\Beijing_Daxuexi_Simple\main.py" exit
这是报错内容
Traceback (most recent call last): File "D:\GitHub\Beijing_Daxuexi_Simple\main.py", line 4, in from study import study File "D:\GitHub\Beijing_Daxuexi_Simple\study.py", line 8, in from utility import encrypt, cap_recognize File "D:\GitHub\Beijing_Daxuexi_Simple\utility.py", line 4, in from Crypto.Cipher import PKCS1_v1_5 as Cipher_pksc1_v1_5 ModuleNotFoundError: No module named 'Crypto'如果你确定所有依赖的模块都已经安装了可以检查一下安装好的
Crypto
模块的文件夹名称是不是crypto
,是的话把首字母改成大写就行。
当然直接用pipenv
之类的东西新建一个虚拟环境应该不会遇到这种问题。笑死我了,因为不知道依赖模块安装在哪,我把utility里的大写改成小写之后,pycharm里重新运行,就变成和上面一样的报错了(本来pycharm还可以跑)
改 utility
显然不行,因为库代码里面写的也是 Crypto
。
from beijing_daxuexi_simple.
我在本地运行的时候出现了类似主楼的报错,请问一下是哪里出了问题呢?
这是我的bat文件 @echo off d: cd %~dp0 ::在bat中执行cmd cmd /k "cd /d "D:\GitHub\Beijing_Daxuexi_Simple" && "D:\Program Files\Python310\python.exe" D:\GitHub\Beijing_Daxuexi_Simple\main.py" exit
这是报错内容
Traceback (most recent call last): File "D:\GitHub\Beijing_Daxuexi_Simple\main.py", line 4, in from study import study File "D:\GitHub\Beijing_Daxuexi_Simple\study.py", line 8, in from utility import encrypt, cap_recognize File "D:\GitHub\Beijing_Daxuexi_Simple\utility.py", line 4, in from Crypto.Cipher import PKCS1_v1_5 as Cipher_pksc1_v1_5 ModuleNotFoundError: No module named 'Crypto'如果你确定所有依赖的模块都已经安装了可以检查一下安装好的
Crypto
模块的文件夹名称是不是crypto
,是的话把首字母改成大写就行。
当然直接用pipenv
之类的东西新建一个虚拟环境应该不会遇到这种问题。笑死我了,因为不知道依赖模块安装在哪,我把utility里的大写改成小写之后,pycharm里重新运行,就变成和上面一样的报错了(本来pycharm还可以跑)
改
utility
显然不行,因为库代码里面写的也是Crypto
。
已经死心了,每周打开pycharm手动跑一次8,总比老老实实看要省心,已经方便多了,感谢大佬
from beijing_daxuexi_simple.
我在本地运行的时候无法安装onnx包应该怎么办呢,求助大佬
ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none)
ERROR: No matching distribution found for onnxruntime
from beijing_daxuexi_simple.
关闭所有vpn,cd 到项目根目录下运行
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
from beijing_daxuexi_simple.
我在本地运行的时候无法安装onnx包应该怎么办呢,求助大佬 ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none) ERROR: No matching distribution found for onnxruntime
如果还不行就编辑requirements.txt 然后把所有版本信息删掉
from beijing_daxuexi_simple.
vpn关掉了,还是不行orz
requirements里面我好像没看到有版本信息
我的python是3.11,这会有问题吗?
from beijing_daxuexi_simple.
我的版本信息
sys:win 11
virtural env:anaconda
pip:21.2.4
python:3.9
1 py11确实好新。
2 windows的任务计划程序需要用管理员模式跑bat。
3 如果import本地包有问题,多半是路径问题,可能需要手动设置根目录。
from beijing_daxuexi_simple.
from beijing_daxuexi_simple.
![]()
我现在只期望能手动跑通就足够了; 我现在还是卡在pip这一步上
https://pypi.org/project/onnxruntime/
https://blog.csdn.net/kun78684504/article/details/124983444
from beijing_daxuexi_simple.
我现在只期望能手动跑通就足够了; 我现在还是卡在pip这一步上
https://pypi.org/project/onnxruntime/ https://blog.csdn.net/kun78684504/article/details/124983444
我尝试了手动安装,最后发现问题还是出在python版本上,python3.11不支持onnx的任何一个wheel版本,我下载了python3.9后直接pip就成功了,非常感谢Orz
然后,在之前github action还可以工作的时候我就发现了一个问题,并且这个问题在本地运行也出现了,对于较长的USERNAME序列,总会在第8个用户附近失败
from beijing_daxuexi_simple.
请问大家多账号怎么填写USERMANE 和 PASSWORD
from beijing_daxuexi_simple.
今天跑成功了一次
from beijing_daxuexi_simple.
Github Actions的没有效果啦
今天跑成功了一次
from beijing_daxuexi_simple.
Github Actions的没有效果啦
今天跑成功了一次
😭
from beijing_daxuexi_simple.
请问一下username和password填的是微信的吗
from beijing_daxuexi_simple.
https://github.com/startkkkkkk/Beijing_Daxuexi_Simple
from beijing_daxuexi_simple.
Related Issues (20)
- 无法使用 HOT 2
- 关于青年大学习账号和密码 HOT 2
- 1月3日本地运行出现异常,登录后返回以下代码,请大佬们帮忙看看是什么问题,感谢! HOT 2
- Json解析报错 HOT 4
- docker化?
- 本地运行出现 Exception: 组织id不匹配
- 本地运行出现 Exception: 组织id不匹配
- 本地运行出现 Exception: 组织id不匹配
- 发生异常: Exception 组织id不匹配
- Exception: 组织id不匹配 HOT 3
- 登录失败报错 HOT 3
- 能否取消掉onnxruntime
- AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' HOT 1
- Docker运行的多账号密码格式怎么写
- 等个更新
- 等个更新
- 新一期大学习返回未在检查中确认 HOT 1
- 今天更新大学习后运行报错 HOT 5
- 大佬 可以学往期的没有学习的吗 HOT 2
- readme最下面的内容串行啦
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beijing_daxuexi_simple.