jhao104 / jhao104/proxy_pool

启动 main.py报错

Open
#231 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
23.7k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Connected to pydev debugger (build 183.4588.64)
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1741, in
main()
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1735, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1135, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/yangjian/pyCharmWorkSpace/test/proxy_pool-master/Run/main.py", line 21, in
from Api.ProxyApi import run as ProxyApiRun
File "../Api/ProxyApi.py", line 22, in
from Util.GetConfig import config
File "../Util/GetConfig.py", line 65, in
config = GetConfig()
File "../Util/GetConfig.py", line 29, in __init__
self.config_file = ConfigParse(defaults={"password": None})
File "../Util/utilClass.py", line 48, in __init__
ConfigParser.__init__(self, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/configparser.py", line 638, in __init__
self._read_defaults(defaults)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/configparser.py", line 1216, in _read_defaults
self.read_dict({self.default_section: defaults})
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/configparser.py", line 753, in read_dict
self.set(section, key, value)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/configparser.py", line 1197, in set
self._validate_value_types(option=option, value=value)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/configparser.py", line 1182, in _validate_value_types
raise TypeError("option values must be strings")
TypeError: option values must be strings

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with Run/main.py and follow the traceback through Api/ProxyApi.py to Util/GetConfig.py and Util/utilClass.py. Inspect the ConfigParser initialization under Python 3.7, then run main.py again; done means startup completes without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.