Skip to content

AttributeError: 'int' object has no attribute 'post' : unable to get new username #7

@jcklpe

Description

@jcklpe

Hi I had amby installed on my self hosted linux media cloud server a couple of years ago and I just moved to a new apartment and decided to try and get amby working on it again. 

I have managed to install it and also get it added to PATH etc but I'm running into a new issue. 

When I try to run the amby command it asks me if I want to create a new username. I confirm Y and then it tells me to hi the Bridge button and press Return. I do this and get the following error message:

```
└─➤ amby 192.168.1.140 1 
No username specified, do you want to create one now? [Y/n]: Y
Press the Bridge button, then press Return: 
Traceback (most recent call last):
 File "/home/aslan/.local/bin/amby", line 8, in <module>
   sys.exit(main())
 File "/home/aslan/.local/lib/python3.8/site-packages/amby/cli.py", line 120, in main
   argument_parser.exit(main_(arguments))
 File "/home/aslan/.local/lib/python3.8/site-packages/amby/cli.py", line 70, in main_
   username = prompt_create_username(arguments.bridge_address)
 File "/home/aslan/.local/lib/python3.8/site-packages/amby/cli.py", line 51, in prompt_create_username
   return qhue.create_new_username(bridge_address)
 File "/home/aslan/.local/lib/python3.8/site-packages/qhue/qhue.py", line 116, in create_new_username
   response = res(devicetype=devicetype, http_method="post")
 File "/home/aslan/.local/lib/python3.8/site-packages/qhue/qhue.py", line 56, in __call__
   r = self.session.post(url, data=json.dumps(kwargs, default=list), timeout=self.timeout)
AttributeError: 'int' object has no attribute 'post'
```

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