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

can't install to native #1053

Open
shujiuli opened this issue Mar 27, 2023 · 4 comments
Open

can't install to native #1053

shujiuli opened this issue Mar 27, 2023 · 4 comments
Labels
needs information Requires information from the submitter

Comments

@shujiuli
Copy link

The nextstrain-cli can't be installed by coed:curl -fsSL --proto '=https' https://nextstrain.org/cli/installer/linux | bash,the link deny the access;and by other ways such as conda,ambient,pip or pipx both NOT.Compnent augur and auspice also can't be installed.Hope to response

@shujiuli shujiuli added the bug Something isn't working label Mar 27, 2023
@tsibley
Copy link
Member

tsibley commented Mar 27, 2023

Hi @shujiuli. I'm sorry you're having trouble installing Nextstrain. In order to help troubleshoot the issue for you, we'll need to see more of what you've tried that's not working. Screenshots are good and so is copy-and-pasting full logs from the terminal.

@tsibley tsibley added needs information Requires information from the submitter and removed bug Something isn't working labels Mar 27, 2023
@shujiuli
Copy link
Author

shujiuli commented Mar 28, 2023

Hi @shujiuli. I'm sorry you're having trouble installing Nextstrain. In order to help troubleshoot the issue for you, we'll need to see more of what you've tried that's not working. Screenshots are good and so is copy-and-pasting full logs from the terminal.
[translated]
@shujiuli。很抱歉您在安装Nextstrain时遇到问题。为了帮助您解决问题,我们需要查看您尝试过的不起作用的更多内容。屏幕截图很好,从终端复制和粘贴完整的日志也很好。

Thank you for your reply.By retry,I have successfully install the nextstrain-cli and auspice.But the augur still can't be installed,so I try to install it by code:apt install augur in ubuntu.I don't know if this is right.These are some error when install,I guess problem is some python model can't be import or some rely have not be installed in my system.I'm sorry to that I'm not good at ubuntu.And thank you very much for your help

Uploading error…
error.txt

@tsibley
Copy link
Member

tsibley commented Mar 28, 2023

So it's searchable later, the contents of that error.txt file are:

curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 1 ms: 拒绝连接
use the pip install nextstrain-cli:
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [4 lines of output]
      Error: The "distutils" standard module, which is required for the
      installation of Docutils, could not be found.  You may need to
      install a package called "python-devel" (or similar) on your
      system using your package manager.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.
when install the augur
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
nextstrain build --cpus 1 
Unable to find image 'nextstrain/base:latest' locally
latest: Pulling from nextstrain/base



finally install successfully the nextstrain-cli and auspice
python3 -m pip install nextstrain-cli
npm install --global auspice

The localized error from curl is translated to English by Google Translate to "connection refused". I assume that's from trying to use the https://nextstrain.org/cli/installer/linux installer. This strikes me as a firewall issue on your network (or GitHub has blocked your network or something).

You've worked around that by installing Nextstrain CLI with Pip instead, which is fine. (From the output above, I guess you had to apt install python-devel first before that worked.)

Once you have Nextstrain CLI, the nextstrain command, installed, you shouldn't have to manually install Augur or Auspice. Instead, you can proceed with the "install a Nextstrain runtime" section of our installation documentation. You'll likely want to choose the Docker or Conda runtime on Linux.

@shujiuli
Copy link
Author

Thanks again,I will retry what you say.Have a good day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs information Requires information from the submitter
Projects
No open projects
Development

No branches or pull requests

2 participants