> Also I suspect you don't really need to download the full Developers
>Tools(XCode) you could probably just use the gcc compiler which
>is much smaller from Macports or Fink.
The last I checked, Macports required XCode compiler to build/install itself
(and requires XCode to be updated on OS up
On 11/09/11 06:19, Alejandro Companioni wrote:
I had the same thoughts at first: OS X is just BSD! This can't be too
different from a Linux installation, right?
There are a number of problems with mysql-python--chiefly its poor
maintenance. I'll link to a nine (!) step guide on installing
mysql
On Sep 10, 2011, at 9:29 PM, tutor-requ...@python.org wrote:
> I've never used MySql on a Mac but I'm curious why it should be so
> difficult.
>
> MacOS is just BSD Unix under the GUI so why would be any different
> to any other Unix type system? What were the problems that you encountered?
He
> > package that can open a databases without knowing there format?
> So, in case I wasn't clear, the databases are already made by someone else,
> and the format is beyond my control. I need/want to learn to manipulate
> them.
>
OK, That wasn't clear. And it makes a difference. You need t
On 10/09/11 23:28, Alejandro Companioni wrote:
Just wanted to chime in, because I wish someone had told me this sooner,
but if you're using a Mac, try to steer clear of mysql-python. Setting
it up on a Mac is absolutely infuriating.
I've never used MySql on a Mac but I'm curious why it should
>> You might look at http://www.sqlalchemy.org/, since it works with most
>> databases. However if you are new on databases, I think you should start
>> learning databases basics, choose a database management system (DBMS)
>> that fit your needs and learn as much as you can about that specific
> > package that can open a databases without knowing there format?
>
> The Python DB API is pretty good at covering all the common databases but
> sadly everyone has some slight variances so you do need to know which product
> you will be using.
>
> As an example the SQLite package that comes
On Sep 10, 2011, at 6:15 PM, tutor-requ...@python.org wrote:
> You might look at http://www.sqlalchemy.org/, since it works with most
> databases. However if you are new on databases, I think you should start
> learning databases basics, choose a database management system (DBMS)
> that fit yo
On 10/09/11 20:44, Andre' Walker-Loud wrote:
What type of databases? sql server, mysql, sqllite?
well this already helps. I don't even know.
Do I have to know ahead of time? Or is there a general database
> package that can open a databases without knowing there format?
The Python DB API is
On 10/09/11 21:44, Andre' Walker-Loud wrote:
What type of databases? sql server, mysql, sqllite?
Hi James,
well this already helps. I don't even know. Do I have to know ahead of time?
Or is there a general database package that can open a databases without
knowing there format?
Thanks,
>
> What type of databases? sql server, mysql, sqllite?
Hi James,
well this already helps. I don't even know. Do I have to know ahead of time?
Or is there a general database package that can open a databases without
knowing there format?
Thanks,
Andre
On Sat, Sep 10, 2011 at 3:39 PM, Andre' Walker-Loud wrote:
> Hi All,
>
> I am completely new to databases as well as using python to access/create
> databases. I started googling about it and found so much info, I wasn't
> sure where to begin to answer my first question. So I thought I would que
Hi All,
I am completely new to databases as well as using python to access/create
databases. I started googling about it and found so much info, I wasn't sure
where to begin to answer my first question. So I thought I would query this
group by asking a question I am sure has been asked before
Oh, stupid me forgot the error message. Well, for some odd reason it works
now, but there are still some issues. When I tried it just a few minutes
ago, it worked fine, it seemed to me.
If anyone have any tips, please let me know. Thanks everyone for the tips.
On Tue, Aug 24, 2010 at 2:24 PM,
wrot
aug dawg wrote on 08/24/2010 01:55:14 PM:
> Now it says that the variable adder is not defined. Does anyone know
about this?
>
It is best if you send the full error message, it helps pinpoint the
problem.
my copy of your code was:
database = []
datafile = open('/home/~/the-db/data')
for line i
"aug dawg" wrote
select-db = raw_input("Which database to add to? >> ")
SyntaxError: can't assign to operator
I think it might be the >> at the end, but when I try it in the
Python
interpreter, it works fine.
You have a minus sign in your variable name - at least thats
how Python sees
Now it says that the variable adder is not defined. Does anyone know about
this?
On Tue, Aug 24, 2010 at 1:40 PM,
wrote:
>
> aug dawg wrote on 08/24/2010 01:13:01 PM:
>
>
> > It's not catching that, but I haven't gotten there with the bugs yet. One
> more thing I can't figure out.
>
> >
> > line
aug dawg wrote on 08/24/2010 01:13:01 PM:
> It's not catching that, but I haven't gotten there with the bugs yet.
One more thing I can't figure out.
>
> line 11
> select-db = raw_input("Which database to add to? >> ")
> SyntaxError: can't assign to operator
>
> I think it might be the >> at
It's not catching that, but I haven't gotten there with the bugs yet. One
more thing I can't figure out.
line 11
select-db = raw_input("Which database to add to? >> ")
SyntaxError: can't assign to operator
I think it might be the >> at the end, but when I try it in the Python
interpreter, it
Oh yeah. That was just a comment that I forgot to take out.
On Tue, Aug 24, 2010 at 1:01 PM, Walter Prins wrote:
>
>
> On 24 August 2010 17:47, aug dawg wrote:
>
>> if searcher in database:
>>> # Figure this out.
>>> if "exit database" in command:
>>> print "Bye!"
>>> sys.exit()
>>>
>>
> Th
On Tue, Aug 24, 2010 at 12:44 PM, aug dawg wrote:
> if searcher in database:
>> # Figure this out.
>>
>> You need some sort of actual Python statement there as a placeholder -
even just "print()".
--
www.fsrtechnologies.com
___
Tutor maillist - Tut
> The other day, I wrote a little database just to fiddle around,
> but when I try to run it it says that it has an unexpected indent.
> From what I can tell, it doesn't. Here's the code. I'm using SPE.
In the future, you should copy/paste error message you get into
your email. This way it ind
On 24 August 2010 17:47, aug dawg wrote:
> if searcher in database:
>> # Figure this out.
>> if "exit database" in command:
>> print "Bye!"
>> sys.exit()
>>
>
The first thing that caught my eye was the "#figure me out" line -- python
is expecting a statement there, a comment doesn't count. You
It says that it's on line 25, on the print("Bye!").
Forgot to say that.
On Tue, Aug 24, 2010 at 12:44 PM, aug dawg wrote:
> The other day, I wrote a little database just to fiddle around, but when I
> try to run it it says that it has an unexpected indent. From what I can
> tell, it doesn't. He
The other day, I wrote a little database just to fiddle around, but when I
try to run it it says that it has an unexpected indent. From what I can
tell, it doesn't. Here's the code. I'm using SPE.
database = []
datafile = open('/home/~/the-db/data')
for line in datafile:
database.append(line)
whi
> I have some database files that are written in visual foxpro. I want to
> be
> able to access them, read them and amend them. Can I do this with python?
I think you will need to use the OCDB adapter.
Although there may be a Fox adapter out there somewhere, but I haven't
seen any references to
ses.
Mike
- Original Message -
From: John Corry <[EMAIL PROTECTED]>
Date: Thursday, April 13, 2006 3:58 pm
Subject: [Tutor] Databases
> Hi,
>
> I have some database files that are written in visual foxpro. I
> want to be
> able to access them, read them and amend them. Can
Hi,
I have some database files that are written in visual foxpro. I want to be
able to access them, read them and amend them. Can I do this with python?
Are there any good links or websites that would specifically deal with
interrogating visual foxpro databases with Python?
I have limited know
28 matches
Mail list logo