小编Osb*_*aka的帖子

在 Ubuntu 上安装 Anaconda,出现 BrokenProcessPool 错误

我正在我的 Linux 机器上安装 anaconda。我按照这里的说明进行操作。https://docs.anaconda.com/anaconda/install/linux/ 但是,选择安装位置后,出现错误

PREFIX=/home/iris/anaconda3
Unpacking payload ...
Traceback (most recent call last):                                                                                                    
  File "entry_point.py", line 71, in <module>
  File "concurrent/futures/process.py", line 483, in _chain_from_iterable_of_lists
  File "concurrent/futures/_base.py", line 598, in result_iterator
  File "concurrent/futures/_base.py", line 435, in result
  File "concurrent/futures/_base.py", line 384, in __get_result
concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.
[9196] Failed to execute script entry_point

Run Code Online (Sandbox Code Playgroud)

python linux ubuntu anaconda

5
推荐指数
1
解决办法
1525
查看次数

使用 Rails 和 Hotwire 提交表单时出错

我正在使用 hotwire 运行 Rails 6.1。我正在创建一个登录表单,使用电子邮件和密码,然后重定向到 store_index 路径。但是,我遇到了此错误 - 错误:表单响应必须重定向到另一个位置。我尝试过以下操作但遇到相同的错误,

  1. 使用 format.html { redirect_to store_index_path}

  2. 我注释掉了 create 函数中的所有内容并添加了“Hello”。但是,我仍然遇到同样的错误。

我现在很困惑,有什么帮助吗

  <%= form_with url: retailer_log_in_path, class: 'box'  do |f| %>
    <div class="field">
        <%= f.label 'email:', class: "label"%><br>
        <%= f.text_field :email, class: "input" %>
    </div>
    <div class="field">
        <%= f.label 'password:' ,class: "label"%><br>
        <%= f.password_field :password, class: "input" %>
    </div>
    <div class="field">
        <%= f.submit 'Log In', class: "input" %>
    </div>
  <% end %>
Run Code Online (Sandbox Code Playgroud)

会话控制器.rb

def create
        retailer = Retailer.find_by(email: params[:email])
        if retailer.present? && retailer.authenticate(params[:password])
            session[:retailer_id] …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails hotwire-rails

4
推荐指数
1
解决办法
2870
查看次数

如何使用 vue-cli create 修复错误“没有这样的文件或目录错误”

我安装了 vue-cli 3。我尝试使用 vue create 创建一个 vue 应用程序,但我没有收到这样的文件错误。

~$ vue create hello-world
bash: /usr/local/bin/vue: No such file or directory

Run Code Online (Sandbox Code Playgroud)

安装 vue/cli3

yarn global v0.15.1
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
warning fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed @vue/cli@3.12.0 with binaries:
      - vue
Done in 1.69s.
Run Code Online (Sandbox Code Playgroud)

vue.js vue-cli-3

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