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.

Syntax error running jupyter-repo2docker

See original GitHub issue

I ran into a syntax error after installing jupyter-repo2docker in my conda environment.

I get the following when I try to do anything with jupyter-repo2docker.

admins-mbp-3:~ jacquelineburos$ jupyter-repo2docker --version
Traceback (most recent call last):
  File "/Users/jacquelineburos/anaconda3/bin/jupyter-repo2docker", line 7, in <module>
    from repo2docker.__main__ import main
  File "/Users/jacquelineburos/anaconda3/lib/python3.5/site-packages/repo2docker/__main__.py", line 1, in <module>
    from .app import Repo2Docker
  File "/Users/jacquelineburos/anaconda3/lib/python3.5/site-packages/repo2docker/app.py", line 592
    self.log.info(f'Successfully pushed {self.output_image_spec}', extra=dict(phase='pushing'))
                                                                ^
SyntaxError: invalid syntax

Looks like your python_requires should be updated to >=3.6 since you are using f-strings.

Here is my system setup:

Current conda install:

               platform : osx-64
          conda version : 4.3.22
       conda is private : False
      conda-env version : 4.3.22
    conda-build version : 0+unknown
         python version : 3.5.2.final.0
       requests version : 2.14.2
       root environment : /Users/jacquelineburos/anaconda3  (writable)
    default environment : /Users/jacquelineburos/anaconda3
       envs directories : /Users/jacquelineburos/anaconda3/envs
                          /Users/jacquelineburos/.conda/envs
          package cache : /Users/jacquelineburos/anaconda3/pkgs
                          /Users/jacquelineburos/.conda/pkgs
           channel URLs : https://repo.continuum.io/pkgs/free/osx-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/osx-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/osx-64
                          https://repo.continuum.io/pkgs/pro/noarch
            config file : /Users/jacquelineburos/.condarc
             netrc file : None
           offline mode : False
             user-agent : conda/4.3.22 requests/2.14.2 CPython/3.5.2 Darwin/17.7.0 OSX/10.13.6
                UID:GID : 502:20

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
betatimcommented, Jan 3, 2019

We run (some of) our tests with Python 3.4 to try and help with not introducing these things. I think we should add something like repo2docker --version and/or repo2docker --help to the tests we run to stop this particular bug from coming back as well as making sure users can always get help information.

1reaction
minrkcommented, Jan 11, 2019

I think this is fixed in master by #520. We weren’t running the 3.4 tests for quite a while due to weirdnesses in the travis matrix, fixed by #527. Running the tests on 3.4 will catch this, I think. I think this issue affects the latest release, though, so we should probably make a new release soon with the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax error running jupyter-repo2docker · Issue #541 - GitHub
I ran into a syntax error after installing jupyter-repo2docker in my conda environment. I get the following when I try to do anything...
Read more >
repo2docker Documentation
jupyter -repo2docker is a tool to build, run, and push Docker images from source code ... reduce documentation typos and syntax errors.
Read more >
JupyterLab keeps giving a syntax error for else when there are ...
I am trying to run this code but Jupyter keeps giving me the following syntax error at the else condition. File "<ipython-input-24-beb6bcd9d77b" ...
Read more >
jupyterhub/binder - Gitter
I'm trying to set up a sample binderhub in GKE using helm and I'm running into a 401 error that I can't seem...
Read more >
Jupyter Documentation - Read the Docs
jupyter run notebook.ipynb --allow-errors ... value can also be set from the command line and passed as an argument, using this syntax:.
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