pyinstaller : OSError: could not get source code
NONE
more information：
``` 
File "text2vec\__init__.py", line 8, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "text2vec\bertmatching_model.py", line 19, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "text2vec\bertmatching_dataset.py", line 7, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "datasets\__init__.py", line 52, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "datasets\inspect.py", line 30, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "datasets\load.py", line 58, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "datasets\packaged_modules\__init__.py", line 31, in <module>
File "inspect.py", line 1147, in getsource
File "inspect.py", line 1129, in getsourcelines
File "inspect.py", line 958, in findsource
OSError: could not get source code
```

2023-10-17T01:44:03Z
https://github.com/huggingface/datasets/issues/6306#issuecomment-1765522374
https://api.github.com/repos/huggingface/datasets/issues/6306
IC_kwDODunzps5pO7vG
https://api.github.com/repos/huggingface/datasets/issues/comments/1765522374/reactions
2023-10-17T01:44:03Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1765522374
https://avatars.githubusercontent.com/u/57702070?v=4
https://api.github.com/users/dusk877647949/events{/privacy}
https://api.github.com/users/dusk877647949/followers
https://api.github.com/users/dusk877647949/following{/other_user}
https://api.github.com/users/dusk877647949/gists{/gist_id}
https://github.com/dusk877647949
dusk877647949
MDQ6VXNlcjU3NzAyMDcw
https://api.github.com/users/dusk877647949/orgs
https://api.github.com/users/dusk877647949/received_events
https://api.github.com/users/dusk877647949/repos
https://api.github.com/users/dusk877647949/starred{/owner}{/repo}
https://api.github.com/users/dusk877647949/subscriptions
User
https://api.github.com/users/dusk877647949
public
COLLABORATOR
Can you share a reproducer? I haven't been able to reproduce the error myself.
2023-10-17T20:04:42Z
https://github.com/huggingface/datasets/issues/6306#issuecomment-1767087168
https://api.github.com/repos/huggingface/datasets/issues/6306
IC_kwDODunzps5pU5xA
https://api.github.com/repos/huggingface/datasets/issues/comments/1767087168/reactions
2023-10-17T20:04:42Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1767087168
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
NONE
> '

thanks,I solve it.it's about pyinstaller.
2023-10-18T14:03:38Z
https://github.com/huggingface/datasets/issues/6306#issuecomment-1768533513
https://api.github.com/repos/huggingface/datasets/issues/6306
IC_kwDODunzps5paa4J
https://api.github.com/repos/huggingface/datasets/issues/comments/1768533513/reactions
2023-10-18T14:03:38Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1768533513
https://avatars.githubusercontent.com/u/57702070?v=4
https://api.github.com/users/dusk877647949/events{/privacy}
https://api.github.com/users/dusk877647949/followers
https://api.github.com/users/dusk877647949/following{/other_user}
https://api.github.com/users/dusk877647949/gists{/gist_id}
https://github.com/dusk877647949
dusk877647949
MDQ6VXNlcjU3NzAyMDcw
https://api.github.com/users/dusk877647949/orgs
https://api.github.com/users/dusk877647949/received_events
https://api.github.com/users/dusk877647949/repos
https://api.github.com/users/dusk877647949/starred{/owner}{/repo}
https://api.github.com/users/dusk877647949/subscriptions
User
https://api.github.com/users/dusk877647949
public
NONE
1
2023-10-18T14:03:43Z
https://github.com/huggingface/datasets/issues/6306#issuecomment-1768533639
https://api.github.com/repos/huggingface/datasets/issues/6306
IC_kwDODunzps5paa6H
https://api.github.com/repos/huggingface/datasets/issues/comments/1768533639/reactions
2023-10-18T14:03:43Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1768533639
https://avatars.githubusercontent.com/u/57702070?v=4
https://api.github.com/users/dusk877647949/events{/privacy}
https://api.github.com/users/dusk877647949/followers
https://api.github.com/users/dusk877647949/following{/other_user}
https://api.github.com/users/dusk877647949/gists{/gist_id}
https://github.com/dusk877647949
dusk877647949
MDQ6VXNlcjU3NzAyMDcw
https://api.github.com/users/dusk877647949/orgs
https://api.github.com/users/dusk877647949/received_events
https://api.github.com/users/dusk877647949/repos
https://api.github.com/users/dusk877647949/starred{/owner}{/repo}
https://api.github.com/users/dusk877647949/subscriptions
User
https://api.github.com/users/dusk877647949
public
NONE
> > '
> 
> thanks,I solve it.it's about pyinstaller.

I encountered the same error, how to solve it?
2023-11-02T07:24:51Z
https://github.com/huggingface/datasets/issues/6306#issuecomment-1790201304
https://api.github.com/repos/huggingface/datasets/issues/6306
IC_kwDODunzps5qtE3Y
https://api.github.com/repos/huggingface/datasets/issues/comments/1790201304/reactions
2023-11-02T07:24:51Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1790201304
https://avatars.githubusercontent.com/u/36871224?v=4
https://api.github.com/users/WicresoftGitHub/events{/privacy}
https://api.github.com/users/WicresoftGitHub/followers
https://api.github.com/users/WicresoftGitHub/following{/other_user}
https://api.github.com/users/WicresoftGitHub/gists{/gist_id}
https://github.com/WicresoftGitHub
WicresoftGitHub
MDQ6VXNlcjM2ODcxMjI0
https://api.github.com/users/WicresoftGitHub/orgs
https://api.github.com/users/WicresoftGitHub/received_events
https://api.github.com/users/WicresoftGitHub/repos
https://api.github.com/users/WicresoftGitHub/starred{/owner}{/repo}
https://api.github.com/users/WicresoftGitHub/subscriptions
User
https://api.github.com/users/WicresoftGitHub
public
### Describe the bug

I ran a package with pyinstaller and got the following error：



### Steps to reproduce the bug

```  
  ...
  File "datasets\__init__.py", line 52, in <module>
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
  File "datasets\inspect.py", line 30, in <module>
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
  File "datasets\load.py", line 58, in <module>
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
  File "datasets\packaged_modules\__init__.py", line 31, in <module>
  File "inspect.py", line 1147, in getsource
  File "inspect.py", line 1129, in getsourcelines
  File "inspect.py", line 958, in findsource
OSError: could not get source code
```

### Expected behavior

I have looked up the relevant information, but I can't find a suitable reason

### Environment info

```python
python 3.10
datasets 2.14.4
pyinstaller 5.6.2
```