小编Raj*_*Raj的帖子

如何避免 go.mod 文件中的间接依赖

我正在运行go buildgo.mod使用库更新我的文件我正在使用“github.com/gocolly/colly v1.2.0”但我看到所有其他依赖项最后都说“//间接”。如何避免得到这个?这是我的 go.mod 文件

   module prodenv

go 1.13

require (
   github.com/PuerkitoBio/goquery v1.5.1 // indirect
   github.com/antchfx/htmlquery v1.2.2 // indirect
   github.com/antchfx/xmlquery v1.2.3 // indirect
   github.com/antchfx/xpath v1.1.5 // indirect
   github.com/gobwas/glob v0.2.3 // indirect
   github.com/gocolly/colly v1.2.0
   github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
   github.com/kennygrant/sanitize v1.2.4 // indirect
   github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect
   github.com/temoto/robotstxt v1.1.1 // indirect
   golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e // indirect
   google.golang.org/appengine v1.6.5 // indirect
)
Run Code Online (Sandbox Code Playgroud)

go

10
推荐指数
2
解决办法
1万
查看次数

Pycharm 在调试模式下在 django 服务器中运行时返回非 asciii 错误,当我在正常模式下运行时工作正常

我有很长一段时间在本地运行 Django 服务器。今天突然我开始在运行调试模式时看到错误。它在正常模式下工作正常。

我尝试在 manage.py 中包含 utf-8 但我仍然看到错误

pydev debugger: process 10424 is connecting

Connected to pydev debugger (build 192.6603.34)
pydev debugger: process 10425 is connecting

Traceback (most recent call last):
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 2066, in <module>
    main()
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 2060, in main
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1411, in run
    return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1418, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", line 1 …
Run Code Online (Sandbox Code Playgroud)

debugging debug-mode pycharm

3
推荐指数
1
解决办法
623
查看次数

标签 统计

debug-mode ×1

debugging ×1

go ×1

pycharm ×1