Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6611975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:02:26+00:00 2026-05-25T20:02:26+00:00

I have an app developed in python 2.7.2 on OS X. I use the

  • 0

I have an app developed in python 2.7.2 on OS X.
I use the module shelve and seems to default to bsddb on the mac.
The program won’t run on a Windows 7 machine with ActiveState python 2.7 because the module bsddb is not present and is not in ActiveState’s package manager (pypm). ActiveState’s documentation says deprecated at v 2.6.
I guess it tries bdddb because the OS X python which created the DB defaults to bsddb.
When I delete the shelve database and run it on Windows, it happily uses some other underlying database. The Mac’s python is also happy.

So I think I should enforce the use of a non-bdsdb backend for shelve. Like the gdbm module.
But I can’t work out how to do that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:02:26+00:00Added an answer on May 25, 2026 at 8:02 pm

    I seemed to have asked the wrong question. When building the windows exe, py2exe was not including an dbm modules (it couldn’t infer this dependency), so at runtime python in desperation tried to find the bdbm module.

    this script setup.py includes a module which makes the py2exe version behave like the version run normally. It includes a dbm-clone module (I’m only storing ten simple dictionaries so the basic dumbdbm module is good enough

    from distutils.core import setup
    import py2exe, sys, os
    from glob import glob
    
    sys.argv.append('py2exe')
    data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))]
    setup(
        data_files=data_files,
        windows = ["cashflowSim.py"],
        options={
           "py2exe":{"includes":["dumbdbm"]}},
           zipfile = None
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an MVC2 app I developed with the VS2010 RC and the .NET
I have developed my app using core data. It works fine in the simulator.
I have current a developed app which I am going to submit in just
I have developed a web app using a webservice. Everything works fine in the
Im trying to develop my first ASP.NET MVC web app and have run into
I have some python code for Google App Engine that responds with the string
I have a python console app. Like most python console apps it uses the
I have a web application developed in Adobe Flex 3 and Python 2.5 (deployed
Have a webapplication with backend developed on python ( running on Django) and front
We have a popular web-app developed using CodeIgniter. Now we want to expose our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.