Custom Query (1173 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (142 - 144 of 1173)

Ticket Resolution Summary Owner Reporter
#5330 fixed Python 3.4.3 does not work with default values in SQLAlchemy <0.9 spaetz
Description

Trying to register on by mediagoblin (v0.8) with python3, I get the following

error: sqlalchemy.exc.StatementError: utcnow() takes no arguments (1 given) (original cause: TypeError: utcnow() takes no arguments (1 given)) 'INSERT INTO coreusers (username, email, pw_hash, created, wants_comment_notification, wants_notifications, license_preference, url, bio, uploaded, upload_limit, location, activity) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' [{'license_preference': None, 'activity': None, 'location': None, 'upload_limit': None,'pw_hash': None, 'email': 'Sebastian@…', 'bio': None, 'url': None, 'username': 'spaetz'}]

Other relevant reports: http://stackoverflow.com/questions/22481905/sqlalchemy-python-3-default-column-value and has apparently been fixed in SQLAlchemy 0.9.

As our setup.py still constraints SQLAlchemy for some unknown reason to <0.9.0, we fail on python3 setups. Removing that constraint and upgrading SQLAlchemy to the current version let mediagoblin continue without errors. I ran the test suite with the new SQLAlchemy and no new error came up.

Sebastian

#5331 fixed Print statements not python3 compatible spaetz
Description

File "mediagoblin/media_types/video/transcoders.py", line 436

print transcoder.discover(*args)

SyntaxError: invalid syntax

#5332 fixed Storage test fails on python3 spaetz
Description

This happens running the test suite on python3 with MG v0.8 (The same error occurs in a few more tests). I don't have an easy guess as to how to fix this.

_ test_basic_storage_copy_locally _ Traceback (most recent call last):

File "/srv/media.sspaeth.de/mediagoblin/mediagoblin/tests/test_storage.py", line 284, in test_basic_storage_copy_locally

our_file.write('Testing this file')

File "/srv/media.sspaeth.de/mediagoblin/mediagoblin/storage/filestorage.py", line 35, in write

super(FileObjectAwareFile, self).write(data)

TypeError: 'str' does not support the buffer interface

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.