★ wanayoo — archive 1999 https://github.com/python273/vk_api/issues/327Nouvelle recherche | Portail wanayoo
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

'<' not supported between instances of 'NoneType' and 'int' #327

Open
bagd1k opened this issue Jan 3, 2020 · 4 comments
Open

'<' not supported between instances of 'NoneType' and 'int' #327

bagd1k opened this issue Jan 3, 2020 · 4 comments

Comments

@bagd1k
Copy link

@bagd1k bagd1k commented Jan 3, 2020

File "/home/bagdik/.local/lib/python3.7/site-packages/vk_api/bot_longpoll.py", line 160, in init
if self.obj.peer_id < 0:
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Cмотрел предыдущую проблему -- ключ доступа пробовал менять, версия API актуал (5.103)
Ошибку вызывает запрос на выполнение любого метода, как я понял

EDIT: Все хорошо работает с компьютера через PyCharm, но не работает на pythonanywhere. Почему так может быть?

@bagd1k
Copy link
Author

@bagd1k bagd1k commented Jan 3, 2020

File "/home/bagdik/mysite/kadet/main.py", line 7, in listen
for event in longpoll.listen():

Вот тут ошибка первая

@Hcerk
Copy link

@Hcerk Hcerk commented Jan 15, 2020

Можно <<кусок>> кода, где выдаёт данную ошибку.

@DaniilSmirnov
Copy link

@DaniilSmirnov DaniilSmirnov commented Feb 15, 2020

Все еще актуально

@DaniilSmirnov
Copy link

@DaniilSmirnov DaniilSmirnov commented Feb 15, 2020

image
Проблему решил таким образом, файл bot_longpoll.py

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.