Python3.4 + cython: import time error

0 views
Skip to first unread message

Antonio

unread,
May 28, 2015, 6:10:48 PM5/28/15
to co...@continuum.io
Hi all,

I'm getting the following error when importing a package that has cython extensions:

C:\Users\laser2002j\Anaconda\envs\py3\lib\site-packages\fretbursts-0.4_dirty-py3.4-win-amd64.egg\fretbursts\burstsearch\burstsearchlib.py in <module>()
    202
    203 try:
--> 204     from burstsearchlib_c import bsearch_c
    205     bsearch = bsearch_c
    206     print(" - Optimized (cython) burst search loaded.")

stringsource in init burstsearchlib_c (fretbursts/burstsearch\burstsearchlib_c.c:16941)()

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 1: invalid start byte

The package is built in a python 3.4 conda environment using mingw (i.e. with libpython installed) and building the package gives no errors. The same package builds and runs correctly in a python2 environment.

Any ideas how to solve this?

Thank you,
Antonio
Reply all
Reply to author
Forward
0 new messages