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

Installation Using Pip Error #1

Open
hidayathidayatshopee opened this issue Nov 5, 2022 · 3 comments
Open

Installation Using Pip Error #1

hidayathidayatshopee opened this issue Nov 5, 2022 · 3 comments

Comments

@hidayathidayatshopee
Copy link

I follow Installation using pip, but got this error.

username@ubuntu:~/workdir$ python3 -m venv venv

username@ubuntu:~/workdir$ source venv/bin/activate
(venv) username@ubuntu:~/workdir$ pip3 list
Package    Version
---------- -------
pip        22.0.2
setuptools 59.6.0

(venv) username@ubuntu:~/workdir$ pip install "cs-bot @ git+ssh://[email protected]/seatalk-io/cs-bot.git@master"
Collecting cs-bot@ git+ssh://[email protected]/seatalk-io/cs-bot.git@master
  Cloning ssh://****@github.com/seatalk-io/cs-bot.git (to revision master) to /tmp/pip-install-a0ivi2nh/cs-bot_90558ab79de749e7a2297d24fae31926
  Running command git clone --filter=blob:none --quiet 'ssh://****@github.com/seatalk-io/cs-bot.git' /tmp/pip-install-a0ivi2nh/cs-bot_90558ab79de749e7a2297d24fae31926
The authenticity of host 'github.com (20.205.243.166)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
  Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
  [email protected]: Permission denied (publickey).
  fatal: Could not read from remote repository.

  Please make sure you have the correct access rights
  and the repository exists.
  error: subprocess-exited-with-error
  
  × git clone --filter=blob:none --quiet 'ssh://****@github.com/seatalk-io/cs-bot.git' /tmp/pip-install-a0ivi2nh/cs-bot_90558ab79de749e7a2297d24fae31926 did not run successfully.
  │ exit code: 128
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet 'ssh://****@github.com/seatalk-io/cs-bot.git' /tmp/pip-install-a0ivi2nh/cs-bot_90558ab79de749e7a2297d24fae31926 did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

(venv) username@ubuntu:~/workdir$ 
@hidayathidayatshopee
Copy link
Author

Temporary solution.

(venv) username@ubuntu:~/workdir$ git clone https://github.com/seatalk-io/cs-bot.git
Cloning into 'cs-bot'...
remote: Enumerating objects: 51, done.
remote: Counting objects: 100% (51/51), done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 51 (delta 4), reused 51 (delta 4), pack-reused 0
Receiving objects: 100% (51/51), 74.59 KiB | 848.00 KiB/s, done.
Resolving deltas: 100% (4/4), done.

(venv) username@ubuntu:~/workdir$ pip3 install ./cs-bot/
Processing ./cs-bot
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  <long log says successful install />

(venv) username@ubuntu:~/workdir$ 

@hidayathidayatshopee
Copy link
Author

Another solution.

Instead of using ssh when install, use https.

Change from

pip install "cs-bot @ git+ssh://[email protected]/seatalk-io/cs-bot.git@master"

to

pip install "cs-bot @ git+https://github.com/seatalk-io/cs-bot.git@main"

@william-dwe
Copy link

Around 3 days ago, I also encountered this issue. To solve it, I use this workaround instead:

  1. Download the cs_bot repo (zip)
  2. Extract the downloaded file into a folder
  3. Call "pip install " or open the terminal on the extracted folder then call "pip install ."

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

2 participants