[PYTHON] How to deal with pyenv initialization failure in fish 3.1.0

tl;dr If you change the line of pyenv (rbenv) in ~ / .config / fish / config.fish to the following, the problem will disappear.

before

. (pyenv init - | psub)
. (rbenv init - | psub)

after

source (pyenv init - | psub)
source (rbenv init - | psub)

Problems that occur

I was able to use the . command up to fish3.0.2, but apparently it is no longer available from fish3.1.0. This is originally foretold ,

. (a single period) is an alias for the source command. The use of . is deprecated in favour of source, and . will be removed in a future version of fish.

It's finally gone (crying)

If you are using bash commands or somehow using the . command, you need to take this opportunity to review the configuration file.

It is common to use the . command in the initialization syntax of pyenv (rbenv), but when running with fish3.1.0, the following error message occurs.

source: Error encountered while sourcing file '/var/folders/yv/0npp741974sgp79671hf_48c0000gn/T//.psub.pxGqFIeIaF':
source: No such file or directory
source: Error encountered while sourcing file '/var/folders/yv/0npp741974sgp79671hf_48c0000gn/T//.psub.VyHOD74WrY':
source: No such file or directory

At the end

If you get such an error, as mentioned at the beginning, you can use the source command and it will work fine. I also suffered from this problem this morning, so if you have any other problems, please refer to it ~ ~

Recommended Posts

How to deal with pyenv initialization failure in fish 3.1.0
How to deal with python installation error in pyenv (BUILD FAILED)
How to deal with memory leaks in matplotlib.pyplot
How to deal with run-time errors in subprocess.call
How to use tkinter with python in pyenv
How to deal with Executing transaction: failed in Anaconda
How to deal with imbalanced data
How to deal with imbalanced data
How to deal with DistributionNotFound errors
How to install Anaconda with pyenv
[AWS] How to deal with "Invalid codepoint" error in CloudSearch
For beginners, how to deal with common errors in keras
How to work with BigQuery in Python
How to use python put in pyenv on macOS with PyCall
How to deal with enum compatibility errors
[Python] How to deal with module errors
How to deal with garbled characters in json of Django REST Framework
How to deal with old Python versions in Cloud9 made by others
can't pickle annoy. How to deal with Annoy objects
How to deal with module'tensorflow' has no attribute'〇〇'
How to deal with SessionNotCreatedException when using Selenium
How to use Pyenv
How to pass the path to the library built with pyenv and virtualenv in PyCharm
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
How to convert / restore a string with [] in python
How to do hash calculation with salt in Python
Explain in detail how to make sounds with python
How to deal with Django's Template Does Not Exist
How to do zero-padding in one line with OpenCV
How to run tests in bulk with Python unittest
How to load files in Google Drive with Google Colaboratory
How to access with cache when reading_json in pandas
[Python] How to deal with pandas read_html read error
How to unlock pyenv global
How to uninstall pyenv itself
How to update with SQLAlchemy?
How to cast with Theano
How to Alter with SQLAlchemy?
How to separate strings with','
How to RDP with Fedora31
How to develop in Python
2 ways to deal with SessionNotCreatedException
How to Delete with SQLAlchemy?
How to embed multiple embeds in one message with Discord.py
How to install Python2.7 python3.5 with pyenv (on RHEL5 CentOS5) (2016 Nov)
[TensorFlow 2 / Keras] How to run learning with CTC Loss in Keras
How to output a document in pdf format with Sphinx
How to extract any appointment in Google Calendar with Python
How to check ORM behavior in one file with django
How to use pyenv and pyenv-virtualenv in your own way
[Django] How to give input values in advance with ModelForm
How to manipulate the DOM in an iframe with Selenium
[Linux] How to deal with garbled characters when viewing files
How to display a list of installable versions with pyenv
A story about how to deal with the CORS problem
How to create dataframes and mess with elements in pandas
How to deal with UnicodeDecodeError when executing google image download
Try HeloWorld in your own language (with How to & code)
How to log in to AtCoder with Python and submit automatically
[VLC] How to deal with the problem that it is not in the foreground during playback
How to cancel RT with tweepy