pycodesuggest icon indicating copy to clipboard operation
pycodesuggest copied to clipboard

Can't get attribute 'UTC'

Open victorcai101 opened this issue 5 years ago • 5 comments

When I tried to recreate the corpus, I got the following issue:

Traceback (most recent call last): File "github-scraper/scraper.py", line 143, in main(sys.argv[1:]) File "github-scraper/scraper.py", line 130, in main repos = create_repos(dbFile) File "github-scraper/scraper.py", line 59, in create_repos repos = pickle.load(infile) AttributeError: Can't get attribute 'UTC' on <module 'github3.utils' from '/Users/apple/anaconda3/lib/python3.7/site-packages/github3/utils.py'>

I zoomed the error in: pickle.load('/data/cloned_repos.dat') It seems like this error is related with loading the cloned_repos.dat file. Does anyone have the same issue? How can I solve it? Many thanks!

victorcai101 avatar Mar 19 '19 10:03 victorcai101

I'm getting the same error. How to solve this?

zendevil avatar Mar 25 '19 23:03 zendevil

Run the following code

pip uninstall github3.py
pip install github3-py==0.9.3

and it works on my computer, hope to help.

JunrQ avatar Apr 07 '19 06:04 JunrQ

same error,since I use conda,there is no github3.py==0.9.3 Anybody succeeded?

wyf18 avatar Aug 24 '19 07:08 wyf18

Run the following code

pip uninstall github3.py
pip install github3-py==0.9.3

and it works on my computer, hope to help.

兄弟,你测试过代码,跑通了吗?如果跑通了,效果如何?

HelloStreetLamp avatar Jan 13 '20 12:01 HelloStreetLamp

Run the following code

pip uninstall github3.py
pip install github3-py==0.9.3

and it works on my computer, hope to help.

兄弟,你测试过代码,跑通了吗?如果跑通了,效果如何?

我在我的电脑上试过了,跑通了。

Murphy-OrangeMud avatar Jan 15 '20 06:01 Murphy-OrangeMud