load it. I
> don't think SQLAlchemy has any specific tools for that.
>
> Simon
>
> On Tue, Nov 21, 2017 at 12:15 PM, Skip Montanaro
> <skip.montan...@gmail.com> wrote:
>> Thanks. I guess I'm still a bit confused. The problem I've been trying
>> to solve h
I've narrowed down my problem space a bit. Consider this simple code:
from sqlalchemy import (Integer, String, Column, MetaData, create_engine)
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
METADATA = MetaData()
BASE =
I'm trying to insert a list of dictionaries into a table using
bulk_insert_mappings(). When I call it, I get this error:
AttributeError: 'Table' object has no attribute 'mapper'
I'm having trouble (in general) figuring out which of the various ways of
specifying my table(s) are appropriate.
can't resolve. If someone would like to help
me figure things out I'd be most appreciative.
Skip Montanaro
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post to this group, send email
Rick a) using the included pysqlite in Python 2.5+ and issues with
Rick that
Rick b) conflict with the sqlite library that ships with OSX
Rick and out of those, I would bet (b). The sqlite that ships for
Rick Coredata with OSX Tiger is old, and I think that SA
Michael go into python and type:
Michael from pysqlite2 import dbapi2
Michael dbapi2.sqlite_version
Well, that failed:
$ /tmp/python-buildbot/local/bin/python
Python 2.6a0 (trunk:54421, Mar 17 2007, 11:17:17)
[GCC 4.0.0 (Apple Computer, Inc. build 5026)] on darwin
Michael all tests pass on Mac OSX with the latest sqlite (as well as
Michael postgres, mysql).
Hmmm... Then I wonder what's different about the buildbot setup and a
normal interactive run.
Michael solaris, not so sure, ill have a look later.
There's no particular need. I was
Michael geez, what version of sqlite / pysqlite / python is running
Michael there ? tons of those errors ive never seen before.
That will have to wait for me to get home. Probably not until tomorrow at
the earliest. I'll let you know what I figure out. Perhaps I can tweak the
Michael ah, in fact one failure youre having, the testcast failure,
Michael is indicative of running against a very old sqlite.
Can you tell me what version I'm using other than very old? Here's what I
see:
$ otool -L lib-dynload/_sqlite3.so
lib-dynload/_sqlite3.so:
Michael OK this was something small, the alltests.py scripts needed
Michael to call testbase's main() function and not its runTests()
Michael method, so that the exit code is propigated. rev 2414.
Excellent. Trying a test run now...
Skip
Jonathan Anyway, we might just end up keeping both...
I say punt and pick one. Even it it's a coin flip.
Skip
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post to this group, send
Mike yeah, still waiting for someone to show me some easy
Mike non-commercial library that can create a decent PDF out of either
Mike markdown, or HTML, or whatever...
Why not load the HTML into a web browser, print it, but select Save as PDF
instead of completing the print? Are
12 matches
Mail list logo