On Thu, Jun 13, 2013 at 2:45 PM, clinton bowen <[email protected]> wrote:
> I also got this error this afternoon:
>
>
> $ sage -b
> Forcing sage-location, probably because a new package was installed.
> Updating various hardcoded paths...
> (Please wait at most a few minutes.)
> DO NOT INTERRUPT THIS.
> Done updating paths.
>
> ----------------------------------------------------------
> sage: Building and installing modified Sage library files.
>
>
> Installing c_lib
> g++ -o libcsage.so -shared src/convert.os src/interrupt.os src/memory.os
> src/mpn_pylong.os src/mpz_pylong.os src/mpz_longlong.os src/stdsage.os
> src/gmp_globals.os src/ZZ_pylong.os src/ntl_wrap.os
> -L/home/clinton/sage/local/lib
> -L/home/clinton/sage/local/lib/python2.7/config -lntl -lpari -lgmp
> -lpython2.7
> Updating Cython code....
> Compiling sage/numerical/backends/coin_backend.pyx because it changed.
> Cythonizing sage/numerical/backends/coin_backend.pyx
>
> Error compiling Cython file:
> ------------------------------------------------------------
> ...
>             if self.prob_name != None:
>                 return self.prob_name
>             else:
>                 return ""
>         else:
>             self.prob_name = name

A hack is to manually change this line to

self.prob_name = str(name)

in SAGE_ROOT/devel/sage/sage/numerical/backends/coin_backend.pyx

then type "sage -br".... which is exactly the patch Nathann mentions.

>                                 ^
> ------------------------------------------------------------
>
> sage/numerical/backends/coin_backend.pyx:1090:33: default encoding required
> for conversion from 'char *' to 'str object'
> Traceback (most recent call last):
>   File "setup.py", line 531, in <module>
>     force=force)
>   File
> "/home/clinton/sage/local/lib/python2.7/site-packages/Cython/Build/Dependencies.py",
> line 707, in cythonize
>     pool.map(cythonize_one_helper, to_compile)
>   File "/home/clinton/sage/local/lib/python/multiprocessing/pool.py", line
> 227, in map
>     return self.map_async(func, iterable, chunksize).get()
>   File "/home/clinton/sage/local/lib/python/multiprocessing/pool.py", line
> 528, in get
>     raise self._value
> Cython.Compiler.Errors.CompileError:
> sage/numerical/backends/coin_backend.pyx
> Error installing modified sage library code.
>
> On Wednesday, May 8, 2013 6:42:27 AM UTC-7, Peter Mueller wrote:
>>
>> installing and compiling the optional package cbc-2.7.5 in sage version
>> 5.9 on a 64 bit ubuntu system yields the following error:
>>
>> {
>> Error compiling Cython file:
>> ------------------------------------------------------------
>> ...
>>             if self.prob_name != None:
>>                 return self.prob_name
>>             else:
>>                 return ""
>>         else:
>>             self.prob_name = name
>>                                 ^
>> ------------------------------------------------------------
>>
>> sage/numerical/backends/coin_backend.pyx:1090:33: default encoding
>> required for conversion from 'char *' to 'str object'
>> Traceback (most recent call last):
>>   File "setup.py", line 531, in <module>
>>     force=force)
>>   File
>> "/home/mueller/local/sage-5.9/local/lib/python2.7/site-packages/Cython/Build/Dependencies.py",
>> line 707, in cythonize
>>     pool.map(cythonize_one_helper, to_compile)
>>   File
>> "/home/mueller/local/sage-5.9/local/lib/python/multiprocessing/pool.py",
>> line 227, in map
>>     return self.map_async(func, iterable, chunksize).get()
>>   File
>> "/home/mueller/local/sage-5.9/local/lib/python/multiprocessing/pool.py",
>> line 528, in get
>>     raise self._value
>> Cython.Compiler.Errors.CompileError:
>> sage/numerical/backends/coin_backend.pyx
>> Error installing modified sage library code.
>> [wma7104]/home/mueller/local/sage-5.9> ./sage -optional
>> Using SAGE Server http://www.sagemath.org/packages
>> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sage-support.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to