Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438684 - dev-python/pythonmagick-0.9.8 syntax errors
Summary: dev-python/pythonmagick-0.9.8 syntax errors
Status: RESOLVED DUPLICATE of bug 437422
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-17 08:51 UTC by Patrick Lauer
Modified: 2012-11-13 16:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2012-10-17 08:51:49 UTC
* Messages for package dev-python/pythonmagick-0.9.8:

 * Syntax errors / warnings in Python modules for CPython 2.6:
 *     Compiling /usr/lib64/python2.6/site-packages/PythonMagick/__init__.py ...
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.6/site-packages/PythonMagick/__init__.py', 1, 11, 'from . from . import _PythonMagickn'))
 * Syntax errors / warnings in Python modules for CPython 2.7:
 *     Compiling /usr/lib64/python2.7/site-packages/PythonMagick/__init__.py ...
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/PythonMagick/__init__.py', 1, 11, 'from . from . import _PythonMagickn'))
 * Syntax errors / warnings in Python modules for CPython 3.2:
 *     *** Error compiling '/usr/lib64/python3.2/site-packages/PythonMagick/__init__.py'...
 *     File "/usr/lib64/python3.2/site-packages/PythonMagick/__init__.py", line 1
 *     from . from . import _PythonMagick
 *     ^
 *     SyntaxError: invalid syntax
 * Syntax errors / warnings in Python modules for CPython 3.3:
 *     *** Error compiling '/usr/lib64/python3.3/site-packages/PythonMagick/__init__.py'...
 *     File "/usr/lib64/python3.3/site-packages/PythonMagick/__init__.py", line 1
 *     from . from . import _PythonMagick
 *     ^
 *     SyntaxError: invalid syntax
Comment 1 Ben Longbons 2012-11-12 08:19:19 UTC
Just remove the following line from the ebuild (It should have been s/^import in the first place, so when it got upstreamed it wouldn't cause this problem):

sed -e "s/import _PythonMagick/from . import _PythonMagick/" -i PythonMagick/__init__.py || die "sed failed"
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-11-13 16:58:47 UTC

*** This bug has been marked as a duplicate of bug 437422 ***