error: unable to find string literal operator 'operator"" PY_FORMAT_SIZE_T'

Bug #1000910 reported by Shawn Tan
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Cython
New
Undecided
Unassigned
OpenCog
Fix Released
High
Unassigned

Bug Description

Bug occurs when building the cython stuff.

[ 36%] Building CXX object opencog/cython/CMakeFiles/cogserver_cython.dir/opencog/cogserver.cpp.o
/home/shawn/opencog/build/bin/opencog/cython/opencog/cogserver.cpp: In function 'void __Pyx_RaiseArgtupleInvalid(const char*, int, Py_ssize_t, Py_ssize_t, Py_ssize_t)':
/home/shawn/opencog/build/bin/opencog/cython/opencog/cogserver.cpp:1637:95: error: unable to find string literal operator 'operator"" PY_FORMAT_SIZE_T'
make[2]: *** [opencog/cython/CMakeFiles/cogserver_cython.dir/opencog/cogserver.cpp.o] Error 1
make[1]: *** [opencog/cython/CMakeFiles/cogserver_cython.dir/all] Error 2
make: *** [all] Error 2

I've attempted manually going in to add a space between the quotes, and it does build that way.

The problem is apparently with cython, and has been reported on their google group:
https://groups.google.com/forum/?fromgroups#!topic/cython-users/0CYqw2cRFlg

Some googling brought me to his github account where he fixed the thing but hasn't seemed to have submitted a pull request:
https://github.com/rp-/cython/commit/4a4d5d9a800e1cd048798161a373fd775fb29d26

Revision history for this message
linas (linasvepstas) wrote : Re: [Bug 1000910] [NEW] error: unable to find string literal operator 'operator"" PY_FORMAT_SIZE_T'

On 17 May 2012 13:17, Shawn Tan <email address hidden> wrote:
>
> I've attempted manually going in to add a space between the quotes, and
> it does build that way.

Is there any patch or work-around we can apply to opencog? If so, then
what? If not, then we'll have to just wait until cython is fixed...

Revision history for this message
ferrouswheel (joel-pitt) wrote :

The cython bindings used to build fine. So it would be helpful to know
what version of cython was being used, or what commit broke it.

On 18 May 2012 06:38, linas <email address hidden> wrote:
> On 17 May 2012 13:17, Shawn Tan <email address hidden> wrote:
>>
>> I've attempted manually going in to add a space between the quotes, and
>> it does build that way.
>
>
> Is there any patch or work-around we can apply to opencog?  If so, then
> what?  If not, then we'll have to just wait until cython is fixed...
>
> --
> You received this bug notification because you are a member of OpenCog
> Developers, which is subscribed to OpenCog.
> https://bugs.launchpad.net/bugs/1000910
>
> Title:
>   error: unable to find string literal operator 'operator""
>  PY_FORMAT_SIZE_T'
>
> Status in Cython - C-Extensions for Python:
>  New
> Status in OpenCog:
>  New
>
> Bug description:
>  Bug occurs when building the cython stuff.
>
>  [ 36%] Building CXX object opencog/cython/CMakeFiles/cogserver_cython.dir/opencog/cogserver.cpp.o
>  /home/shawn/opencog/build/bin/opencog/cython/opencog/cogserver.cpp: In function 'void __Pyx_RaiseArgtupleInvalid(const char*, int, Py_ssize_t, Py_ssize_t, Py_ssize_t)':
>  /home/shawn/opencog/build/bin/opencog/cython/opencog/cogserver.cpp:1637:95: error: unable to find string literal operator 'operator"" PY_FORMAT_SIZE_T'
>  make[2]: *** [opencog/cython/CMakeFiles/cogserver_cython.dir/opencog/cogserver.cpp.o] Error 1
>  make[1]: *** [opencog/cython/CMakeFiles/cogserver_cython.dir/all] Error 2
>  make: *** [all] Error 2
>
>  I've attempted manually going in to add a space between the quotes,
>  and it does build that way.
>
>  The problem is apparently with cython, and has been reported on their google group:
>  https://groups.google.com/forum/?fromgroups#!topic/cython-users/0CYqw2cRFlg
>
>  Some googling brought me to his github account where he fixed the thing but hasn't seemed to have submitted a pull request:
>  https://github.com/rp-/cython/commit/4a4d5d9a800e1cd048798161a373fd775fb29d26
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cython/+bug/1000910/+subscriptions

Revision history for this message
linas (linasvepstas) wrote :

On 17 May 2012 16:00, ferrouswheel <email address hidden> wrote:

> The cython bindings used to build fine. So it would be helpful to know
> what version of cython was being used, or what commit broke it.

It's possible that gcc-4.7 broke this. gcc-4.7 is more strict about things.

--linas

Revision history for this message
Shawn Tan (6-shawx-h) wrote :

Hi all,

The problem has been fixed, but the fix was not included in the 0.16 release.
https://github.com/cython/cython/pull/109

Apparently it was an issue with the new C++ standard.

Guess I'll have to wait for the next release of cython.
Sorry about submitting the bug report, wasn't sure of the procedure if it concerned problems with other packages.

Revision history for this message
ferrouswheel (joel-pitt) wrote : Re: [Bug 1000910] Re: error: unable to find string literal operator 'operator"" PY_FORMAT_SIZE_T'

Hi Shawn - no need for the apology, it's great to get feedback about
people's build experience so that we know where there are issues.

Thanks for linking to the resolution too!

On 18 May 2012 19:04, Shawn Tan <email address hidden> wrote:
> Hi all,
>
> The problem has been fixed, but the fix was not included in the 0.16 release.
> https://github.com/cython/cython/pull/109
>
> Apparently it was an issue with the new C++ standard.
>
> Guess I'll have to wait for the next release of cython.
> Sorry about submitting the bug report, wasn't sure of the procedure if it concerned problems with other packages.
>
> --
> You received this bug notification because you are a member of OpenCog
> Developers, which is subscribed to OpenCog.
> https://bugs.launchpad.net/bugs/1000910
>
> Title:
>   error: unable to find string literal operator 'operator""
>  PY_FORMAT_SIZE_T'
>
> Status in Cython - C-Extensions for Python:
>  New
> Status in OpenCog:
>  New
>
> Bug description:
>  Bug occurs when building the cython stuff.
>
>  [ 36%] Building CXX object opencog/cython/CMakeFiles/cogserver_cython.dir/opencog/cogserver.cpp.o
>  /home/shawn/opencog/build/bin/opencog/cython/opencog/cogserver.cpp: In function 'void __Pyx_RaiseArgtupleInvalid(const char*, int, Py_ssize_t, Py_ssize_t, Py_ssize_t)':
>  /home/shawn/opencog/build/bin/opencog/cython/opencog/cogserver.cpp:1637:95: error: unable to find string literal operator 'operator"" PY_FORMAT_SIZE_T'
>  make[2]: *** [opencog/cython/CMakeFiles/cogserver_cython.dir/opencog/cogserver.cpp.o] Error 1
>  make[1]: *** [opencog/cython/CMakeFiles/cogserver_cython.dir/all] Error 2
>  make: *** [all] Error 2
>
>  I've attempted manually going in to add a space between the quotes,
>  and it does build that way.
>
>  The problem is apparently with cython, and has been reported on their google group:
>  https://groups.google.com/forum/?fromgroups#!topic/cython-users/0CYqw2cRFlg
>
>  Some googling brought me to his github account where he fixed the thing but hasn't seemed to have submitted a pull request:
>  https://github.com/rp-/cython/commit/4a4d5d9a800e1cd048798161a373fd775fb29d26
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cython/+bug/1000910/+subscriptions

Revision history for this message
Karl Sackett (karlsackett) wrote :

Upgrading to cython 0.17 appears to fix this bug.

Revision history for this message
linas (linasvepstas) wrote :

Shawn, can you verify that cython 0.17 fixes this? If so, we should add a check to cmake to insist on this version

Changed in opencog:
importance: Undecided → High
Revision history for this message
David Hart (dhart) wrote :

I'm using cython 0.17 bundled with Ubuntu 12.10 and still seeing this bug...

Revision history for this message
Shawn Tan (6-shawx-h) wrote :

Hi all,

Cython 0.17 fixed this bug. However, there are still other compilation
errors that I'm facing related to Boost.

On 7 October 2012 07:12, David Hart <email address hidden> wrote:

> I'm using cython 0.17 bundled with Ubuntu 12.10 and still seeing this
> bug...
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1000910
>
> Title:
> error: unable to find string literal operator 'operator""
> PY_FORMAT_SIZE_T'
>
> Status in Cython - C-Extensions for Python:
> New
> Status in OpenCog:
> New
>
> Bug description:
> Bug occurs when building the cython stuff.
>
> [ 36%] Building CXX object
> opencog/cython/CMakeFiles/cogserver_cython.dir/opencog/cogserver.cpp.o
> /home/shawn/opencog/build/bin/opencog/cython/opencog/cogserver.cpp: In
> function 'void __Pyx_RaiseArgtupleInvalid(const char*, int, Py_ssize_t,
> Py_ssize_t, Py_ssize_t)':
>
> /home/shawn/opencog/build/bin/opencog/cython/opencog/cogserver.cpp:1637:95:
> error: unable to find string literal operator 'operator"" PY_FORMAT_SIZE_T'
> make[2]: ***
> [opencog/cython/CMakeFiles/cogserver_cython.dir/opencog/cogserver.cpp.o]
> Error 1
> make[1]: *** [opencog/cython/CMakeFiles/cogserver_cython.dir/all] Error 2
> make: *** [all] Error 2
>
> I've attempted manually going in to add a space between the quotes,
> and it does build that way.
>
> The problem is apparently with cython, and has been reported on their
> google group:
>
> https://groups.google.com/forum/?fromgroups#!topic/cython-users/0CYqw2cRFlg
>
> Some googling brought me to his github account where he fixed the thing
> but hasn't seemed to have submitted a pull request:
>
> https://github.com/rp-/cython/commit/4a4d5d9a800e1cd048798161a373fd775fb29d26
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cython/+bug/1000910/+subscriptions
>

Revision history for this message
David Hart (dhart) wrote :

I must have misread my cython version... 0.16 is bundled with Ubuntu 12.10.

I installed http://ftp.hk.debian.org/debian/pool/main/c/cython/cython_0.17.1-1_amd64.deb and no longer get this error (cogserver builds). Marking as fixed.

Changed in opencog:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.