Mediathread Fall 2014 Release

27 views
Skip to first unread message

Susan Dreher

unread,
Sep 3, 2014, 1:57:25 PM9/3/14
to media...@googlegroups.com
Greetings -

The code for the fall semester is now available at https://github.com/ccnmtl/mediathread (master, tag v2014_Fall). 

With this latest release, Mediathread now supports media on secure websites (https) expanding the media collections that can be used within the tool, and allowing us to continue supporting recently secured applications such as YouTube and Flickr.

In addition to performance improvements, bookmarklet enhancements and an upgrade of the underlying Django framework, we also put in an infinite scrolling feature in the collection that will make finding media within the tool much easier and faster.

=== Developer Notes ===

* The changes to support secured sites such as YouTube require Mediathread installations to be available via both ssl and non-ssl contexts. We are hoping to make a full switch to ssl by the end of the semester. (We have a few providers that do not yet support ssl interaction.)

* The SSL change requires a bookmarklet reinstall. Messaging is included when the user logs in for the first time.

* A recent conversation with a Mediathread contributor resulted in this pull request https://github.com/ccnmtl/mediathread/pull/29. This change now requires you have database settings in either a deploy_specific setup OR in your local_settings.py. (Ideally, we'd like to remove the complication of deploy_specific -- thoughts/discussion/comments welcome.)

* Required libraries are now pulled from the Python Package Index (https://pypi.python.org/pypi) rather than stored in the local source directory. This creates a smaller source footprint.

* We've made the switch to a full static-files implementation. All static resources are checked in and accessed in the /media directory.

* Django version is now 1.5.6. Look for an interim upgrade to 1.6 soon. 

=== Upgrading ===

* Complete a fresh source pull or merge the new code directly into a branched version of your source base.

* ./bootstrap.py

* ./manage.py migrate --settings=mediathread.settings_<env>

* ./manage.py jenkins  # full unit test run

Let me know if you have any issues.

Best,
Susan

John wallace

unread,
Sep 8, 2014, 3:19:25 PM9/8/14
to media...@googlegroups.com
Hi Susan,

Thanks for putting up the new version!   Since I was in the middle of an install I figured I would give it a shot.  There were some errors during bootstrap.py and some compile errors.  I've attached the entire output from  .bootstrap.py.

thanks

-John



 
bootstrap.py.out

Susan Dreher

unread,
Sep 8, 2014, 3:38:30 PM9/8/14
to media...@googlegroups.com
Hi John - 

From the output, it looks like you need freetype-py installed. Can you try adding this line: freetype-py==0.4.2 to the requirements.txt file? You'll want to put that reference above Pillow==1.7.8.

Let me know how it goes,
Susan

--
You received this message because you are subscribed to the Google Groups "Mediathread" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mediathread...@googlegroups.com.
To post to this group, send email to media...@googlegroups.com.
Visit this group at http://groups.google.com/group/mediathread.
For more options, visit https://groups.google.com/d/optout.

MrEnoch

unread,
Sep 8, 2014, 3:40:20 PM9/8/14
to media...@googlegroups.com
Thanks for jumping in Susan.

John - can you also share what flavor and version of linux you're running?   Looks like we manage to omit a dependency that we already had installed somehow and it would be good to track that down.

thanks,
/Jonah
 

On Monday, September 8, 2014 3:38:30 PM UTC-4, Susan Dreher wrote:
Hi John - 

From the output, it looks like you need freetype-py installed. Can you try adding this line: freetype-py==0.4.2 to the requirements.txt file? You'll want to put that reference above Pillow==1.7.8.

Let me know how it goes,
Susan

On Mon, Sep 8, 2014 at 3:19 PM, John wallace <1johnw...@gmail.com> wrote:
Hi Susan,

Thanks for putting up the new version!   Since I was in the middle of an install I figured I would give it a shot.  There were some errors during bootstrap.py and some compile errors.  I've attached the entire output from  .bootstrap.py.

thanks

-John



 

--
You received this message because you are subscribed to the Google Groups "Mediathread" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mediathread+unsubscribe@googlegroups.com.

John wallace

unread,
Sep 9, 2014, 3:54:28 PM9/9/14
to media...@googlegroups.com
Hi,

Was wondering if someone had thoughts on the following error from the apache logs??

thanks




664] [client 129.170.20.8:51447] Target WSGI script not found or unable to stat: /var/www/mediathread/apache
[Tue Sep 09 13:56:54.324898 2014] [:error] [pid 11925:tid 140095510353664] [client 127.0.0.1:44705] Target WSGI script not found or unable to stat: /var/www/mediathread/apache
[Tue Sep 09 14:50:25.744837 2014] [:error] [pid 13444:tid 139698794129152] Raven is not configured (logging is disabled). Please see the documentation for more information.
[Tue Sep 09 14:50:25.957831 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392] mod_wsgi (pid=13444): Exception occurred processing WSGI script '/var/www/mediathread/mediat
hread/apache/django.wsgi'.
[Tue Sep 09 14:50:25.957895 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392] Traceback (most recent call last):
[Tue Sep 09 14:50:25.957923 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/core/handlers
/wsgi.py", line 255, in __call__
[Tue Sep 09 14:50:25.958055 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     response = self.get_response(request)
[Tue Sep 09 14:50:25.958075 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/core/handlers
/base.py", line 178, in get_response
[Tue Sep 09 14:50:25.958218 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Tue Sep 09 14:50:25.958238 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/core/handlers
/base.py", line 224, in handle_uncaught_exception
[Tue Sep 09 14:50:25.958265 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     return callback(request, **param_dict)
[Tue Sep 09 14:50:25.958277 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/utils/decorat
ors.py", line 91, in _wrapped_view
[Tue Sep 09 14:50:25.958384 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     response = view_func(request, *args, **kwargs)
[Tue Sep 09 14:50:25.958402 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/views/default
s.py", line 41, in server_error
[Tue Sep 09 14:50:25.958478 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     return http.HttpResponseServerError(template.render(Context({})))
[Tue Sep 09 14:50:25.958495 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 140, in render
[Tue Sep 09 14:50:25.958896 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     return self._render(context)
[Tue Sep 09 14:50:25.958917 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 134, in _render
[Tue Sep 09 14:50:25.958947 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     return self.nodelist.render(context)
[Tue Sep 09 14:50:25.958961 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 830, in render
[Tue Sep 09 14:50:25.958981 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     bit = self.render_node(node, context)
[Tue Sep 09 14:50:25.959006 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 844, in render_node
[Tue Sep 09 14:50:25.959027 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     return node.render(context)
[Tue Sep 09 14:50:25.959041 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/load
er_tags.py", line 124, in render
[Tue Sep 09 14:50:25.959162 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     return compiled_parent._render(context)
[Tue Sep 09 14:50:25.959179 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 134, in _render
[Tue Sep 09 14:50:25.959202 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     return self.nodelist.render(context)
[Tue Sep 09 14:50:25.959213 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 830, in render
[Tue Sep 09 14:50:25.959231 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     bit = self.render_node(node, context)
[Tue Sep 09 14:50:25.959242 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 844, in render_node
[Tue Sep 09 14:50:25.959260 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     return node.render(context)
[Tue Sep 09 14:50:25.959273 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/defa
ulttags.py", line 485, in render
[Tue Sep 09 14:50:25.959638 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     output = self.nodelist.render(context)
[Tue Sep 09 14:50:25.959660 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 830, in render
[Tue Sep 09 14:50:25.959686 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     bit = self.render_node(node, context)
[Tue Sep 09 14:50:25.959698 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 844, in render_node
[Tue Sep 09 14:50:25.959717 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     return node.render(context)
[Tue Sep 09 14:50:25.959729 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/courseaffils/templat
etags/coursetags.py", line 71, in render
[Tue Sep 09 14:50:25.959824 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     vars[key] = var.resolve(context)
[Tue Sep 09 14:50:25.959844 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 728, in resolve
[Tue Sep 09 14:50:25.959869 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     value = self._resolve_lookup(context)
[Tue Sep 09 14:50:25.959882 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]   File "/var/www/mediathread/mediathread/ve/lib/python2.7/site-packages/django/template/base
.py", line 771, in _resolve_lookup
[Tue Sep 09 14:50:25.959901 2014] [:error] [pid 13444:tid 139698794129152] [remote 129.170.20.8:57392]     (bit, current))  # missing attribute
[Tue Sep 09 14:50:25.959983 2014] [:error] [pid 13444:tid 13

Nate Aune

unread,
Sep 9, 2014, 5:42:21 PM9/9/14
to media...@googlegroups.com
Great to see the new Fall 2014 release with SSL support and packages
getting pulled in from PyPi instead of local source dir!

> * A recent conversation with a Mediathread contributor resulted in this pull
> request https://github.com/ccnmtl/mediathread/pull/29. This change now
> requires you have database settings in either a deploy_specific setup OR in
> your local_settings.py. (Ideally, we'd like to remove the complication of
> deploy_specific -- thoughts/discussion/comments welcome.)

You might want to update the README file to mention that one can use a
local_settings.py instead of the deploy_specific method:
https://github.com/ccnmtl/mediathread/blob/v2014_Fall/README.markdown#installation

Nate

--

Nate Aune - nate...@gmail.com
http://www.nateaune.com
+1 (617) 517-4953

Susan Dreher

unread,
Sep 10, 2014, 9:42:51 AM9/10/14
to media...@googlegroups.com
Thanks Nate. Noted on the README file. I will update. 

Hope all is well!

Susan

--
You received this message because you are subscribed to the Google Groups "Mediathread" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mediathread...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages