Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'PROXY_TYPES' from 'socks' #35

Open
hhaoao opened this issue Feb 16, 2020 · 0 comments
Open

ImportError: cannot import name 'PROXY_TYPES' from 'socks' #35

hhaoao opened this issue Feb 16, 2020 · 0 comments

Comments

@hhaoao
Copy link

hhaoao commented Feb 16, 2020

我想照着其他formater来写个bind formater来生成bind 9 用的zone文件的,但是使用pipreqs包生成的requirements.txt安装后出现以下错误:

λ  python -m genpac -h
Traceback (most recent call last):
  File "d:\portablefiles\scoop\apps\python\current\lib\runpy.py", line 184, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "d:\portablefiles\scoop\apps\python\current\lib\runpy.py", line 143, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "d:\portablefiles\scoop\apps\python\current\lib\runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "F:\shortcut\temporary-project\temp\genpac\genpac\__init__.py", line 14, in <module>
    from .core import GenPAC, Generator, Namespace, run, formater, parse_rules
  File "F:\shortcut\temporary-project\temp\genpac\genpac\core.py", line 15, in <module>
    from socks import PROXY_TYPES as _PROXY_TYPES
ImportError: cannot import name 'PROXY_TYPES' from 'socks' (C:\Users\xwc\.virtualenvs\genpac-5m1Mcvre\lib\site-packages\socks.py)

出现问题所用分支:

λ  git status
On branch dev
Your branch is up to date with 'origin/dev'.

python版本:

λ  python --version
Python 3.8.1

pipreqs生成的requirements.txt:

publicsuffixlist==0.6.12
pytest==5.3.5
SocksiPy_branch==1.01

希望能生成requirements.txt放出来,还有啥注意事项也列举出来方便其他人开发.如果能出个开发指南就更好了,我搜遍全网就你的genpac项目处理gfwlist最全的,就此夭折了怪可惜。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant