 Couldn't cast array of type string error with cast_column
MEMBER
Hi ! I wasn't able to reproduce the error, are you still experiencing this ? I tried calling `cast_column` on a string column containing paths.

If you manage to share a reproducible code example that would be perfect
2022-02-08T21:20:24Z
https://github.com/huggingface/datasets/issues/3668#issuecomment-1033072754
https://api.github.com/repos/huggingface/datasets/issues/3668
IC_kwDODunzps49k3By
https://api.github.com/repos/huggingface/datasets/issues/comments/1033072754/reactions
2022-02-08T21:20:24Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1033072754
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
Hi,

I think my team mate got this solved. Clolsing it for now and will reopen if I experience this again.
Thanks :) 
2022-02-09T07:07:42Z
https://github.com/huggingface/datasets/issues/3668#issuecomment-1033417540
https://api.github.com/repos/huggingface/datasets/issues/3668
IC_kwDODunzps49mLNE
https://api.github.com/repos/huggingface/datasets/issues/comments/1033417540/reactions
2022-02-09T07:07:42Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1033417540
https://avatars.githubusercontent.com/u/25264037?v=4
https://api.github.com/users/R4ZZ3/events{/privacy}
https://api.github.com/users/R4ZZ3/followers
https://api.github.com/users/R4ZZ3/following{/other_user}
https://api.github.com/users/R4ZZ3/gists{/gist_id}
https://github.com/R4ZZ3
R4ZZ3
MDQ6VXNlcjI1MjY0MDM3
https://api.github.com/users/R4ZZ3/orgs
https://api.github.com/users/R4ZZ3/received_events
https://api.github.com/users/R4ZZ3/repos
https://api.github.com/users/R4ZZ3/starred{/owner}{/repo}
https://api.github.com/users/R4ZZ3/subscriptions
User
https://api.github.com/users/R4ZZ3
public
NONE
Hi @R4ZZ3,

If it is not too much of a bother, can you please help me how to resolve this error? I am exactly getting the same error where I am going as per the documentation guideline:

`my_audio_dataset = my_audio_dataset.cast_column("audio_paths", Audio())`

where `"audio_paths"` is a dataset column (feature) having strings of absolute paths to mp3 files of the dataset.


2022-02-18T09:38:06Z
https://github.com/huggingface/datasets/issues/3668#issuecomment-1044222415
https://api.github.com/repos/huggingface/datasets/issues/3668
IC_kwDODunzps4-PZHP
https://api.github.com/repos/huggingface/datasets/issues/comments/1044222415/reactions
2022-02-18T09:38:06Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1044222415
https://avatars.githubusercontent.com/u/12482065?v=4
https://api.github.com/users/aasem/events{/privacy}
https://api.github.com/users/aasem/followers
https://api.github.com/users/aasem/following{/other_user}
https://api.github.com/users/aasem/gists{/gist_id}
https://github.com/aasem
aasem
MDQ6VXNlcjEyNDgyMDY1
https://api.github.com/users/aasem/orgs
https://api.github.com/users/aasem/received_events
https://api.github.com/users/aasem/repos
https://api.github.com/users/aasem/starred{/owner}{/repo}
https://api.github.com/users/aasem/subscriptions
User
https://api.github.com/users/aasem
public
CONTRIBUTOR
I was having the same issue with this code:

```
dataset = dataset.map(
    lambda batch: {"full_path" : os.path.join(self.data_path, batch["path"])},
    num_procs = 4
)
my_audio_dataset = dataset.cast_column("full_path", Audio(sampling_rate=16_000))
```

Removing the "num_procs" argument fixed it somehow.
Using a mac with m1 chip
2022-07-15T13:50:57Z
https://github.com/huggingface/datasets/issues/3668#issuecomment-1185567364
https://api.github.com/repos/huggingface/datasets/issues/3668
IC_kwDODunzps5GqlKE
https://api.github.com/repos/huggingface/datasets/issues/comments/1185567364/reactions
2022-07-15T13:50:57Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1185567364
https://avatars.githubusercontent.com/u/48770768?v=4
https://api.github.com/users/bruno-hays/events{/privacy}
https://api.github.com/users/bruno-hays/followers
https://api.github.com/users/bruno-hays/following{/other_user}
https://api.github.com/users/bruno-hays/gists{/gist_id}
https://github.com/bruno-hays
bruno-hays
MDQ6VXNlcjQ4NzcwNzY4
https://api.github.com/users/bruno-hays/orgs
https://api.github.com/users/bruno-hays/received_events
https://api.github.com/users/bruno-hays/repos
https://api.github.com/users/bruno-hays/starred{/owner}{/repo}
https://api.github.com/users/bruno-hays/subscriptions
User
https://api.github.com/users/bruno-hays
public
MEMBER
Hi @Hubert-Bonisseur, I think this will be fixed by https://github.com/huggingface/datasets/pull/4614
2022-07-18T12:45:53Z
https://github.com/huggingface/datasets/issues/3668#issuecomment-1187324676
https://api.github.com/repos/huggingface/datasets/issues/3668
IC_kwDODunzps5GxSME
https://api.github.com/repos/huggingface/datasets/issues/comments/1187324676/reactions
2022-07-18T12:45:53Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1187324676
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
## Describe the bug


In OVH cloud during Huggingface Robust-speech-recognition event on a AI training notebook instance using jupyter lab and running jupyter notebook When using the dataset.cast_column("audio",Audio(sampling_rate=16_000))
method I get error
![image](https://user-images.githubusercontent.com/25264037/152214027-9c42a71a-dd24-463c-a346-57e0287e5a8f.png)

This was working with datasets version 1.17.1.dev0
but now with version 1.18.3 produces the error above.

## Steps to reproduce the bug

load dataset:
![image](https://user-images.githubusercontent.com/25264037/152216145-159553b6-cddc-4f0b-8607-7e76b600e22a.png)


remove columns:
![image](https://user-images.githubusercontent.com/25264037/152214707-7c7e89d1-87d8-4b4f-8cfc-5d7223d35644.png)

run my fix_path function.
This also creates the audio column that is referring to the absolute file path of the audio

![image](https://user-images.githubusercontent.com/25264037/152214773-51f71ccf-d31b-4449-b63a-1af56436e49f.png)

Then I concatenate few other datasets and finally try the cast_column method
![image](https://user-images.githubusercontent.com/25264037/152215032-f341ec86-9d6d-48c9-943b-e2efe37a4d98.png)

but get error:
![image](https://user-images.githubusercontent.com/25264037/152215073-b85bd057-98e8-413c-9b05-51e9805f2c24.png)




## Expected results
A clear and concise description of the expected results.

## Actual results
Specify the actual results or traceback.

## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: 
OVH Cloud, AI Training section, container for Huggingface Robust Speech Recognition event image(baaastijn/ovh_huggingface)
![image](https://user-images.githubusercontent.com/25264037/152215161-b4ff7bfb-2736-4afb-9223-761a3338d23c.png)

- Python version: 3.8.8
- PyArrow version:
![image](https://user-images.githubusercontent.com/25264037/152215936-4d365760-557e-456b-b5eb-ad1d15cf5073.png)

