Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jcklpe opened this issue Oct 11, 2021 · 0 comments

Comments

@jcklpe
Copy link

jcklpe commented Oct 11, 2021

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'
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant