module compile scope problem

R

rdack

i have BerkeleyBSD installed on OpenBSD system.
i have some code that won't compile.
the code does:
from bsddb.db import *

then, in an __init__ of a class:
self.env=DBEnv()

import fails unless i do 'from bsddb3.db import *'
in interactive python, after the import, i can do 'xx=DBEnv()' with no error;

but with the system that ends up compiling the code, it says DBEnv isn't defined.

any clues/thoughts?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top