- Saved searches
- Use saved searches to filter your results more quickly
- Python 3.5.2 @ TypeError: invalid file: PosixPath #7
- Python 3.5.2 @ TypeError: invalid file: PosixPath #7
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- TypeError: invalid file: #21
- TypeError: invalid file: #21
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Python 3.5.2 @ TypeError: invalid file: PosixPath #7
- Python 3.5.2 @ TypeError: invalid file: PosixPath #7
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- TypeError: invalid file: #21
- TypeError: invalid file: #21
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- I keep getting TypeError: Invalid file: WindowsPath #235
- I keep getting TypeError: Invalid file: WindowsPath #235
- Comments
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Python 3.5.2 @ TypeError: invalid file: PosixPath #7
Python 3.5.2 @ TypeError: invalid file: PosixPath #7
Comments
I get following error message in Python 3.5.2 when i am trying to download a video:
$ python3 twitter-dl.py -d https://twitter.com/klara_sjo/status/1205228036225949696?s=20
[Debug] [Tweet URL] https://twitter.com/klara_sjo/status/1205228036225949696
[Debug] [Video Player Body]
[Debug] [JS File Body]
[Debug] [Bearer Token] Bearer AAAAAAAAAAAAAAAAAAAAAIK1zgAAAAAA2tUWuhGZ2JceoId5GwYWU5GspY4%3DUq7gzFoCZs1QfwGoVdvSac3IniczZEYXIcDyumCauIXpcAPorE
[Debug] [Player Config JSON]
[Debug] [M3U8 Response]
[+] Multiple resolutions found. Slurping all resolutions.
[+] Downloading 320×320
Traceback (most recent call last):
File «twitter-dl.py», line 200, in
twitter_dl.download()
File «twitter-dl.py», line 94, in download
with open(f, ‘rb’) as fd:
TypeError: invalid file: PosixPath(‘output/klara_sjo/1205228036225949696/xgSZf0Zyxmgc1zI0.ts’)
The text was updated successfully, but these errors were encountered:
I just got this error. Looking around, I see this SO about it that suggests wrapping the result in a str cast.
I did what was suggested and I’m not getting this error anymore (though now I’m running into another error). Here’s a diff:
@@ -96,7 +96,8 @@ class TwitterDownloader: # Shamelessly taken from https://stackoverflow.com/questions/13613336/python-concatenate-text-files/27077437#27077437 with open(str(ts_full_file), 'wb') as wfd: for f in ts_list: - with open(f, 'rb') as fd: + #with open(f, 'rb') as fd: + with open(str(f), 'rb') as fd: shutil.copyfileobj(fd, wfd, 1024 * 1024 * 10)
Here’s some more information:
$ python3 --version Python 3.5.2
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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: invalid file: #21
TypeError: invalid file: #21
Comments
I get this error on a fairly stock fedora box.
>>> pendulum.now() Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.5/site-packages/pendulum/pendulum.py", line 270, in now return cls.instance(dt, tz) File "/usr/lib64/python3.5/site-packages/pendulum/pendulum.py", line 205, in instance tzinfo=tz File "/usr/lib64/python3.5/site-packages/pendulum/pendulum.py", line 180, in __init__ self._tz = self._safe_create_datetime_zone(tzinfo) File "/usr/lib64/python3.5/site-packages/pendulum/pendulum.py", line 111, in _safe_create_datetime_zone return cls._local_timezone() File "/usr/lib64/python3.5/site-packages/pendulum/pendulum.py", line 130, in _local_timezone return local_timezone() File "/usr/lib64/python3.5/site-packages/pendulum/tz/__init__.py", line 25, in local_timezone return LocalTimezone.get() File "/usr/lib64/python3.5/site-packages/pendulum/tz/local_timezone.py", line 19, in get name = cls.get_local_tz_name() File "/usr/lib64/python3.5/site-packages/pendulum/tz/local_timezone.py", line 36, in get_local_tz_name return getattr(cls, 'get_tz_name_for_<>'.format(os))() File "/usr/lib64/python3.5/site-packages/pendulum/tz/local_timezone.py", line 145, in get_tz_name_for_unix return Timezone('', *Parser.parse(tzfile)) File "/usr/lib64/python3.5/site-packages/pendulum/tz/parser.py", line 27, in parse with open(filepath, 'rb') as fp: TypeError: invalid file:
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Python 3.5.2 @ TypeError: invalid file: PosixPath #7
Python 3.5.2 @ TypeError: invalid file: PosixPath #7
Comments
I get following error message in Python 3.5.2 when i am trying to download a video:
$ python3 twitter-dl.py -d https://twitter.com/klara_sjo/status/1205228036225949696?s=20
[Debug] [Tweet URL] https://twitter.com/klara_sjo/status/1205228036225949696
[Debug] [Video Player Body]
[Debug] [JS File Body]
[Debug] [Bearer Token] Bearer AAAAAAAAAAAAAAAAAAAAAIK1zgAAAAAA2tUWuhGZ2JceoId5GwYWU5GspY4%3DUq7gzFoCZs1QfwGoVdvSac3IniczZEYXIcDyumCauIXpcAPorE
[Debug] [Player Config JSON]
[Debug] [M3U8 Response]
[+] Multiple resolutions found. Slurping all resolutions.
[+] Downloading 320×320
Traceback (most recent call last):
File «twitter-dl.py», line 200, in
twitter_dl.download()
File «twitter-dl.py», line 94, in download
with open(f, ‘rb’) as fd:
TypeError: invalid file: PosixPath(‘output/klara_sjo/1205228036225949696/xgSZf0Zyxmgc1zI0.ts’)
The text was updated successfully, but these errors were encountered:
I just got this error. Looking around, I see this SO about it that suggests wrapping the result in a str cast.
I did what was suggested and I’m not getting this error anymore (though now I’m running into another error). Here’s a diff:
@@ -96,7 +96,8 @@ class TwitterDownloader: # Shamelessly taken from https://stackoverflow.com/questions/13613336/python-concatenate-text-files/27077437#27077437 with open(str(ts_full_file), 'wb') as wfd: for f in ts_list: - with open(f, 'rb') as fd: + #with open(f, 'rb') as fd: + with open(str(f), 'rb') as fd: shutil.copyfileobj(fd, wfd, 1024 * 1024 * 10)
Here’s some more information:
$ python3 --version Python 3.5.2
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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: invalid file: #21
TypeError: invalid file: #21
Comments
I get this error on a fairly stock fedora box.
>>> pendulum.now() Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.5/site-packages/pendulum/pendulum.py", line 270, in now return cls.instance(dt, tz) File "/usr/lib64/python3.5/site-packages/pendulum/pendulum.py", line 205, in instance tzinfo=tz File "/usr/lib64/python3.5/site-packages/pendulum/pendulum.py", line 180, in __init__ self._tz = self._safe_create_datetime_zone(tzinfo) File "/usr/lib64/python3.5/site-packages/pendulum/pendulum.py", line 111, in _safe_create_datetime_zone return cls._local_timezone() File "/usr/lib64/python3.5/site-packages/pendulum/pendulum.py", line 130, in _local_timezone return local_timezone() File "/usr/lib64/python3.5/site-packages/pendulum/tz/__init__.py", line 25, in local_timezone return LocalTimezone.get() File "/usr/lib64/python3.5/site-packages/pendulum/tz/local_timezone.py", line 19, in get name = cls.get_local_tz_name() File "/usr/lib64/python3.5/site-packages/pendulum/tz/local_timezone.py", line 36, in get_local_tz_name return getattr(cls, 'get_tz_name_for_<>'.format(os))() File "/usr/lib64/python3.5/site-packages/pendulum/tz/local_timezone.py", line 145, in get_tz_name_for_unix return Timezone('', *Parser.parse(tzfile)) File "/usr/lib64/python3.5/site-packages/pendulum/tz/parser.py", line 27, in parse with open(filepath, 'rb') as fp: TypeError: invalid file:
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
I keep getting TypeError: Invalid file: WindowsPath #235
I keep getting TypeError: Invalid file: WindowsPath #235
Comments
Hi guys I keep getting this error when running python demo_toolbox.py
Exception: Invalid file: WindowsPath(‘D:/ai/LibriSpeech/train-clean-360/6157/40556/6157-40556-0111.flac’)
Also I get this error using eg. python synthesizer_preprocess_audio.py
TypeError: Invalid file: WindowsPath(‘D:/ai/LibriSpeech/train-clean-100/103/1240/103-1240-0000.flac’)
Any help with this would be fantastic it may be something simple I have only just started with python a few days ago.
I am running Windows 10 and using Anaconda and have downloaded all the files required. I just cant seem to load any voices in the toolbox through Voxceleb, librispeech or custom audio files in any format but i can record my own voice in toolbox. Thanks guys hopefully someone can help me out.
The text was updated successfully, but these errors were encountered: