question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QUESTION: What needs to be updated for format_Version

See original GitHub issue

Hey there @mwouts !! still enjoying jupytext a lot!

I have a question about the format_version . I am working with a colleague @nkorinek and each time he pushes a notebook + md or py, and i try to open a notebook i get the error below:

File python-fundamentals-variables.py is in format/version=light/1.5 (current version is 1.4). It would not be safe to override the source of python-fundamentals-variables.ipynb with that file. Please remove one or the other file.

the notebook can not be opened until i delete said .py or md file. We have worked around it but i see I have format_version 1.4 and he has 1.5 (looking at the .py file metadata at the top). He is on linux i believe and I am mac.

ive tried to reinstall from conda-forge (was previously installed via pip) but that does not help. how do i upgrade whatever format_Version is calling? i’ve gone through the docs and see discussion of the format version but don’t see how i can align version (upgrade to 1.5!) with my colleagues for seamless collaboration! Many thanks for any suggestions.

a bit more information - here is my environment.

(base) CIRES-EL-LM-020:edsc-summer-2020 leahwasser$ conda list
# packages in environment at /Users/leahwasser/miniconda3:
#
# Name                    Version                   Build  Channel
alabaster                 0.7.12                   pypi_0    pypi
appnope                   0.1.0                    pypi_0    pypi
argh                      0.26.2                   pypi_0    pypi
asn1crypto                1.3.0                    py37_0    conda-forge
async-generator           1.10                     pypi_0    pypi
attrs                     19.3.0                     py_0    conda-forge
babel                     2.8.0                    pypi_0    pypi
backcall                  0.1.0                    pypi_0    pypi
bleach                    3.1.5                    pypi_0    pypi
brotlipy                  0.7.0           py37h9bfed18_1000    conda-forge
bzip2                     1.0.8                h0b31af3_2    conda-forge
ca-certificates           2020.4.5.1           hecc5488_0    conda-forge
certifi                   2020.4.5.1       py37hc8dfbb8_0    conda-forge
cffi                      1.14.0           py37h356ff06_0    conda-forge
chardet                   3.0.4           py37hc8dfbb8_1006    conda-forge
click                     7.1.2                    pypi_0    pypi
colorama                  0.4.3                    pypi_0    pypi
conda                     4.8.3            py37hc8dfbb8_1    conda-forge
conda-package-handling    1.6.0            py37h9bfed18_2    conda-forge
cryptography              2.8              py37he655712_2    conda-forge
decorator                 4.4.2                      py_0    conda-forge
defusedxml                0.6.0                    pypi_0    pypi
docutils                  0.16                     pypi_0    pypi
entrypoints               0.3                      pypi_0    pypi
gitdb                     4.0.5                    pypi_0    pypi
gitpython                 3.1.2                    pypi_0    pypi
icu                       64.2                 h6de7cb9_1    conda-forge
idna                      2.9                        py_1    conda-forge
imagesize                 1.2.0                    pypi_0    pypi
importlib-metadata        1.6.0            py37hc8dfbb8_0    conda-forge
importlib_metadata        1.6.0                         0    conda-forge
ipykernel                 5.3.0                    pypi_0    pypi
ipython                   7.14.0                   pypi_0    pypi
ipython-genutils          0.2.0                    pypi_0    pypi
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.5.1                    pypi_0    pypi
jedi                      0.17.0                   pypi_0    pypi
jinja2                    2.11.2                   pypi_0    pypi
jsonschema                3.2.0            py37hc8dfbb8_1    conda-forge
jupyter-book              0.7.0b3                  pypi_0    pypi
jupyter-cache             0.2.1                    pypi_0    pypi
jupyter-client            6.1.3                    pypi_0    pypi
jupyter-sphinx            0.2.4                    pypi_0    pypi
jupyter_core              4.6.3            py37hc8dfbb8_1    conda-forge
jupytext                  1.4.2              pyh9f0ad1d_0    conda-forge
latexcodec                2.0.0                    pypi_0    pypi
libarchive                3.3.3             h02796b4_1008    conda-forge
libcxx                    10.0.0                        1    conda-forge
libcxxabi                 4.0.1                hcfea43d_1    conda-forge
libedit                   3.1.20170329      hcfe32e1_1001    conda-forge
libffi                    3.2.1             h4a8c4bd_1007    conda-forge
libiconv                  1.15              h0b31af3_1006    conda-forge
libsass                   0.20.0                   pypi_0    pypi
libxml2                   2.9.10               h53d96d6_0    conda-forge
livereload                2.6.1                    pypi_0    pypi
lz4-c                     1.9.2                h4a8c4bd_0    conda-forge
lzo                       2.10              h1de35cc_1000    conda-forge
markdown-it-py            0.4.5                    pypi_0    pypi
markupsafe                1.1.1                    pypi_0    pypi
mistune                   0.8.4                    pypi_0    pypi
more-itertools            8.2.0                    pypi_0    pypi
myst-nb                   0.8.1                    pypi_0    pypi
myst-parser               0.8.1                    pypi_0    pypi
nbclient                  0.3.1                    pypi_0    pypi
nbconvert                 5.6.1                    pypi_0    pypi
nbdime                    2.0.0                    pypi_0    pypi
nbformat                  5.0.6                      py_0    conda-forge
ncurses                   6.1               h0a44026_1002    conda-forge
nest-asyncio              1.3.3                    pypi_0    pypi
notebook                  6.0.3                    pypi_0    pypi
openssl                   1.1.1g               h0b31af3_0    conda-forge
oset                      0.1.3                    pypi_0    pypi
packaging                 20.3                     pypi_0    pypi
pandocfilters             1.4.2                    pypi_0    pypi
parso                     0.7.0                    pypi_0    pypi
pathtools                 0.1.2                    pypi_0    pypi
pexpect                   4.8.0                    pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pip                       20.0.2                     py_2    conda-forge
pluggy                    0.13.1                   pypi_0    pypi
port-for                  0.3.1                    pypi_0    pypi
prometheus-client         0.7.1                    pypi_0    pypi
prompt-toolkit            3.0.5                    pypi_0    pypi
ptyprocess                0.6.0                    pypi_0    pypi
py                        1.8.1                    pypi_0    pypi
pybtex                    0.22.2                   pypi_0    pypi
pybtex-docutils           0.2.2                    pypi_0    pypi
pycosat                   0.6.3           py37h9bfed18_1004    conda-forge
pycparser                 2.20                       py_0    conda-forge
pydata-sphinx-theme       0.2.2                    pypi_0    pypi
pygments                  2.6.1                    pypi_0    pypi
pyopenssl                 19.1.0                     py_1    conda-forge
pyparsing                 2.4.7                    pypi_0    pypi
pyrsistent                0.16.0           py37h9bfed18_0    conda-forge
pysocks                   1.7.1            py37hc8dfbb8_1    conda-forge
pytest                    5.4.1                    pypi_0    pypi
python                    3.7.6           h90870a6_5_cpython    conda-forge
python-dateutil           2.8.1                    pypi_0    pypi
python-libarchive-c       2.9                      py37_0    conda-forge
python.app                1.3              py37h9bfed18_1    conda-forge
python_abi                3.7                     1_cp37m    conda-forge
pytz                      2019.3                   pypi_0    pypi
pyyaml                    5.3.1            py37h9bfed18_0    conda-forge
pyzmq                     19.0.1                   pypi_0    pypi
readline                  8.0                  hcfe32e1_0    conda-forge
requests                  2.23.0             pyh8c360ce_2    conda-forge
ruamel-yaml               0.16.10                  pypi_0    pypi
ruamel-yaml-clib          0.2.0                    pypi_0    pypi
ruamel_yaml               0.15.80         py37h9bfed18_1001    conda-forge
send2trash                1.5.0                    pypi_0    pypi
setuptools                46.1.3           py37hc8dfbb8_0    conda-forge
six                       1.14.0                     py_1    conda-forge
smmap                     3.0.4                    pypi_0    pypi
snowballstemmer           2.0.0                    pypi_0    pypi
sphinx                    2.4.4                    pypi_0    pypi
sphinx-autobuild          0.7.1                    pypi_0    pypi
sphinx-book-theme         0.0.17                   pypi_0    pypi
sphinx-copybutton         0.2.11                   pypi_0    pypi
sphinx-togglebutton       0.1.1                    pypi_0    pypi
sphinxcontrib-applehelp   1.0.2                    pypi_0    pypi
sphinxcontrib-bibtex      1.0.0                    pypi_0    pypi
sphinxcontrib-devhelp     1.0.2                    pypi_0    pypi
sphinxcontrib-htmlhelp    1.0.3                    pypi_0    pypi
sphinxcontrib-jsmath      1.0.1                    pypi_0    pypi
sphinxcontrib-qthelp      1.0.3                    pypi_0    pypi
sphinxcontrib-serializinghtml 1.1.4                    pypi_0    pypi
sqlalchemy                1.3.17                   pypi_0    pypi
sqlite                    3.30.1               h93121df_0    conda-forge
terminado                 0.8.3                    pypi_0    pypi
testpath                  0.4.4                    pypi_0    pypi
tk                        8.6.10               hbbe82c9_0    conda-forge
tornado                   6.0.4                    pypi_0    pypi
tqdm                      4.45.0             pyh9f0ad1d_0    conda-forge
traitlets                 4.3.3            py37hc8dfbb8_1    conda-forge
urllib3                   1.25.9                     py_0    conda-forge
watchdog                  0.10.2                   pypi_0    pypi
wcwidth                   0.1.9                    pypi_0    pypi
webencodings              0.5.1                    pypi_0    pypi
wheel                     0.34.2                     py_1    conda-forge
widgetsnbextension        3.5.1                    pypi_0    pypi
xz                        5.2.5                h0b31af3_0    conda-forge
yaml                      0.2.4                h0b31af3_0    conda-forge
zipp                      3.1.0                      py_0    conda-forge
zlib                      1.2.11            h0b31af3_1006    conda-forge
zstd                      1.4.4                h4b3e974_3    conda-forge

but this is what my .py file metadata look like

# ---
# jupyter:
#   jupytext:
#     formats: ipynb,py:light
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.4'
#       jupytext_version: 1.2.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

i am working in jupyter locally. but can’t seem to identify how the jupytext version is 1.2.4. maybe this is an envt issue so please tell me if this is out of scope to ask here. many thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mwoutscommented, Jun 6, 2020

maybe you have been working nonstop day and night to release jupytext version 42??!! 😃

😂

Thank you @lwasser ! I’ve followed your suggestion at #534 so that the first part of the message is indeed simpler (no mention of the file format version in the first sentence). So we will have something like this:

The file notebook.py was generated with jupytext version x.x.x but you have y.y.y installed. Please upgrade jupytext to version x.x.x, or remove either notebook.py or notebook.ipynb. This error occurs because notebook.py is in the light format in version z.z, while jupytext version y.y.y installed at /home/marc/GitHub/jupytext can only read the light format in versions 1.1 to 1.5.’

1reaction
lwassercommented, Jun 3, 2020

ahhh ok got it 😃 then what you have is perfect! there are just a lot of different numbers up there that i was wondering… where did they come from. maybe you have been working nonstop day and night to release jupytext version 42!!! 😃

thank you again. this will be a great and useful update!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Format version - AWS CloudFormation
The template format version can change independently of the API and WSDL versions. The value for the template format version declaration must be...
Read more >
How to update format_version in yaml - Question & Answer
I added a new project to bitrise and I saw that it has a format_version of 8. ... a new format version… and...
Read more >
What is the DtsPackage FormatVersion attribute? - MSDN
I'm asking because it's a value that is frequently automatically updated just by opening BIDS and this creates a lot of seemingly ...
Read more >
How can I fix "Unable to handle 'index' format version '2', ...
When I run some tools I get an error like this: ... Unable to handle 'index' format version '2', please update rosdistro ....
Read more >
Invalid format version detected - Expected:[ 1 ] Found: [ 2 ] · ...
Current Behavior I cannot force run NG update. Expected Behavior Work as described: ... Does'nt have recent activity, but it isn't solved.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found