Custom Query (1173 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (226 - 228 of 1173)

Ticket Resolution Summary Owner Reporter
#5314 fixed ZeroDivisionError in exif.py ayleph
Description

A user tried to upload a couple of images that resulted in the following error in my celery logs.

[2015-04-08 15:55:15,419: ERROR/MainProcess] Task mediagoblin.processing.task.ProcessMedia[5210c290-e679-4788-afa2-5e4020b46ba4] raised unexpected: ZeroDivisionError('float division by zero',)
Traceback (most recent call last):
  File "/path/to/mediagoblin/lib/python2.7/site-packages/celery-3.1.17-py2.7.egg/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/path/to/mediagoblin/lib/python2.7/site-packages/celery-3.1.17-py2.7.egg/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "/path/to/mediagoblin/mediagoblin/processing/task.py", line 101, in run
    processor.process(**reprocess_info)
  File "/path/to/mediagoblin/mediagoblin/media_types/image/processing.py", line 320, in process
    self.extract_metadata('original')
  File "/path/to/mediagoblin/mediagoblin/media_types/image/processing.py", line 231, in extract_metadata
    gps_data = get_gps_data(self.exif_tags)
  File "/path/to/mediagoblin/mediagoblin/tools/exif.py", line 161, in get_gps_data
    )(dat.values)
  File "/path/to/mediagoblin/mediagoblin/tools/exif.py", line 160, in <lambda>
    + (float(v[2].num) / float(v[2].den) / (60 * 60))
ZeroDivisionError: float division by zero

The following GPS information was logged during processing of one of these images.

GPS SubIFD at offset 10616:
GPSVersionID: (0x0000) Byte=[2, 2, 0, 0] @ 10626
GPSLatitudeRef: (0x0001) ASCII= @ 10638
GPSLatitude: (0x0002) Ratio=[0/0, 0/0, 0/0] @ 10730
GPSLongitudeRef: (0x0003) ASCII= @ 10662
GPSLongitude: (0x0004) Ratio=[0/0, 0/0, 0/0] @ 10754
GPSStatus: (0x0009) ASCII= @ 10686
GPSImgDirectionRef: (0x0010) ASCII= @ 10698
GPSImgDirection: (0x0011) Ratio=267 @ 10778
GPSAreaInformation: (0x001C) Undefined=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... ] @ 10786
GPSInfo: (0x8825) Long=10616 @ 150
#5313 fixed Fresh install requires "requests>=2.6.0" Jim Campbell
Description

When doing a fresh install on Debian Jessie, I encountered this error at the

./bootstrap.sh && ./configure && make

step:

Using /srv/mediagoblin.thedocsbook.org/mediagoblin/lib/python2.7/site-packages/PyLD-0.6.7-py2.7.egg
Searching for requests==2.4.3
Reading https://pypi.python.org/simple/requests/
Best match: requests 2.4.3
Downloading https://pypi.python.org/packages/source/r/requests/requests-2.4.3.tar.gz#md5=02214b3a179e445545de4b7a98d3dd17
Processing requests-2.4.3.tar.gz
Writing /tmp/easy_install-tEaZEN/requests-2.4.3/setup.cfg
Running requests-2.4.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-tEaZEN/requests-2.4.3/egg-dist-tmp-eGjwmZ
Traceback (most recent call last):
  File "setup.py", line 154, in <module>
    "Topic :: Internet :: WWW/HTTP :: Dynamic Content"
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/develop.py", line 32, in run
    self.install_for_development()
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/develop.py", line 132, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 733, in process_distribution
    self.easy_install(dist.as_requirement())
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 636, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 666, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 856, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1063, in run_setup
    run_setup(setup_script, args)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 68, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 114, in run
    return func()
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 67, in runner
    _execfile(setup_script, ns)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 43, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-tEaZEN/requests-2.4.3/setup.py", line 6, in <module>
    # the Free Software Foundation, either version 3 of the License, or
  File "/tmp/easy_install-tEaZEN/requests-2.4.3/requests/__init__.py", line 53, in <module>
  File "/tmp/easy_install-tEaZEN/requests-2.4.3/requests/packages/urllib3/contrib/pyopenssl.py", line 73, in <module>
AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

All mentions of requirements for 'requests' should state a minimum version number of 2.6.0 (e.g., in setup.py). There may be other instances of 'requests' that require an update, as well, so people who are more familiar with the source code should check for them.

Entering

 ./bin/easy_install --upgrade requests

and re-issuing the original command installed reqeusts 2.6.0 and allowed the process to continue as needed.

#5312 duplicate Install Scripts Shebang on Freebsd Sebastian Hugentobler
Description

The following files, used in the installation process, fail on FreeBSD (10.1):

  • bootstrap.sh
  • devtools/update_extlib.sh
  • devtools/compile_translations.sh

Reason for this is the shebang line in all three:

#!/bin/bash

I replaced it with

#!/usr/bin/env sh

which works fine for me. Is there a specific reason for using bash here? If yes, could it be changed to use the env command? I can't symlink FreeBSDs default bash path (/usr/local/bin/bash) to /bin/bash from inside my jails as /bin is mounted readonly.

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