Skip to content
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

SyntaxError: invalid syntax due to async being a reserved keyword in Python 3.7 #570

Closed
2 of 8 tasks
sebastic opened this issue Jul 14, 2018 · 0 comments · Fixed by #571
Closed
2 of 8 tasks

SyntaxError: invalid syntax due to async being a reserved keyword in Python 3.7 #570

sebastic opened this issue Jul 14, 2018 · 0 comments · Fixed by #571

Comments

@sebastic
Copy link
Contributor

Description

As reported by Andreas Beckmann in Debian Bug #903784:

during a test with piuparts I noticed your package failed to install. As per definition of the release team this makes the package too buggy for a release, thus the severity.

From the attached log (scroll to the bottom...):

  Selecting previously unselected package python3-pycsw.
  (Reading database ... 
(Reading database ... 9155 files and directories currently installed.)
  Preparing to unpack .../python3-pycsw_2.2.0+dfsg-3_all.deb ...
  Unpacking python3-pycsw (2.2.0+dfsg-3) ...
  Setting up python3-pycsw (2.2.0+dfsg-3) ...
    File "/usr/lib/python3/dist-packages/pycsw/ogc/csw/csw2.py", line 1936
      if self.parent.async:
                         ^
  SyntaxError: invalid syntax
  
    File "/usr/lib/python3/dist-packages/pycsw/ogc/csw/csw3.py", line 2013
      if self.parent.async:
                         ^
  SyntaxError: invalid syntax
  
    File "/usr/lib/python3/dist-packages/pycsw/server.py", line 78
      self.async = False
               ^
  SyntaxError: invalid syntax
  
  dpkg: error processing package python3-pycsw (--configure):
   installed python3-pycsw package post-installation script subprocess returned error exit status 1
  Errors were encountered while processing:
   python3-pycsw

Could this be related to python 3.7?

Environment

  • operating system: Debian GNU/Linux unstable
  • Python version: 3.7.0 (python3.7/3.7.0-1)
  • pycsw version: 2.2.0
  • source/distribution
    • git clone
    • DebianGIS/UbuntuGIS
    • PyPI
    • zip/tar.gz
    • other (please specify):
  • web server
    • Apache/mod_wsgi
    • CGI
    • other (please specify):

Steps to Reproduce

Build and run pycsw with Python 3.7.

Additional Information

Backwards incompatible syntax changes:

https://docs.python.org/3/whatsnew/3.7.html

@sebastic sebastic changed the title SyntaxError: invalid syntax due to async being a reserved keyword in Python 3.7 SyntaxError: invalid syntax due to async being a reserved keyword in Python 3.7 Jul 14, 2018
sebastic added a commit to sebastic/pycsw that referenced this issue Jul 15, 2018
sebastic added a commit to sebastic/pycsw that referenced this issue Jul 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant