1. Michael Bayer
  2. SQLSoup
  3. Issues
Issue #1 resolved

SQLSoup fails on python3.3

jonathan chambers
created an issue

SQLSoup fails on python3.3 when creating mappings with "type() argument 1 must be str not bytes"

The cause is these lines (126-130)

# Py2K
if isinstance(mapname, str):
    engine_encoding = engine.dialect.encoding
    mapname = mapname.encode(engine_encoding)
# end Py2K

Which in Py3K converts str to bytes and mapping fails on line 133. Commenting out these lines makes it work.

SQLSoup was installed from Pypi using pip.

Comments (4)

  1. Log in to comment