xuruidong opened a new pull request, #8623:
URL: https://github.com/apache/apisix/pull/8623
…the file name, an error occurs.AttributeError: module 'requests' has no
attribute 'put'
### Description
Change the file name to "create-ssl.py" in certificate.md.
If "ssl.py" is used as the file name, an error occurs.
```
./ssl.py LLLL.txt main.cc aa
Traceback (most recent call last):
File "./create-ssl.py", line 6, in <module>
import requests
File "D:\Programs\Python\Python37\lib\site-packages\requests\__init__.py",
line 43, in <module>
import urllib3
File "D:\Programs\Python\Python37\lib\site-packages\urllib3\__init__.py",
line 11, in <module>
from . import exceptions
File
"D:\Programs\Python\Python37\lib\site-packages\urllib3\exceptions.py", line 3,
in <module>
from .packages.six.moves.http_client import IncompleteRead as
httplib_IncompleteRead
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 670, in _load_unlocked
File "<frozen importlib._bootstrap>", line 583, in module_from_spec
File
"D:\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line
234, in create_module
return self.load_module(spec.name)
File
"D:\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line
209, in load_module
mod = mod._resolve()
File
"D:\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line
118, in _resolve
return _import_module(self.mod)
File
"D:\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line
87, in _import_module
__import__(name)
File "D:\Programs\Python\Python37\lib\http\client.py", line 1341, in
<module>
import ssl
File "ssl.py", line 17, in <module>
resp = requests.put("http://127.0.0.1:9180/apisix/admin/ssls/1", json={
AttributeError: module 'requests' has no attribute 'put'
```
Fixes # (issue)
### Checklist
- [ ] I have explained the need for this PR and the problem it solves
- [ ] I have explained the changes or the new features added to this PR
- [ ] I have added tests corresponding to this change
- [ ] I have updated the documentation to reflect this change
- [ ] I have verified that this change is backward compatible (If not,
please discuss on the [APISIX mailing
list](https://github.com/apache/apisix/tree/master#community) first)
<!--
Note
1. Mark the PR as draft until it's ready to be reviewed.
2. Always add/update tests for any changes unless you have a good reason.
3. Always update the documentation to reflect the changes made in the PR.
4. Make a new commit to resolve conversations instead of `push -f`.
5. To resolve merge conflicts, merge master instead of rebasing.
6. Use "request review" to notify the reviewer after making changes.
7. Only a reviewer can mark a conversation as resolved.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]