TypeError: Receiver() takes no arguments
MEMBER
Which version of Apache Beam do you have (can you copy your full environment info here)?
2020-08-19T09:43:20Z
https://github.com/huggingface/datasets/issues/508#issuecomment-676046899
https://api.github.com/repos/huggingface/datasets/issues/508
MDEyOklzc3VlQ29tbWVudDY3NjA0Njg5OQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/676046899/reactions
2020-08-19T09:43:20Z
https://api.github.com/repos/huggingface/datasets/issues/comments/676046899
https://avatars.githubusercontent.com/u/7353373?v=4
https://api.github.com/users/thomwolf/events{/privacy}
https://api.github.com/users/thomwolf/followers
https://api.github.com/users/thomwolf/following{/other_user}
https://api.github.com/users/thomwolf/gists{/gist_id}
https://github.com/thomwolf
thomwolf
MDQ6VXNlcjczNTMzNzM=
https://api.github.com/users/thomwolf/orgs
https://api.github.com/users/thomwolf/received_events
https://api.github.com/users/thomwolf/repos
https://api.github.com/users/thomwolf/starred{/owner}{/repo}
https://api.github.com/users/thomwolf/subscriptions
User
https://api.github.com/users/thomwolf
public
NONE
apache-beam==2.23.0
nlp==0.4.0

For me this was resolved by running the same python script on Linux (or really WSL). 
2020-08-22T15:58:12Z
https://github.com/huggingface/datasets/issues/508#issuecomment-678657673
https://api.github.com/repos/huggingface/datasets/issues/508
MDEyOklzc3VlQ29tbWVudDY3ODY1NzY3Mw==
https://api.github.com/repos/huggingface/datasets/issues/comments/678657673/reactions
2020-08-22T15:58:12Z
https://api.github.com/repos/huggingface/datasets/issues/comments/678657673
https://avatars.githubusercontent.com/u/1225851?v=4
https://api.github.com/users/sebastiantomac/events{/privacy}
https://api.github.com/users/sebastiantomac/followers
https://api.github.com/users/sebastiantomac/following{/other_user}
https://api.github.com/users/sebastiantomac/gists{/gist_id}
https://github.com/sebastiantomac
sebastiantomac
MDQ6VXNlcjEyMjU4NTE=
https://api.github.com/users/sebastiantomac/orgs
https://api.github.com/users/sebastiantomac/received_events
https://api.github.com/users/sebastiantomac/repos
https://api.github.com/users/sebastiantomac/starred{/owner}{/repo}
https://api.github.com/users/sebastiantomac/subscriptions
User
https://api.github.com/users/sebastiantomac
public
MEMBER
Do you manage to run a dummy beam pipeline with python on windows ? 
You can test a dummy pipeline with [this code](https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/wordcount_minimal.py)

If you get the same error, it means that the issue comes from apache beam.
Otherwise we'll investigate what went wrong here
2020-08-31T15:40:54Z
https://github.com/huggingface/datasets/issues/508#issuecomment-683858662
https://api.github.com/repos/huggingface/datasets/issues/508
MDEyOklzc3VlQ29tbWVudDY4Mzg1ODY2Mg==
https://api.github.com/repos/huggingface/datasets/issues/comments/683858662/reactions
2020-08-31T15:43:43Z
https://api.github.com/repos/huggingface/datasets/issues/comments/683858662
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Still, same error, so I guess it is on apache beam then. 
Thanks for the investigation.
2020-09-01T14:49:03Z
https://github.com/huggingface/datasets/issues/508#issuecomment-684910447
https://api.github.com/repos/huggingface/datasets/issues/508
MDEyOklzc3VlQ29tbWVudDY4NDkxMDQ0Nw==
https://api.github.com/repos/huggingface/datasets/issues/comments/684910447/reactions
2020-09-01T14:49:03Z
https://api.github.com/repos/huggingface/datasets/issues/comments/684910447
https://avatars.githubusercontent.com/u/1225851?v=4
https://api.github.com/users/sebastiantomac/events{/privacy}
https://api.github.com/users/sebastiantomac/followers
https://api.github.com/users/sebastiantomac/following{/other_user}
https://api.github.com/users/sebastiantomac/gists{/gist_id}
https://github.com/sebastiantomac
sebastiantomac
MDQ6VXNlcjEyMjU4NTE=
https://api.github.com/users/sebastiantomac/orgs
https://api.github.com/users/sebastiantomac/received_events
https://api.github.com/users/sebastiantomac/repos
https://api.github.com/users/sebastiantomac/starred{/owner}{/repo}
https://api.github.com/users/sebastiantomac/subscriptions
User
https://api.github.com/users/sebastiantomac
public
MEMBER
Thanks for trying
Let us know if you find clues of what caused this issue, or if you find a fix
2020-09-01T14:53:33Z
https://github.com/huggingface/datasets/issues/508#issuecomment-684913830
https://api.github.com/repos/huggingface/datasets/issues/508
MDEyOklzc3VlQ29tbWVudDY4NDkxMzgzMA==
https://api.github.com/repos/huggingface/datasets/issues/comments/684913830/reactions
2020-09-01T14:53:33Z
https://api.github.com/repos/huggingface/datasets/issues/comments/684913830
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
I am trying to load a wikipedia data set

```
import nlp
from nlp import load_dataset

dataset = load_dataset("wikipedia", "20200501.en", split="train", cache_dir=data_path, beam_runner='DirectRunner')
#dataset = load_dataset('wikipedia', '20200501.sv', cache_dir=data_path, beam_runner='DirectRunner')
```

This fails in the apache beam runner. 

```
Traceback (most recent call last):
  File "D:/ML/wikiembedding/gpt2_sv.py", line 36, in <module>
    dataset = load_dataset("wikipedia", "20200501.en", split="train", cache_dir=my_cache_dir, beam_runner='DirectRunner')
  File "C:\Users\seto\AppData\Local\Programs\Python\Python38\lib\site-packages\nlp\load.py", line 548, in load_dataset
    builder_instance.download_and_prepare(
  File "C:\Users\seto\AppData\Local\Programs\Python\Python38\lib\site-packages\nlp\builder.py", line 462, in download_and_prepare
    self._download_and_prepare(
  File "C:\Users\seto\AppData\Local\Programs\Python\Python38\lib\site-packages\nlp\builder.py", line 969, in _download_and_prepare
    pipeline_results = pipeline.run()
  File "C:\Users\seto\AppData\Local\Programs\Python\Python38\lib\site-packages\apache_beam\pipeline.py", line 534, in run
    return self.runner.run_pipeline(self, self._options)
....
  File "C:\Users\seto\AppData\Local\Programs\Python\Python38\lib\site-packages\apache_beam\runners\worker\bundle_processor.py", line 218, in process_encoded
    self.output(decoded_value)
  File "C:\Users\seto\AppData\Local\Programs\Python\Python38\lib\site-packages\apache_beam\runners\worker\operations.py", line 332, in output
    cython.cast(Receiver, self.receivers[output_index]).receive(windowed_value)
  File "C:\Users\seto\AppData\Local\Programs\Python\Python38\lib\site-packages\Cython\Shadow.py", line 167, in cast
    return type(*args)
TypeError: Receiver() takes no arguments

```

This is run on a Windows 10 machine with python 3.8. I get the same error loading the swedish wikipedia dump.