Skip to content

python pineapple problems #2

Closed
Closed

Description

@vay3t

i have problems with python pineapple

~/python-pineapple$ python cli-pineapple.py 
Traceback (most recent call last):
  File "cli-pineapple.py", line 6, in <module>
    fruit = Pineapple(API_TOKEN)
  File "/home/vay3t/python-pineapple/pineapple/pineapple.py", line 14, in __init__
    moduleClass = self._pineappleModule.__dict__[moduleName].__dict__[moduleName.title()]
KeyError: 'advanced'

my code:

#!/usr/bin/python
from pineapple.pineapple import Pineapple

API_TOKEN = "xxxx...."
fruit = Pineapple(API_TOKEN)
print fruit

Activity

  1. bahaahassanieh commented on Dec 5, 2017

    @bahaahassanieh

    i have the same problem , try calling the api manually , her is a well guided documentation to help you https://wifipineapple.github.io/wifipineapple-wiki//#!api.md

  2. vay3t commented on Dec 5, 2017

    @vay3t
    Author

    I have also tried manually, but I would like to use the module of python, it would be more practical

  3. sundhaug92 commented on Jan 2, 2018

    @sundhaug92
    Contributor

    Which firmware-version are you on?
    Do you have any modules installed?
    Which pineapple are you targetting?
    What OS are you running on?
    Which version of python are you using?

  4. couchfault commented on May 15, 2018

    @couchfault
    Owner

    This whole library needs an update. I've been pretty busy after officially being brought on @hak5. This is a project I started in my free time. I'll get around to it at some point after 2.1.0 is officially released. For now, I'm happy to review and merge pull requests I get. Glad to see people are taking advantage of the WiFi Pineapple's API!

  5. pect0ral commented on Sep 12, 2018

    @pect0ral

    Make sure you're running in a virtualenv and have all the deps installed. I found that
    from pineapple import * worked best for me. I've also submitted a pull for errors where json could not be decoded because of some garbage characters in the return stream. It's in my repo in case you're using firmware 2.3 and having that issue.

  6. vay3t commented on Sep 12, 2018

    @vay3t
    Author

    fixed! thx @pect0ral

  7. sundhaug92 commented on Sep 16, 2018

    @sundhaug92
    Contributor

    PR ref-ed by @pect0ral is #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions