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

Can't create group or execute similar actions #8

Closed
ghost opened this issue Jan 27, 2017 · 7 comments
Closed

Can't create group or execute similar actions #8

ghost opened this issue Jan 27, 2017 · 7 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jan 27, 2017

I can't execute any actions apart from register, login and easter eggs, because it throws an Attribute Error: 'NoneType' object has no attribute 'status code'

@dmonn
Copy link
Owner

dmonn commented Jan 29, 2017

Hey @tionis . Can you please give me some more information on the OS you use etc.? The error message seems like there was an error with the server. However it worked after my test now. Can you confirm that you still encounter this error?

@ghost
Copy link
Author

ghost commented Jan 30, 2017

Sure
I am using Windows 8.1 and the error still occurs ist seens to be an error in the Python script.

@dmonn
Copy link
Owner

dmonn commented Jan 31, 2017

Hey, I still can't reproduce the error, I have tested it in my Windows 8.1 VM. Have you installed Socialize via pip? If so, which version are you using right now? Also, could you paste the full traceback in here? Thanks.

@ghost
Copy link
Author

ghost commented Jan 31, 2017

I installed socialize via pip, it should be version 1.0.5.
This is the error:
C:\Windows\system32>socl find friends
An error occured. Send this to your administrator: name 'file' is not defined
Traceback (most recent call last):
File "C:\Python34\Scripts\socl-script.py", line 9, in
load_entry_point('socialize==1.0.5', 'console_scripts', 'socl')()
File "C:\Python34\lib\site-packages\click\core.py", line 722, in call
return self.main(*args, **kwargs)
File "C:\Python34\lib\site-packages\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "C:\Python34\lib\site-packages\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Python34\lib\site-packages\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Python34\lib\site-packages\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Python34\lib\site-packages\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "C:\Python34\lib\site-packages\socialize\router.py", line 238, in friends
finders.random_users()
File "C:\Python34\lib\site-packages\socialize\services\finder_service.py", lin
e 8, in random_users
self.format_user_list(r)
File "C:\Python34\lib\site-packages\socialize\services\finder_service.py", lin
e 20, in format_user_list
for user in u:
TypeError: 'NoneType' object is not iterable

@dmonn
Copy link
Owner

dmonn commented Feb 1, 2017

Ok I will check that out. Is that always the case or just with this specific command?

@ghost
Copy link
Author

ghost commented Feb 1, 2017 via email

@dmonn
Copy link
Owner

dmonn commented Feb 1, 2017

Problem was the file() function which was deprecated in Python3.5. It's fixed now with newly released version 1.0.6.

@dmonn dmonn closed this as completed Feb 1, 2017
@dmonn dmonn added the bug label Feb 1, 2017
@dmonn dmonn self-assigned this Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant