GithubHelp home page GithubHelp logo

getstream / django_twitter Goto Github PK

View Code? Open in Web Editor NEW
107.0 42.0 57.0 4.27 MB

An example app built using getstream.io

Home Page: https://getstream.io

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.15% Python 60.77% JavaScript 1.37% HTML 32.63% CSS 5.08%

django_twitter's Introduction

Stream Twitter clone

This is a simple Twitter clone app built with Stream's API. It shows you how you can use GetStream.io to build a site similar to Twitter.

Note there is also a lower level Python - Stream integration library which is suitable for all Python applications.

You can sign up for a Stream account at https://getstream.io/get_started.

If you're looking to self-host your feed solution we suggest the open source Stream-Framework, created by the Stream founders.

Tutorial

This application is based on the Build a scalable Twitter clone with Django and GetStream.io tutorial.

Live Demo

You can see a live demo of this application here.

Heroku

The best way to try this application is via Heroku; you can deploy this example (for free) on Heroku by pressing the Deploy button below.

Deploy

If you prefer to run this locally then make sure to signup for GetStream's service and follow this steps:

Install the requirements

pip install -r requirements.txt

Add your API keys to pytutorial/settings.py

STREAM_API_KEY = 'my_api_key'
STREAM_API_SECRET = 'my_api_secret'

Run server in debug mode pytutorial/settings.py

DEBUG = True

Setup your database and the demo data:

python manage.py after_deploy

Collect static files (javascript/css)

python manage.py collectstatic

Start the webserver

python manage.py runserver

Copyright and License Information

Copyright (c) 2015-2017 Stream.io Inc, and individual contributors. All rights reserved.

See the file "LICENSE" for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.

django_twitter's People

Contributors

dwightgunning avatar jeltef avatar ricardosasilva avatar sukhrin avatar tbarbugli avatar yoland68 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django_twitter's Issues

the time when tweet was created is wrong

I have {{ activity.time|timesince }} ago for showing the time at which the tweet was created. However, it seems like it is 8 hours before the actual time. When I post a new tweet, it shows that the tweet was created 8 hours ago.
I changed the timezone to my local timezone in the settings.py but the problem is still there. I wonder how can I fix this. Hope you can help me with this. Thanks in advance.

whitenoise or django_twitter?

So I'm not sure if this is an issue with my system or the install instructions or what but after setting up a virtual environment and executing "pip install -r requirements.txt", not everything will install. this is what "pip list" looks like after:

Django 2.0.3
gnureadline 6.3.3
gunicorn 19.7.1
olefile 0.46
pip 20.1.1
pytz 2020.1
setuptools 47.3.1
wheel 0.34.2

Github signup results in error

I tried to signup with Github in the demo environment and got the following error:

IntegrityError at /accounts/github/login/callback/
null value in column "last_login" violates not-null constraint
DETAIL: Failing row contains (1212, !P4aTcHecsphMmQemYg3Rm9jPofp73YjOjh0XZV7A, null, f, ralphite, Yadong, Wen, , f, t, 2017-09-26 08:12:53.196923+00).

ERROR: Failed building wheel for Pillow

Failled to build pillow on a virtualenv.
Get a really long error message ending with:
ERROR: Command errored out with exit status 1: venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3nw04j89/Pillow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3nw04j89/Pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-d2gme0ys/install-record.txt --single-version-externally-managed --compile --install-headers venv/include/site/python3.7/Pillow Check the logs for full command output.

no such table: main.auth_user__old

django.db.utils.OperationalError: no such table: main.auth_user__old
[18/Aug/2020 17:46:01] "POST /admin/movies/genre/add/ HTTP/1.1" 500 203325

I was just trying a project and it keeps showing me this error

Request Method: POST
http://127.0.0.1:8000/admin/movies/genre/add/
2.1
OperationalError
no such table: main.auth_user__old
C:\Users\Intel.virtualenvs\vidly-0r20qTo9\lib\site-packages\django\db\backends\sqlite3\base.py in execute, line 296
C:\Users\Intel.virtualenvs\vidly-0r20qTo9\Scripts\python.exe
3.8.5
['C:\Users\Intel\vidly', 'C:\Users\Intel\.virtualenvs\vidly-0r20qTo9\Scripts\python38.zip', 'c:\users\intel\appdata\local\programs\python\python38-32\DLLs', 'c:\users\intel\appdata\local\programs\python\python38-32\lib', 'c:\users\intel\appdata\local\programs\python\python38-32', 'C:\Users\Intel\.virtualenvs\vidly-0r20qTo9', 'C:\Users\Intel\.virtualenvs\vidly-0r20qTo9\lib\site-packages']
Tue, 18 Aug 2020 15:46:01 +0000

confusion about feed groups

say user_a is following user_b, when I load the timeline feed like this:

 feeds = feed_manager.get_feed('timeline', user_a.id)

all I got is user_b's tweet
but when I load the user feed like this

feeds = feed_manager.get_feed('user', user_a.id)

all I got is user_a's tweet.
But obviously I need both user_a and user_b's tweet to display in user_a's timeline.
here's my getstream settings:

STREAM_API_KEY = 'key'
STREAM_API_SECRET = 'secret'
STREAM_NEWS_FEEDS = dict(timeline='timeline')

is there a way to fix this? thanks in advance

OperationalError: no such table: main.auth_user__old

When trying to run python manage.py after_deploy
I get the following error:

Traceback (most recent call last): File "/home/joe/projet/instatoo2/venv2/lib/python3.7/site-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "/home/joe/projet/instatoo2/venv2/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 303, in execute return Database.Cursor.execute(self, query, params) sqlite3.OperationalError: no such table: main.auth_user__old

I am using python3.7 on a virtualenv. Just change pillow version to the latest ( 6.2 ) in the requirements.txt and I have run python manage.py collectstatic before python manage.py after_deploy. Otherwise I followed the installation as they are in the readme

Not loading CSS

Hey. It seems like that if I follow your instructions the app does not css

Error after pip install -r requirements.txt

after running pip3 install -r requirements.txt
I got the following error:
python setup.py egg_info" failed with error code 1 in /tmp/pip-install-nf4zk6i4/psycopg2/
Maybe its because my python command links to python2 instead of python3 ?

error deploying to heroku

Postdeploy exit code was not 0

heroku build log:

�[36;1mOperations to perform:�[0m
�[1m Apply all migrations: �[0mstream_twitter, admin, sessions, auth, sites, socialaccount, contenttypes, account
�[36;1mRunning migrations:�[0m
Rendering model states...�[32;1m DONE�[0m
Applying contenttypes.0001_initial...�[32;1m OK�[0m
Applying auth.0001_initial...�[32;1m OK�[0m
Applying account.0001_initial...�[32;1m OK�[0m
Applying account.0002_email_max_length...�[32;1m OK�[0m
Applying admin.0001_initial...�[32;1m OK�[0m
Applying admin.0002_logentry_remove_auto_add...�[32;1m OK�[0m
Applying contenttypes.0002_remove_content_type_name...�[32;1m OK�[0m
Applying auth.0002_alter_permission_name_max_length...�[32;1m OK�[0m
Applying auth.0003_alter_user_email_max_length...�[32;1m OK�[0m
Applying auth.0004_alter_user_username_opts...�[32;1m OK�[0m
Applying auth.0005_alter_user_last_login_null...�[32;1m OK�[0m
Applying auth.0006_require_contenttypes_0002...�[32;1m OK�[0m
Applying auth.0007_alter_validators_add_error_messages...�[32;1m OK�[0m
Applying sessions.0001_initial...�[32;1m OK�[0m
Applying sites.0001_initial...�[32;1m OK�[0m
Applying sites.0002_alter_domain_unique...�[32;1m OK�[0m
Applying socialaccount.0001_initial...�[32;1m OK�[0m
Applying socialaccount.0002_token_max_lengths...�[32;1m OK�[0m
Applying socialaccount.0003_extra_data_default_dict...�[32;1m OK�[0m
Applying stream_twitter.0001_initial...�[32;1m OK�[0m
Installed 116 object(s) from 1 fixture(s)
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/init.py", line 350, in execute_from_command_line
utility.execute()
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/init.py", line 342, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(_args, *_cmd_options)
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
output = self.handle(_args, *_options)
File "/app/pytutorial/management/commands/after_deploy.py", line 17, in handle
tweet.delete()
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/base.py", line 862, in delete
return collector.delete()
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/deletion.py", line 316, in delete
sender=model, instance=obj, using=self.using
File "/app/.heroku/python/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 192, in send
response = receiver(signal=self, sender=sender, *_named)
File "/app/.heroku/python/lib/python2.7/site-packages/stream_django/managers.py", line 77, in activity_delete
result = feed.remove_activity(foreign_id=instance.activity_foreign_id)
File "/app/.heroku/python/lib/python2.7/site-packages/stream/feed.py", line 106, in remove_activity
url, signature=token, params=params)
File "/app/.heroku/python/lib/python2.7/site-packages/stream/client.py", line 225, in delete
return self._make_request(self.session.delete, *args, *_kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/stream/client.py", line 170, in _make_request
return self._parse_response(response)
File "/app/.heroku/python/lib/python2.7/site-packages/stream/client.py", line 115, in _parse_response
self.raise_exception(parsed_result, status_code=response.status_code)
File "/app/.heroku/python/lib/python2.7/site-packages/stream/client.py", line 207, in raise_exception
raise exception
stream.exceptions.ApiKeyException: api_key is invalid

Not installing

pillow is not installing

Collecting Pillow Using cached Pillow-8.3.2.tar.gz (48.8 MB) Building wheels for collected packages: Pillow Building wheel for Pillow (setup.py) ... error ERROR: Command errored out with exit status 1: command: /data/data/com.termux/files/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py'"'"'; __file__='"'"'/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /data/data/com.termux/files/usr/tmp/pip-wheel-hsc7b2ci cwd: /data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/ Complete output (174 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-aarch64-3.9 creating build/lib.linux-aarch64-3.9/PIL copying src/PIL/BdfFontFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/BlpImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/BmpImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ContainerIO.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/CurImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/DcxImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/DdsImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/EpsImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ExifTags.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/FliImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/FontFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/FpxImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/FtexImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GbrImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GdImageFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GifImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GimpGradientFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GimpPaletteFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/IcoImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/Image.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageChops.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageCms.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageColor.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageDraw.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageDraw2.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageEnhance.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageFilter.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageFont.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageGrab.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageMath.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageMode.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageMorph.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageOps.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImagePalette.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImagePath.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageQt.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageSequence.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageShow.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageStat.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageTk.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageTransform.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageWin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImtImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/IptcImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/JpegImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/JpegPresets.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/MicImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/MpegImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/MpoImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/MspImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PSDraw.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PaletteFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PalmImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PcdImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PcfFontFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PcxImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PdfImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PdfParser.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PixarImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PngImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PpmImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PsdImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PyAccess.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/SgiImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/SunImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/TarIO.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/TgaImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/TiffImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/TiffTags.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/WalImageFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/WebPImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/WmfImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/XbmImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/XpmImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/__init__.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/__main__.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/_binary.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/_tkinter_finder.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/_util.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/_version.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/features.py -> build/lib.linux-aarch64-3.9/PIL running egg_info writing src/Pillow.egg-info/PKG-INFO writing dependency_links to src/Pillow.egg-info/dependency_links.txt writing top-level names to src/Pillow.egg-info/top_level.txt reading manifest file 'src/Pillow.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.c' warning: no files found matching '*.h' warning: no files found matching '*.sh' warning: no previously-included files found matching '.appveyor.yml' warning: no previously-included files found matching '.clang-format' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.readthedocs.yml' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '.git*' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution no previously-included directories found matching '.ci' adding license file 'LICENSE' writing manifest file 'src/Pillow.egg-info/SOURCES.txt' running build_ext The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html Traceback (most recent call last): File "/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py", line 976, in <module> setup( File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/data/data/com.termux/files/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run self.run_command('build') File "/data/data/com.termux/files/usr/lib/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/data/data/com.termux/files/usr/lib/python3.9/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py", line 788, in build_extensions raise RequiredDependencyException(f) __main__.RequiredDependencyException: jpeg During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py", line 1035, in <module> raise RequiredDependencyException(msg) __main__.RequiredDependencyException: The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html ---------------------------------------- ERROR: Failed building wheel for Pillow Running setup.py clean for Pillow Failed to build Pillow Installing collected packages: Pillow Running setup.py install for Pillow ... error ERROR: Command errored out with exit status 1: command: /data/data/com.termux/files/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py'"'"'; __file__='"'"'/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /data/data/com.termux/files/usr/tmp/pip-record-z7cki9yc/install-record.txt --single-version-externally-managed --compile --install-headers /data/data/com.termux/files/usr/include/python3.9/Pillow cwd: /data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/ Complete output (176 lines): running install running build running build_py creating build creating build/lib.linux-aarch64-3.9 creating build/lib.linux-aarch64-3.9/PIL copying src/PIL/BdfFontFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/BlpImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/BmpImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ContainerIO.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/CurImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/DcxImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/DdsImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/EpsImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ExifTags.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/FliImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/FontFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/FpxImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/FtexImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GbrImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GdImageFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GifImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GimpGradientFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GimpPaletteFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/IcoImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/Image.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageChops.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageCms.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageColor.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageDraw.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageDraw2.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageEnhance.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageFilter.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageFont.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageGrab.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageMath.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageMode.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageMorph.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageOps.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImagePalette.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImagePath.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageQt.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageSequence.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageShow.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageStat.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageTk.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageTransform.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImageWin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/ImtImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/IptcImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/JpegImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/JpegPresets.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/MicImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/MpegImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/MpoImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/MspImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PSDraw.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PaletteFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PalmImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PcdImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PcfFontFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PcxImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PdfImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PdfParser.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PixarImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PngImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PpmImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PsdImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/PyAccess.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/SgiImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/SunImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/TarIO.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/TgaImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/TiffImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/TiffTags.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/WalImageFile.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/WebPImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/WmfImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/XbmImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/XpmImagePlugin.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/__init__.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/__main__.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/_binary.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/_tkinter_finder.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/_util.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/_version.py -> build/lib.linux-aarch64-3.9/PIL copying src/PIL/features.py -> build/lib.linux-aarch64-3.9/PIL running egg_info writing src/Pillow.egg-info/PKG-INFO writing dependency_links to src/Pillow.egg-info/dependency_links.txt writing top-level names to src/Pillow.egg-info/top_level.txt reading manifest file 'src/Pillow.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.c' warning: no files found matching '*.h' warning: no files found matching '*.sh' warning: no previously-included files found matching '.appveyor.yml' warning: no previously-included files found matching '.clang-format' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.readthedocs.yml' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '.git*' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution no previously-included directories found matching '.ci' adding license file 'LICENSE' writing manifest file 'src/Pillow.egg-info/SOURCES.txt' running build_ext The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html Traceback (most recent call last): File "/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py", line 976, in <module> setup( File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/data/data/com.termux/files/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/command/install.py", line 546, in run self.run_command('build') File "/data/data/com.termux/files/usr/lib/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/data/data/com.termux/files/usr/lib/python3.9/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/data/data/com.termux/files/usr/lib/python3.9/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py", line 788, in build_extensions raise RequiredDependencyException(f) __main__.RequiredDependencyException: jpeg During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py", line 1035, in <module> raise RequiredDependencyException(msg) __main__.RequiredDependencyException: The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html ---------------------------------------- ERROR: Command errored out with exit status 1: /data/data/com.termux/files/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py'"'"'; __file__='"'"'/data/data/com.termux/files/usr/tmp/pip-install-47l4yr21/pillow_8e7cd6b7fcf84fa28ee49fd87ab67f9e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /data/data/com.termux/files/usr/tmp/pip-record-z7cki9yc/install-record.txt --single-version-externally-managed --compile --install-headers /data/data/com.termux/files/usr/include/python3.9/Pillow Check the logs for full command output.

urls.py missing?

Shouldn't there be a urls.py under stream_twitter? Also I feel some other files conceptually would be missing as well like a wsgi.py etc. Just thought I'd point it out. I'm following the example and when I was looking for what you had for the urls for follow and unfollow I didn't seem to find them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.