Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3872376
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:55:08+00:00 2026-05-19T21:55:08+00:00

I was starting to play with cython on my windows xp machine configured with

  • 0

I was starting to play with cython on my windows xp machine configured with Python 2.6. I tried to run the simple example on the Cython site but the conversion of the example .pyx file is immediately failing with a confusing error.

The .pyx file is

def say_hello_to(name):
   print("Hello, %s" % name)

setup.py looks like

from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

ext_modules = [Extension("hello", ["hello.pyx"])]

setup(
   name = 'Hello world app',
   cmdclass = {'build_ext': build_ext},
   ext_modules = ext_modules
)

In a command window, I execute the command

python setup.py build_ext --inplace

Note that all this is exactly what the webpage says to do.

As a result, I get the following output:

Error converting Pyrex file to C:
--------------------------------------------------------
...
def say_hello_to(name):
                      ^
--------------------------------------------------------

The error message says “Unrecognized characters”.

I attempt the same example on a linux box and it works fine.

What is the problem here and why is a colon flagged as being unrecognizable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T21:55:09+00:00Added an answer on May 19, 2026 at 9:55 pm

    (Reposting as an answer because it apparently solved the problem)

    Just a guess, but could it be having trouble with line endings? E.g. if the file has Unix '\n' line endings, but on Windows it’s expecting Windows '\r\n' line endings?

    OK, so it was the other way round. It expects '\n' line endings, and the editor converted them to '\r\n'.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have never really done much C but am starting to play around with
I'm starting to play around with hadoop(but don't have access to a cluster yet
I'm starting to play with Heroku to deploy a simple Node.js in their free
I'm starting to play with arrays, but i'm stuck with something that seems yet
I'm starting to play with the windows phone 7 panorama control. I looked at
I'm just starting to play around with Python (VBA background). Why does this dictionary
I want to run some code on starting a Play Application. This does not
I am starting my Play 2.0.4 project using the play console and ~run It
I'm just starting to play with Python C extensions and am curious as to
Just starting to play around with Flask on a local server and I'm noticing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.