celery / celery

Distributed Task Queue (development branch)
https://docs.celeryq.dev
Other
24.79k stars 4.67k forks source link

Python 3.3 compatibility issue #1729

Closed extesy closed 10 years ago

extesy commented 10 years ago

Windows 7 x64, python 3.3, running celery events:

Traceback (most recent call last):
  File "D:\Projects\Web\stuff\backend\Scripts\celery-script.py", line 9, in <module>
    load_entry_point('celery==3.1.6', 'console_scripts', 'celery')()
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\__main__.py", line 29, in main
    main()
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py", line 80, in main
    cmd.execute_from_commandline(argv)
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py", line 725, in execute_from_commandline
    super(CeleryCommand, self).execute_from_commandline(argv)))
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\base.py", line 300, in execute_from_commandline
    return self.handle_argv(self.prog_name, argv[1:])
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py", line 717, in handle_argv
    return self.execute(command, argv)
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py", line 671, in execute
    ).run_from_argv(self.prog_name, argv[1:], command=argv[0])
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\base.py", line 304, in run_from_argv
    sys.argv if argv is None else argv, command)
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\base.py", line 338, in handle_argv
    return self(*args, **options)
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\base.py", line 263, in __call__
    ret = self.run(*args, **kwargs)
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\events.py", line 87, in run
    return self.run_evtop()
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\events.py", line 95, in run_evtop
    from celery.events.cursesmon import evtop
  File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\events\cursesmon.py", line 11, in <module>
    import curses
  File "D:\Dev\Python3\lib\curses\__init__.py", line 13, in <module>
    from _curses import *
ImportError: No module named '_curses'
ask commented 10 years ago

The celery events monitor isn't supported on Windows as win does not support curses. I believe there are ways to get curses for Windows, e.g. PDCurses[1], or Cygwin[2]

[1] http://gnuwin32.sourceforge.net/packages/pdcurses.htm [2] http://www.cygwin.com