GithubHelp home page GithubHelp logo

Comments (13)

myusuf3 avatar myusuf3 commented on September 26, 2024

which version of python are you using?

from octogit.

flexd avatar flexd commented on September 26, 2024

The one python --version outputs above ;-) 2.6.5

from octogit.

myusuf3 avatar myusuf3 commented on September 26, 2024

Sorry I missed that. you aren't using master are you? latest release on pip?

from octogit.

flexd avatar flexd commented on September 26, 2024

I'm using 0.3.3, I think I installed it some time ago and just never used it due to the error.

from octogit.

myusuf3 avatar myusuf3 commented on September 26, 2024

@flexd if you pass me instructions to repeat it I will see to its fixed in the next release.

from octogit.

flexd avatar flexd commented on September 26, 2024

The command I'm trying is 'octogit issues', on ubuntu 10.04.4. LTS with the python version and octogit version above :)

from octogit.

Olivia5k avatar Olivia5k commented on September 26, 2024

I am having this issue as well. Installed with latest pip (0.3.3) and ran with Python 2.7.3 on Arch Linux.
I did it in getsentry/sentry, if that should matter. It seems that the error is before even getting to the repo, though.

from octogit.

Garonenur avatar Garonenur commented on September 26, 2024

I get a similar error, only the message is different:

Traceback (most recent call last):
  File "/home/dirk/bin/octogit", line 9, in <module>
    load_entry_point('octogit==0.3.3', 'console_scripts', 'octogit')()
  File "/home/dirk/.local/lib/python2.7/site-packages/octogit/cli.py", line 121, in begin
    username, url = get_username_and_repo(url)
  File "/home/dirk/.local/lib/python2.7/site-packages/octogit/cli.py", line 83, in get_username_and_repo
    parent_repo = get_parent_repository(info)
  File "/home/dirk/.local/lib/python2.7/site-packages/octogit/cli.py", line 54, in get_parent_repository
    parent = data['parent']['full_name']
TypeError: 'instancemethod' object has no attribute '__getitem__'

from octogit.

dbr avatar dbr commented on September 26, 2024

Ah, octogit v0.3.3 requires a version of requests <1.0, because it uses requests.get("...").json['thing']

This part of the requests API changed in 1.0. 87be2ad changed the octogit to use the >=1.0 requests.get("...").json()['thing'] (the json attribute is now a method, it once was a property)

@myusuf3 Making a new release with the requests>=1.0 requirement will fix this

from octogit.

satta avatar satta commented on September 26, 2024

Any progress on this?

from octogit.

myusuf3 avatar myusuf3 commented on September 26, 2024

No. I wont be working towards this till I work on the new version of octogit. probably couple months away at best.

from octogit.

dbr avatar dbr commented on September 26, 2024

@satta you can probably work around this by installing an older version of requests, e.g pip install requests==0.14.2

from octogit.

haeric avatar haeric commented on September 26, 2024

Thanks, @dbr, that worked!

from octogit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.