Coder Social home page Coder Social logo

invalid syntax? about cruzdb HOT 6 OPEN

brentp avatar brentp commented on July 26, 2024 1
invalid syntax?

from cruzdb.

Comments (6)

brentp avatar brentp commented on July 26, 2024

I haven't worked on cruzdb for some time. It's likely that there are many parts of it that do not support python3. I'd accept a pull request to fix that.

from cruzdb.

radwaraed avatar radwaraed commented on July 26, 2024

Many thanks Brent for your reply. I am new to this, so I didn't realize there was a pull request.

from cruzdb.

sammosummo avatar sammosummo commented on July 26, 2024

It seems this issue was never fixed, I experienced it today (2021-09-14).

from cruzdb.

marcmaxson avatar marcmaxson commented on July 26, 2024

Still a problem today (2021-10-07)

`Python 3.8.11 (default, Aug  6 2021, 08:56:27) 
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cruzdb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/anaconda3/envs/qc38/lib/python3.8/site-packages/cruzdb/__init__.py", line 5, in <module>
    from . import soup
  File "/opt/anaconda3/envs/qc38/lib/python3.8/site-packages/cruzdb/soup.py", line 1, in <module>
    from . import sqlsoup
  File "/opt/anaconda3/envs/qc38/lib/python3.8/site-packages/cruzdb/sqlsoup.py", line 458
    except KeyError, ke:
                   ^
SyntaxError: invalid syntax`

In python 3, the proper except is:

try:
    .....
except Exception as e:
    raise Exception(e)

the comma is no longer supported.

from cruzdb.

brentp avatar brentp commented on July 26, 2024

happy to accept a PR that fixes python3 compat.

from cruzdb.

marcmaxson avatar marcmaxson commented on July 26, 2024

from cruzdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.