Closed cragkhit closed 3 years ago
I've tried the repo-url
and found that it also failed with the same issue.
pycefrl % python3 pycerfl.py repo-url https://github.com/cragkhit/GitHub-Crawler.git
Analyzing repository languages...
Python: 4288
Python 50% OK
Run url...
Cloning into 'GitHub-Crawler'...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 22 (delta 0), reused 1 (delta 0), pack-reused 19
Receiving objects: 100% (22/22), 18.43 KiB | 539.00 KiB/s, done.
Resolving deltas: 100% (7/7), done.
The directory is: GitHub-Crawler
This script absolute path is /Users/chaiyong/Desktop/pycefrl/GitHub-Crawler
Directory:
['LICENSE', 'README.md', '.git', 'getDataFromGitHub.py']
Opening another directory...
Directory:
Traceback (most recent call last):
File "pycerfl.py", line 220, in <module>
choose_option()
File "pycerfl.py", line 40, in choose_option
request_url()
File "pycerfl.py", line 60, in request_url
check_lenguage(option, protocol, type_git, user, repo)
File "pycerfl.py", line 97, in check_lenguage
run_url(url)
File "pycerfl.py", line 111, in run_url
get_directory(url)
File "pycerfl.py", line 151, in get_directory
get_path(name_directory)
File "pycerfl.py", line 162, in get_path
read_Directory(absFilePath, name_directory)
File "pycerfl.py", line 180, in read_Directory
read_Directory(path2, directory[i])
File "pycerfl.py", line 170, in read_Directory
directory = os.listdir(path)
NotADirectoryError: [Errno 20] Not a directory: '/Users/chaiyong/Desktop/pycefrl/GitHub-Crawler/LICENSE'
Hi! Thank you for interesting in my tool. The errors that you show me, yesterday I solved but I forget update the new version to GitHub. Currently, the last versio is update, so, you could try again.
Now, I hope that you can use successfully.
Hi @anapgh. I've pulled the new update and found the problem has been fixed. Great. Thanks!
Hi. Thanks for creating the tool. Very useful! I've tried running it using the directory mode on the pytorch project and found that the tool failed when it found a file without an extension. It seems like the tool thinks that it is a folder.
Steps to replicate
git clone https://github.com/pytorch/pytorch.git
python3 pycerfl.py directory ~/Downloads/pytorch
After removing the
CITATION
file, the tool could continue. Then, it failed again at another point, but with different error message.