Closed Gerard64 closed 5 years ago
I also have some problem with unlike, but different error
Do you want to continue? [y/N]: y
Making a list of liked tweet status_ids
Like history has 30270 tweets
Loading tweets from database
Traceback (most recent call last):
File "C:\Users\****\AppData\Local\Programs\Python\Python37\lib\site-packages\sqlalchemy\engine\base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "C:\Users\****\AppData\Local\Programs\Python\Python37\lib\site-packages\sqlalchemy\engine\default.py", line 552, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: too many SQL variables
Hmm, @Gerard64 and @onmyouji I think you are both getting different errors, this doesn't look like it's the same thing.
@Gerard64 I think I know what the issue is, and I think I just fixed it in the 31_unlike_extended_tweets
branch (really just this one-line change https://github.com/micahflee/semiphemeral/commit/1695bd9ed48284526af093063bca6cb157a5b75a). However since I already deleted all my old unlikes so it's difficult to test, would you be willing to test it for me?
To test you need to python3 and pipenv, and then:
# clone the repo and checkout the right branch
git clone https://github.com/micahflee/semiphemeral.git
cd semiphemeral
git fetch
git checkout 31_unlike_extended_tweets
# install dependencies
pipenv install --dev
# run semiphemeral from the source tree
pipenv run python ./app.py --help
Then try running the same unlike command, except using pipenv run python ./app.py
instead of semiphemeral
. If this works, I'll quickly make a new release so others don't hit this bug.
I am testing it at this moment and it looks good no errors anymore. It is fetching tweets i think. i did not see any deletes/unlikes yet.
Great, I think this fixed the problem then
Reliked and unliked is working.
Problem solved! Great, thank you!
I am going to interrupt the app for now so i can stop the vm and run it tomorow again til all likes are removed.
@micahflee is there anything I can do to fix the "too many SQL variables" error or is this a bug on the program?
I installed semiphemeral onto a ubuntu 18.04 virtualbox vm. then semiphemeral configure semiphemeral fresh semiphemeral delete
It did unliked 1661 from the 21.000
It did not find any tweets but i deleted already 12000 of the 13000 tweets with a other python script few days ago that might have something to do with it.
since i want to try to remove all my tweet and unlike all tweets i ever liked i downloaded my data and run:
By googling i found somebody who solved a similar error by installing pip install SQLAlchemy==1.2.5 SQLAlchemy-Utils==0.33.1
After that still the same errors. What is going wrong?