python sdk 参考了 Youngxj 的php sdk
楼主很懒 具体用法参考 Youngxj 的 https://www.bt.cn/bbs/thread-23895-1-1.html
- 相关项目 bt-php-sdk https://gitee.com/youngxj0/bt-php-sdk
宝塔面板python sdk
python sdk 参考了 Youngxj 的php sdk
楼主很懒 具体用法参考 Youngxj 的 https://www.bt.cn/bbs/thread-23895-1-1.html
你好,首先感谢你的SDK,它很有用。
我是个技术小白,在用你的SDK添加网站的时候提示如下
johndeMBP:Downloads john$ python3 mBt.py Traceback (most recent call last): File "mBt.py", line 634, in <module> r_data_addsite = my_api.WebAddSite(webname,path,type_id,type,version,port,ps,ftp,ftp_username,ftp_password,sql,coding,datauser,datapassword) File "mBt.py", line 152, in WebAddSite return self._getData(url, p_data) File "mBt.py", line 40, in _getData result = self.__http_post_cookie(url, p_data) File "mBt.py", line 606, in __http_post_cookie response = opener.open(req,timeout = timeout) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 531, in open response = meth(req, response) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 569, in error return self._call_chain(*args) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain result = func(*args) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 500: INTERNAL SERVER ERROR
本地python版本
johndeMBP:Downloads john$ python3 -V Python 3.7.0
宝塔版本:6.9.8
尝试了其他操作,例如查LOG记录,是可以正常的.
大神能否有空指导下?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.