Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: cannot serialize '_io.TextIOWrapper' object / EOFError: Ran out of input #99

Open
sean29 opened this issue Aug 1, 2017 · 4 comments

Comments

@sean29
Copy link

sean29 commented Aug 1, 2017

getting this error,
File "c:\users\user\appdata\local\programs\python\python36-32\Lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot serialize '_io.TextIOWrapper' object

File "c:\users\user\appdata\local\programs\python\python36-32\Lib\multiprocessing\spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
EOFError: Ran out of input

@chrisspen
Copy link
Owner

Which version of Chroniker and Django are you using?

@sean29
Copy link
Author

sean29 commented Aug 1, 2017

Django==1.11.4
django-chroniker==1.0.8

on Windows, trying it on Linux now...

@sean29
Copy link
Author

sean29 commented Aug 2, 2017

It works on Linux.

@jtzgyw
Copy link

jtzgyw commented May 13, 2021

me too. It not works on Win10

Traceback (most recent call last):
  File ".\manage.py", line 21, in <module>
    main()
  File ".\manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "E:\Projects\CnbSite\.env\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "E:\Projects\CnbSite\.env\lib\site-packages\django\core\management\__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "E:\Projects\CnbSite\.env\lib\site-packages\django\core\management\base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "E:\Projects\CnbSite\.env\lib\site-packages\django\core\management\base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "E:\Projects\CnbSite\.env\lib\site-packages\chroniker\management\commands\cron.py", line 334, in handle
    sync=options['sync'],
  File "E:\Projects\CnbSite\.env\lib\site-packages\chroniker\management\commands\cron.py", line 212, in run_cron
    proc.start()
  File "E:\Projects\CnbSite\.env\lib\site-packages\chroniker\utils.py", line 431, in start
    super().start(*args, **kwargs)
  File "D:\Program Files\Python36\lib\multiprocessing\process.py", line 105, in start
    self._popen = self._Popen(self)
  File "D:\Program Files\Python36\lib\multiprocessing\context.py", line 223, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "D:\Program Files\Python36\lib\multiprocessing\context.py", line 322, in _Popen
    return Popen(process_obj)
  File "D:\Program Files\Python36\lib\multiprocessing\popen_spawn_win32.py", line 65, in __init__
    reduction.dump(process_obj, to_child)
  File "D:\Program Files\Python36\lib\multiprocessing\reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
TypeError: cannot serialize '_io.TextIOWrapper' object
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Program Files\Python36\lib\multiprocessing\spawn.py", line 105, in spawn_main
    exitcode = _main(fd)
  File "D:\Program Files\Python36\lib\multiprocessing\spawn.py", line 115, in _main
    self = reduction.pickle.load(from_parent)
EOFError: Ran out of input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants