-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
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
youtube-dl
python encodings error
#144
Comments
lol, like usual: works for me. @jonchang is our python venv stuff still screwed up you think? |
my laptop is cursed -_- |
@mfts any python env vars set? What's |
This is reproducible in Docker (here using
|
oh interesting. Let me try |
@jonchang you're the expert here, any clue? |
See my notes on pkgxdev/pkgx#351 about |
I think the I might be wrong. This was working, and our |
like our test is |
I suspect but can't prove that pkgxdev/brewkit#42 might have helped. |
Happening with + mkdir -p build
+ cd build
+ meson .. --prefix=/Users/jacob/.tea/freedesktop.org/p11-kit/v0.24.1 --libdir=/Users/jacob/.tea/freedesktop.org/p11-kit/v0.24.1/lib --buildtype=release
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = 'python'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = '/opt/python.org/v3.11.0/lib/python3.11'
sys._base_executable = '/Users/jacob/.tea/python.org/v3/bin/python3.11'
sys.base_prefix = '/opt/python.org/v3.11.0'
sys.base_exec_prefix = '/opt/python.org/v3.11.0'
sys.platlibdir = 'lib'
sys.executable = '/Users/jacob/.tea/mesonbuild.com/v0.64.1/libexec/bin/python'
sys.prefix = '/opt/python.org/v3.11.0'
sys.exec_prefix = '/opt/python.org/v3.11.0'
sys.path = [
'/opt/python.org/v3.11.0/lib/python311.zip',
'/opt/python.org/v3.11.0/lib/python3.11',
'/opt/python.org/v3.11.0/lib/python3.11/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00000001ea1c7a80 (most recent call first):
<no Python frame> I wonder. We used to set one or more PYTHON variables in useShellenv.ts, no? Any chance that's changed it and, if so, we should move that to a runtime.env.KEY in python.org |
My $ env
__CFBundleIdentifier=com.apple.Terminal
TMPDIR=/var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/
XPC_FLAGS=0x0
TERM=xterm-256color
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.kvfguRiAJd/Listeners
XPC_SERVICE_NAME=0
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=447
TERM_SESSION_ID=8D687CC7-62D0-4E79-A981-F7B6005D4CAE
SHELL=/bin/zsh
HOME=/Users/mfts
LOGNAME=mfts
USER=mfts
PATH=/Users/mfts/.tea/tea.xyz/v*/bin:/Users/mfts/.nvm/versions/node/v18.13.0/bin:/Users/mfts/.pyenv/shims:/Users/mfts/.rbenv/shims:/usr/local/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/MacGPG2/bin:/Library/Apple/usr/bin:/Users/mfts/Library/Android/sdk/emulator:/Users/mfts/Library/Android/sdk/tools:/Users/mfts/Library/Android/sdk/tools/bin:/Users/mfts/Library/Android/sdk/platform-tools
SHLVL=1
PWD=/Users/mfts
OLDPWD=/Users/mfts
VIRTUALENVWRAPPER_PYTHON=/Users/mfts/.pyenv/shims/python
WORKON_HOME=/Users/mfts/.virtualenvs
VIRTUALENVWRAPPER_PROJECT_FILENAME=.project
VIRTUALENVWRAPPER_WORKON_CD=1
VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
VIRTUALENVWRAPPER_HOOK_DIR=/Users/mfts/.virtualenvs
RBENV_SHELL=zsh
PYENV_SHELL=zsh
LE_WORKING_DIR=/Users/mfts/.acme.sh
NVM_DIR=/Users/mfts/.nvm
NVM_CD_FLAGS=-q
NVM_BIN=/Users/mfts/.nvm/versions/node/v18.13.0/bin
NVM_INC=/Users/mfts/.nvm/versions/node/v18.13.0/include/node
ANDROID_HOME=/Users/mfts/Library/Android/sdk
LC_CTYPE=UTF-8
_=/usr/bin/env p.s.: it's a mess |
I think I know what might be up. I believe there's been a regression with |
@jhheider unfortunately that didn't work. It just installed pip and youtube-dl (already installed) and nothing more $ tea +pip.pypa.io +youtube-dl.org youtube-dl "https://youtube.com/watch?v=dQw4w9WgXcQ"
installed: ~/.tea/pip.pypa.io/v22.3.1
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = '/Users/mfts/.tea/pip.pypa.io/v22.3.1'
program name = 'python'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = '/opt/python.org/v3.11.1/lib/python3.11'
sys._base_executable = '/Users/mfts/.tea/python.org/v3/bin/python3.11'
sys.base_prefix = '/opt/python.org/v3.11.1'
sys.base_exec_prefix = '/opt/python.org/v3.11.1'
sys.platlibdir = 'lib'
sys.executable = '/Users/mfts/.tea/youtube-dl.org/v2021.12.17/libexec/bin/python'
sys.prefix = '/opt/python.org/v3.11.1'
sys.exec_prefix = '/opt/python.org/v3.11.1'
sys.path = [
'/Users/mfts/.tea/pip.pypa.io/v22.3.1',
'/opt/python.org/v3.11.1/lib/python311.zip',
'/opt/python.org/v3.11.1/lib/python3.11',
'/opt/python.org/v3.11.1/lib/python3.11/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007ff8476608c0 (most recent call first):
<no Python frame>
~ $
|
Hm. Darn, that solved it for me. |
Remove rm -rf .tea and ran the code with the tea one-liner abstraction and it worked... $ sh <(curl tea.xyz) youtube-dl "https://youtube.com/watch?v=dQw4w9WgXcQ"
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/invisible-island.net/ncurses/v6.4.0
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/curl.se/ca-certs/v2022.7.19
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/gnu.org/readline/v8.1.0
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/zlib.net/v1.2.13
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/sourceware.org/bzip2/v1.0.8
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/openssl.org/v1.1.1s
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/sourceware.org/libffi/v3.4.4
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/libexpat.github.io/v2.5.0
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/bytereef.org/mpdecimal/v2.5.1
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/tukaani.org/xz/v5.2.7
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/sqlite.org/v3.40.0
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/python.org/v3.11.1
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/gnu.org/bash/v5.1.16
installed: /var/folders/gf/dmvw3mx540l26pc3_2_7b2km0000gn/T/tea-XXXXXX.LJ80owxF/youtube-dl.org/v2021.12.17
[youtube] dQw4w9WgXcQ: Downloading webpage
[youtube] dQw4w9WgXcQ: Downloading player f565d246 |
Update to 0.24.2 and reinstall effected packages. Only way is |
Confirmed v0.24.2 fixes the issue |
after fresh install of tea v0.21.2
The text was updated successfully, but these errors were encountered: