paragraph-vectors icon indicating copy to clipboard operation
paragraph-vectors copied to clipboard

TypeError in data.py - process.start()

Open deborshigoswami95 opened this issue 5 years ago • 12 comments

PyTorch and CUDA versions

pytorch - 0.4.1 CUDA - 9.0

Description

I am having an issue with data.py. on line 119, process.start() yields the following error:
TypeError: 'generator' object is not callable. Could you please help?

deborshigoswami95 avatar Mar 29 '19 00:03 deborshigoswami95

Hey @deborshigoswami95, could you please append the stack trace? Thanks.

inejc avatar Mar 29 '19 07:03 inejc

Hi @inejc , Thanks for the quick response. I've copied the trace below. Also, I should mention, I am on a windows system.

Stack Trace

Traceback (most recent call last): File "train.py", line 216, in fire.Fire() File "C:\Users\user\Anaconda3\lib\site-packages\fire\core.py", line 127, in Fire component_trace = _Fire(component, args, context, name) File "C:\Users\user\Anaconda3\lib\site-packages\fire\core.py", line 366, in _Fire component, remaining_args) File "C:\Users\user\Anaconda3\lib\site-packages\fire\core.py", line 542, in _CallCallable result = fn(*varargs, **kwargs) File "train.py", line 103, in start nce_data.start() File "C:\Users\user....\paragraph-vectors\paragraphvec\data.py", line 119, in start process.start() File "C:\Users\user\Anaconda3\lib\multiprocessing\process.py", line 105, in start self._popen = self._Popen(self) File "C:\Users\user\Anaconda3\lib\multiprocessing\context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "C:\Users\user\Anaconda3\lib\multiprocessing\context.py", line 322, in _Popen return Popen(process_obj) File "C:\Users\user\Anaconda3\lib\multiprocessing\popen_spawn_win32.py", line 65, in init reduction.dump(process_obj, to_child) File "C:\Users\user\Anaconda3\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) TypeError: 'generator' object is not callable

deborshigoswami95 avatar Mar 29 '19 19:03 deborshigoswami95

Sorry for the late reply. Would it be possible for you to run this in docker (in a Linux env) to confirm that there is a problem with your Windows installation?

inejc avatar Apr 08 '19 20:04 inejc

Hi. Am trying to install docker on windows 10 home. Will let you know after I test the code.

deborshigoswami95 avatar Apr 09 '19 18:04 deborshigoswami95

Hi @deborshigoswami95 , was this issue fixed? If not, how did you circumvent this problem?

nnakshat avatar Aug 12 '20 22:08 nnakshat

Hi, this is still a persistent issue, can somebody who solved this, please provide a solution?

shreyansh26 avatar Sep 05 '20 05:09 shreyansh26

What python version are you using on what OS platform?

inejc avatar Sep 06 '20 12:09 inejc

What python version are you using on what OS platform?

Hello, I am facing the same issue. I am running Python 3.8.5 on Windows 10. Pytorch version 1.5.1. Thanks!

inastasi avatar Oct 12 '20 10:10 inastasi

I got the same error (with same stack trace as @deborshigoswami95) on Windows today.

Are there any updates about the issue? Is this paragraph-vectors repo not compatible with Windows?

ceyhunemreozturk avatar Apr 02 '22 13:04 ceyhunemreozturk

Hi, I have got the same error. Does this issue be resolved?

I run the code on Google Colab without receiving this error. But, when I try it on my own computer the error occurs.

navidaftabi avatar Apr 16 '22 11:04 navidaftabi

I haven't tested this on Windows unfortunately, if anyone is interested in fixing it a PR would be welcome

inejc avatar Apr 19 '22 19:04 inejc

I have tested this project in windows , I am very interested in your field of deep learning by pytorch and Doc2vec I am running Python 3.10. On Windows 10. My problem is in data.py Is it possible to use the dataset file in Pickle format instead of the text file in CSV format?

Thanks!

Eng-sarah90 avatar Jun 24 '22 16:06 Eng-sarah90