HarshCasper / Rotten-Scripts

Scripts that will make you go WOW!
MIT License
1.48k stars 489 forks source link

[Bug]: Error in `Fetch Contribution` script #1234

Closed HarshCasper closed 3 years ago

HarshCasper commented 3 years ago

Is there an existing issue for this?

Current Behavior

Running the script here using the command:

python3 fetch_contributions.py --username HarshCasper --organization scipy

gives me the following traceback:

Traceback (most recent call last):
  File "fetch_contributions.py", line 168, in <module>
    print(response.get_pullrequests())
  File "fetch_contributions.py", line 137, in get_pullrequests
    for repo in self._list_of_repositories():
  File "fetch_contributions.py", line 49, in _list_of_repositories
    return list(pd.Series(list(set(Repositories))).str.strip().values)
  File "/home/hmishra/Rotten-Scripts/env/lib/python3.6/site-packages/pandas/core/generic.py", line 5137, in __getattr__
    return object.__getattribute__(self, name)
  File "/home/hmishra/Rotten-Scripts/env/lib/python3.6/site-packages/pandas/core/accessor.py", line 187, in __get__
    accessor_obj = self._accessor(obj)
  File "/home/hmishra/Rotten-Scripts/env/lib/python3.6/site-packages/pandas/core/strings.py", line 2100, in __init__
    self._inferred_dtype = self._validate(data)
  File "/home/hmishra/Rotten-Scripts/env/lib/python3.6/site-packages/pandas/core/strings.py", line 2157, in _validate
    raise AttributeError("Can only use .str accessor with string values!")
AttributeError: Can only use .str accessor with string values!

Expected Behavior

The expected behavior is:

To Reproduce

Follow the setup instructions on the Script README and try it out. The requirements.txt file is buggy as well and most of the packages have to be manually installed.

Anything else?

No response

Code of Conduct

HarshCasper commented 3 years ago

cc: @kadatatlukishore

Zircoz commented 3 years ago

@HarshCasper this issue is taken or it's open ?

HarshCasper commented 3 years ago

@HarshCasper this issue is taken or it's open ?

Assigned you the same.

Ankit1598 commented 3 years ago

Hey @HarshCasper I have already resolved this issue.