我正在使用本教程https://hexdocs.pm/crawly/tutorial.html试用Crawly
我添加了所需的依赖项
defp deps do
[
{:crawly, "~> 0.13.0"},
{:floki, "~> 0.26.0"}
]
end我运行mix deps.get并添加爬行器:
defmodule Homebase do
use Crawly.Spider
@impl Crawly.Spider
def base_url(), do: "https://www.homebase.co.uk"
@impl Crawly.Spider
def init() do
[
start_urls: [
"https://www.homebase.co.uk/our-range/tools"
]
]
end
@impl Crawly.Spider
def parse_item(_response) do
%Crawly.ParsedItem{:items => [], :requests => []}
end
end我运行iex -S mix并得到以下错误:
** (Mix) Could not compile dependency :epipe, "/home/niki/.mix/rebar3 bare compile --paths /home/niki/projects/first-crawler/crawler2/spiderman/_build/dev/lib/*/ebin" command failed. You can recompile this dependency with "mix deps.compile epipe", update it with "mix deps.update epipe" or clean it with "mix deps.clean epipe"
我已经尝试了输出推荐的解决方案,但都不起作用。
编辑:这是mix deps.compile的输出

编辑:我安装了kiex并切换到1.10版本。解决了所有人的问题
发布于 2021-08-19 07:18:25
我安装了kiex并切换到1.10版本。解决了所有人的问题
https://stackoverflow.com/questions/68828319
复制相似问题