Bug 99009 - py24-yaml fails to load
Summary: py24-yaml fails to load
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Joseph Koshy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 07:00 UTC by Joseph Koshy
Modified: 2006-06-16 14:56 UTC (History)
0 users

See Also:


Attachments
file.diff (1.17 KB, patch)
2006-06-16 07:00 UTC, Joseph Koshy
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Koshy freebsd_committer freebsd_triage 2006-06-16 07:00:35 UTC
Python throws a ZeroDivisionError exception when the yaml library is used.

Fix: The following patch from the Py-Yaml website fixes the problem.
How-To-Repeat: 
Try 'import yaml' in Python.

  % python
  Python 2.4.2 (#2, Feb 20 2006, 21:55:20)
  [GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import yaml
  Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File "/usr/local/lib/python2.4/site-packages/yaml/__init__.py", line 8, in ?
      from loader import *
    File "/usr/local/lib/python2.4/site-packages/yaml/loader.py", line 8, in ?
      from constructor import *
    File "/usr/local/lib/python2.4/site-packages/yaml/constructor.py", line 187, in ?
      class SafeConstructor(BaseConstructor):
    File "/usr/local/lib/python2.4/site-packages/yaml/constructor.py", line 235, in SafeConstructor
      nan_value = inf_value/inf_value
  ZeroDivisionError: float division
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-06-16 13:15:57 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jkoshy

Submitter has GNATS access
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2006-06-16 13:16:05 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 3 Neal Nelson 2006-06-16 13:27:10 UTC
Please commit that patch.

Regards,

Neal Nelson.

On Fri, 2006-06-16 at 12:16 +0000, Edwin Groothuis wrote:
> Maintainer of devel/py-yaml,
> 
> Please note that PR ports/99009 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
> 
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/99009
>
Comment 4 Joseph Koshy freebsd_committer freebsd_triage 2006-06-16 14:55:46 UTC
State Changed
From-To: feedback->closed

Patch applied, thank you for your quick review.