Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named bsddb #2

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 7 comments
Closed

ImportError: No module named bsddb #2

GoogleCodeExporter opened this issue Mar 24, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Install ActivePython 2.7.1.3
2. Install Boar
3. execute boar

What is the expected output? What do you see instead?
C:\>boar.bat

C:\>C:\Python27\python.exe C:\Python27\boar\boar
Traceback (most recent call last):
  File "C:\Python27\boar\boar", line 35, in <module>
    import workdir
  File "C:\Python27\boar\workdir.py", line 40, in <module>
    import dbhash
  File "C:\Python27\lib\dbhash.py", line 7, in <module>
    import bsddb
ImportError: No module named bsddb

What platform are you using? (Windows XP, Windows 7, Linux, ...)
windows XP

What version of Python are you using?
2.7.1.3.

What version of boar are you using? (Mercurial change id or daily build date)
boar-daily.05-Feb-2011.zip

Please provide any additional information below.
from http://docs.python.org/library/bsddb.html
Deprecated since version 2.6: The bsddb module has been deprecated for removal 
in Python 3.0.

Original issue reported on code.google.com by mplic...@gmail.com on 9 Feb 2011 at 11:11

@GoogleCodeExporter
Copy link
Author

one solution:
http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-b
sddb-modules-to-work/

I didn't try yet.

Original comment by mplic...@gmail.com on 9 Feb 2011 at 11:27

@GoogleCodeExporter
Copy link
Author

Strange. I'm not using ActivePython myself, but they explicitly state that 
bsddb should be available in 2.7 (see 
http://docs.activestate.com/activepython/2.7/). Could you double-check that the 
python.exe you are using actually belongs to the ActivePython package? 

Original comment by ekb...@gmail.com on 9 Feb 2011 at 4:03

@GoogleCodeExporter
Copy link
Author

*C:\>python*
*ActivePython 2.7.1.3 (ActiveState Software Inc.) based on*
*Python 2.7.1 (r271:86832, Dec  5 2010, 12:04:08) [MSC v.1500 32 bit
(Intel)] on win32*
*Type "help", "copyright", "credits" or "license" for more information.*
*>>>*

I will try uninstall and instll again. It's not real issue anyway.

Original comment by mplic...@gmail.com on 10 Feb 2011 at 9:20

@GoogleCodeExporter
Copy link
Author

Well, many people use ActivePython, so I'd like it to work. I will try to 
reproduce it.

Original comment by ekb...@gmail.com on 11 Feb 2011 at 11:51

@GoogleCodeExporter
Copy link
Author

Yep. For whatever reason, the Active Python distribution does not seem include 
bsddb, at least not anyone that's available by a simple "import". Probably 
there is some other dbm that is available everywhere. In the meantime, I'll 
clarify on the installation guide wiki page.

Original comment by ekb...@gmail.com on 12 Feb 2011 at 8:54

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

An user has reported this problem on mac as well. From 
http://groups.google.com/group/boarvcs/browse_thread/thread/2123eea0beeb9d9b

Quote:

I'm getting a similar error on mac. 
OS X 10.6.6 
python 1.7 for mac 
boar-daily.27-Feb-2011.zip 
Traceback (most recent call last): 
  File "/Applications/boar/boar", line 35, in <module> 
    import workdir 
  File "/Applications/boar/workdir.py", line 41, in <module> 
    import dbhash 
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/dbhash.py", line 8, in <module> 
    import bsddb 
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/bsddb/__init__.py", line 64, in <module> 
    import _bsddb 
ImportError: No module named _bsddb

Original comment by ekb...@gmail.com on 30 Mar 2011 at 12:10

@GoogleCodeExporter
Copy link
Author

Fixed in changeset 50d1084e78ac. The fix simply consisted of replacing the use 
of bsddb  (module anydbm) with sqlite3. 

Original comment by ekb...@gmail.com on 25 Sep 2011 at 9:15

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant