From: Thomas P. <tho...@gm...> - 2016-03-19 10:14:51
|
Hi, I would like to open my database on my Mac, that I usually edit on Linux. On linux I have the last version on Ubuntu (4.2.2). I share my database on dropbox. On the Mac I installed gramps through homebrew: $ brew cask install gramps ==> Downloading https://github.com/gramps-project/gramps/releases/download/v4.2.2/Gramps-Intel-4.2.2-4.dmg ######################################################################## 100,0% ==> Verifying checksum for Cask gramps ==> Symlinking App 'Gramps.app' to '/Users/tom/Applications/Gramps.app' 🍺 gramps staged at '/opt/homebrew-cask/Caskroom/gramps/4.2.2-4' (13709 files, 257M) The properties say: GRAMPS: 4.2.2 Python: 3.4.3 (default, Feb 12 2016, 17:32:05) [... BSDDB: 5.3.0 (4, 8, 30) LANG: fr_FR.UTF-8 OS: Darwin Distribution: 15.3.0 When I try to open my tree, I get this message: L'arbre familial que vous êtes en train d'ouvrir utilise la version Bsddb (5, 3, 28). Cette version de Gramps utilise la version Bsddb (4, 8, 30). Ainsi vous tentez de charger des données créées avec un format plus récent vers une ancienne version, ceci est voué à l'échec. Vous devrez utiliser votre plus récente version de Gramps et faire une sauvegarde de votre arbre familial. Vous pourrez alors importer cette sauvegarde dans la nouvelle version de Gramps. I tried to install another version of bsddb (not wihout pain), because “brew install berkeley-db” installs the last version (6.1.26), so I used an old version of this homebrew bottle: brew install https://github.com/Homebrew/homebrew/raw/da1444f0851ba57eff5b0fcdfb0678deea073ca7/Library/Formula/berkeley-db.rb ######################################################################## 100,0% ==> Downloading http://download.oracle.com/berkeley-db/db-5.3.28.tar.gz ######################################################################## 100,0% ==> Patching patching file src/dbinc/atomic.h ==> ../dist/configure --disable-debug --prefix=/usr/local/Cellar/berkeley-db/5.3.28 --mandir=/usr/local/Cellar/ber ==> make install 🍺 /usr/local/Cellar/berkeley-db/5.3.28: 5,271 files, 94.3M, built in 8 minutes 23 seconds Then: $ BERKELEYDB_DIR=/usr/local/Cellar/berkeley-db/5.3.28/ pip install bsddb3 Collecting bsddb3 Using cached bsddb3-6.1.1.tar.gz Building wheels for collected packages: bsddb3 Running setup.py bdist_wheel for bsddb3 ... done Stored in directory: /Users/tom/Library/Caches/pip/wheels/6c/36/4c/5007f367ab8060d5071a3ce008b39a5c22449e362025e62993 Successfully built bsddb3 Installing collected packages: bsddb3 Successfully installed bsddb3-6.1.1 Then I could attempt what is said on the wiki page: https://gramps-project.org/wiki/index.php?title=Install_latest_BSDDB <https://gramps-project.org/wiki/index.php?title=Install_latest_BSDDB> $ python Python 2.7.11 (default, Dec 7 2015, 10:10:32) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import bsddb3 >>> bsddb3.__version__ '6.1.1' >>> bsddb3.db.version() (5, 3, 28) It shows the correct version of the database. I edited ~Library/Application\ Support/gramps/gramps42/gramps.ini but it doesn’t show a line similar to “;;use-bsddb3=False” so I added “use-bsddb3=True” manually at the top. This seems to have reseted the settings because my trees were not displayed anymore, I had to configure the dropbox path again. But after that, the line I added was removed and the tree could not be loaded, with the error above. Is it a bug of this Mac release or something wrong in my configuration? Thanks for your help, — Thomas Pietrzak |