Comments (8)
Thanks for bringing this up John, and I agree that it should be bundled with #24. Something that is long overdue.
from gist.
@jmacego I am running python3.6.5 and I do not see the deprecation warning. I have pushed a fix to the branch 'config'. Would you mind trying it out to see if that addressing the issue for you?
from gist.
@jdowner at least for 3.7.2 your config branch looks ready to merge and distribute and so forth.
I have another bug to log, but probably won't get to it until Monday if you want any code/pull request along with it.
from gist.
Hello gist,
not sure if my issue the exact same as jmacego but I could not find anything related to what I'm experiencing on the web. The below is what I'm experiencing when I run git list
.
/usr/local/bin/gist:295: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead.
config.readfp(fp)
1553126730.763 ERROR[gist] string indices must be integers
I double checked that I had the proper dependencies as well and still getting this error. The DeprecationWarning
I can live with but its the 1553126730.763 ERROR[gist] string indices must be integers
that is causing the problem of letting me use your gist module. Was this working before, yes. Did anything change on my system, no. I'm not aware of what is needed for me to troubleshoot this but any information would be helpful. I'm working to become a better engineer and solving problems just like this one is half the battle
from gist.
Hi @engineertree5,
can you tell me what platform you are running on and what version of gist you are using? Also, to narrow down why this error could be happening, can you run,
curl https://api.github.com/gists?access_token=<your-personal-token>
and make sure that you are getting a structure containing your gists.
from gist.
Hey @jdowner,
.... So this is embarrassing. The issue was on my end (no surprise here). I tried the curl command you suggested.
curl https://api.github.com/gists?access_token=<your-personal-token>
after executing this I kept getting:
{
"message": "Bad credentials",
"documentation_url": "https://developer.github.com/v3"
}
I went through my configuration and everything seemed to check out. Then I remembered I updated some .gitconfig credentials when I was doing some testing with git and some other editors. Long story short it ended up being my credentials.
I will say it is good to know how to troubleshoot issues like this. I now know python-gist uses the https://api.github.com/v3 and is authenticating using our PAT within the .gist file. I'm going to pick apart this application and see what else I can learn and understand. Thanks for the response. You have no idea how helpful that comment was to me
from gist.
No problem @engineertree5! Pleased you were able to resolve the problem quickly :)
from gist.
@jmacego sorry for the delay! I have push a fix for this issue so the warning should be gone now.
from gist.
Related Issues (20)
- How to run tests? HOT 2
- used to work well but can't get through after token updated HOT 7
- Switch CI to github actions
- Remove support for python3.{3,4}
- Discontinue use of 'python setup.py test'
- Fixed unit test that fails when run using github actions
- Switch to using github action badges
- ValueError: Unable to load configuration file: readfp() got an unexpected keyword argument 'source' HOT 1
- Use Authorization HTTP header, since access_token is deprecated HOT 4
- List required arguments after options HOT 7
- Should not advise users to install with `sudo` HOT 1
- ValueError: Unable to load configuration file: readfp() got an unexpected keyword argument 'source' HOT 3
- Switch from docopt to argparse
- Filename is not being properly set
- `gist archive` should decrypt encrypted files
- Error with gist create HOT 4
- gist edit fails with ERROR[gist] handle_gist_edit() takes 2 positional arguments but 4 were given HOT 6
- Switch to using poetry
- Use `unittest.mock.auto_spec` in `test_cli_parser.py`
- Add unit tests to cover `client.py`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gist.