franciscod / telegram-twitter-forwarder-bot

A Telegram bot that forwards Tweets
GNU Lesser General Public License v3.0
317 stars 116 forks source link

AttributeError: 'NoneType' object has no attribute 'safe_create_index' #39

Closed Adem1987 closed 3 years ago

Adem1987 commented 6 years ago

I'm getting this error on Debian in a virtualenvironment.

$ python main.py Traceback (most recent call last): File "main.py", line 9, in <module> from bot import TwitterForwarderBot File "/home/adem/twitterbot/bot.py", line 10, in <module> from models import TelegramChat, TwitterUser File "/home/adem/twitterbot/models.py", line 90, in <module> t.create_table(fail_silently=True) File "/home/adem/twitterbot/venv2/lib/python3.5/site-packages/peewee.py", line 5665, in create_table if safe and not cls._meta.database.safe_create_index \ AttributeError: 'NoneType' object has no attribute 'safe_create_index'

I don't know, what to do.

franciscod commented 4 years ago

Hey, it's been a few years :) Do you still experience this?

franciscod commented 3 years ago

I've just updated most of the project's dependencies. I'd assume this is now fixed!