f-hamidlab / nuclearpy

MIT License
0 stars 0 forks source link

Github authentication #2

Closed Marcel-Salier closed 2 years ago

Marcel-Salier commented 2 years ago

Hi Fursham I got this error when I'm trying to install through GIT:

(base) m.@MacBook-Pro ~ % git clone https://github.com/fursham-h/ng_tools.git Cloning into 'ng_tools'... Username for 'https://github.com': Marcel-Salier Password for 'https://Marcel-Salier@github.com': remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Authentication failed for 'https://github.com/fursham-h/ng_tools.git/' (base) m.@MacBook-Pro ~ %

fursham-h commented 2 years ago

Yeah this was the Github security feature that I talked about. I can help you set it up properly. For now, try downloading using wget :

wget https://github.com/fursham-h/ng_tools/archive/main.zip -O ng_tools.zip
unzip ng_tools.zip
mv ng_tools-main ng_tools

And then install it:

cd ng_tools
pip install .
Marcel-Salier commented 2 years ago

I got Not Found error now:

(base) m.@MacBook-Pro ~ % wget https://github.com/fursham-h/ng_tools/archive/main.zip -O ng_tools.zip --2022-06-29 16:52:13-- https://github.com/fursham-h/ng_tools/archive/main.zip Resolving github.com (github.com)... 140.82.121.3 Connecting to github.com (github.com)|140.82.121.3|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2022-06-29 16:52:13 ERROR 404: Not Found.

fursham-h commented 2 years ago

Try:

wget https://github.com/fursham-h/ng_tools/archive/refs/heads/main.zip - O ng_tools.zip
unzip ng_tools.zip
mv ng_tools-main ng_tools
Marcel-Salier commented 2 years ago

--2022-06-29 18:01:04-- http://-/ Resolving - (-)... failed: nodename nor servname provided, or not known. wget: unable to resolve host address '-' --2022-06-29 18:01:04-- http://o/ Resolving o (o)... failed: nodename nor servname provided, or not known. wget: unable to resolve host address 'o' --2022-06-29 18:01:04-- http://ng_tools.zip/ Resolving ng_tools.zip (ng_tools.zip)... failed: nodename nor servname provided, or not known. wget: unable to resolve host address 'ng_tools.zip'

Marcel-Salier commented 2 years ago

Before that was the second part the first part still not found error:

(base) m.@MacBook-Pro ~ % wget https://github.com/fursham-h/ng_tools/archive/refs/heads/main.zip - O ng_tools.zip --2022-06-29 18:02:47-- https://github.com/fursham-h/ng_tools/archive/refs/heads/main.zip Resolving github.com (github.com)... 140.82.121.3 Connecting to github.com (github.com)|140.82.121.3|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2022-06-29 18:02:47 ERROR 404: Not Found.

fursham-h commented 2 years ago

My bad, bad symbol. Try this one.

wget https://github.com/fursham-h/ng_tools/archive/refs/heads/main.zip -O ng_tools.zip
unzip ng_tools.zip
mv ng_tools-main ng_tools 
Marcel-Salier commented 2 years ago

(base) m.@MacBook-Pro ~ % wget https://github.com/fursham-h/ng_tools/archive/refs/heads/main.zip -O ng_tools.zip --2022-06-29 19:20:15-- https://github.com/fursham-h/ng_tools/archive/refs/heads/main.zip Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.com)|140.82.121.4|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2022-06-29 19:20:15 ERROR 404: Not Found.

Marcel-Salier commented 2 years ago

What is it that cannot find??

fursham-h commented 2 years ago

That's weird. Okay last resort, go back to the repository and click on the Code button. Select Download ZIP and save it somewhere easy for you to find. You can unzip it in Finder if that's easier for you.

To install the module, you need to cd to that directory and then run pip install .

Marcel-Salier commented 2 years ago

I did it. when I run pip install say: (base) m.@MacBook-Pro ng_tools-main % pip install ERROR: You must give at least one requirement to install (see "pip help install") Anyway will be great to have it with git

Marcel-Salier commented 2 years ago

Can I drop by to your office later? I need to comment something else.

fursham-h commented 2 years ago

I did it. when I run pip install say: (base) m.@macbook-pro ng_tools-main % pip install ERROR: You must give at least one requirement to install (see "pip help install") Anyway will be great to have it with git

U missed the . pip install .

And yes, come down for a chat and I can help you with github

fursham-h commented 2 years ago

I'll close this issue, since we've rectified it.

PS, try to refresh your GitHub Desktop often and pull changes that I made.