0

I'm using Mac OS 10.9 trying to make a python script work. However for some reason each time I start the script from the terminal it causes XQuartz to start. The version of Python is 2.7.5. Whenever I quit XQuartz I get this message in the console:

XIO:  fatal IO error 35 (Resource temporarily unavailable) on X server "/tmp/launch-mumXCj/org.macosforge.xquartz:0"
      after 24 requests (23 known processed) with 0 events remaining.

I'm not exactly sure why. When I run my script (a very simple web server) in WingIDE it works perfectly, but not from the terminal.

This gist contains my code: Gist

Jeremy Huddleston Sequoia
  • 22,938
  • 5
  • 78
  • 86
claydiffrient
  • 1,296
  • 3
  • 19
  • 35
  • WingIDE already has XQuartz running, likely masking this from you. Your script apparently needs an X server running. – aruisdante Mar 18 '14 at 01:47

1 Answers1

0

So apparently, the shebang must be the first line. There can't be any comments before it which was causing the problem. With comments moved afterwards it works just fine.

claydiffrient
  • 1,296
  • 3
  • 19
  • 35