Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Incompatibility with Python 3.7 #711

Copy link
Copy link
@sam3ay

Description

@sam3ay
Issue body actions

Bug:
Importing the datalab module fails in python 3.7

Steps to Reproduce:

[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from google import datalab

Expected:
Successful import

Stack Trace:

  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/google/datalab/__init__.py", line 13, in <module>
    from google.datalab._context import Context
  File "/usr/local/lib/python3.7/site-packages/google/datalab/_context.py", line 20, in <module>
    from google.datalab.utils import _utils as du
  File "/usr/local/lib/python3.7/site-packages/google/datalab/utils/__init__.py", line 15
    from ._async import async, async_function, async_method
                            ^
SyntaxError: invalid syntax

Notes:
Previous versions of python successfully imported datalab, so I'm assuming it's caused by async being a keyword in Python 3.7 hence the syntax error.

jdemonasterio, mjoy296-zz, slayerjain, untidy-hair, invisement-old and 4 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.