DOsinga / deep_learning_cookbook

Deep Learning Cookbox
Apache License 2.0
689 stars 338 forks source link

bsddb3 install fails during 'pip install -r requirements.txt' #59

Closed js333031 closed 5 years ago

js333031 commented 5 years ago

My host is Ubuntu 18.04 LTS. Freshly installed system. During the 'pip install -r requirements.txt' step, following error is encountered:

Collecting bsddb3==6.2.6 (from -r requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz (239kB)
    100% |████████████████████████████████| 245kB 5.7MB/s 
    Complete output from command python setup.py egg_info:
    Can't find a local Berkeley DB installation.
    (suggestion: try the --berkeley-db=/path/to/bsddb option)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-07a5xnhy/bsddb3/
js333031 commented 5 years ago

Steps I used to get past the error:

pushd /tmp

wget http://download.oracle.com/berkeley-db/db-4.8.30.zip unzip db-4.8.30.zip cd db-4.8.30/ cd build_unix/ ../dist/configure --prefix=/usr/local --enable-cxx make -j12 make install sudo make install

wget https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz tar -xvzf bsddb3-6.2.6.tar.gz cd bsddb3-6.2.6/ python setup.py install --berkeley-db=/usr/local/

popd

DOsinga commented 5 years ago

Hmm, I'll have a look. I did just upgraded the requirements.txt.

reklame commented 5 years ago

Hello, I have the same problem on a MacBook Pro (MacOS 10.14.5). During the 'pip install -r requirements.txt' step, the same error as above is encountered:

`Collecting bsddb3==6.2.6 (from -r requirements.txt (line 21)) Using cached https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: Can't find a local Berkeley DB installation. (suggestion: try the --berkeley-db=/path/to/bsddb option)

ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/ly/m_vsg71j39b2j0d09nb98tr40000gn/T/pip-install-e2j0blqk/bsddb3/ `

On the Oracle Download Site, the actual version of the Berkley DB package is 18.1.32.

What should I do?

Greetings from Michael

DOsinga commented 5 years ago

Do you have BerkeleyDB installed? If so, did the suggestion to pass to path not work? Maybe I should remove this from requirements.txt and only install it for the specific notebook.

DOsinga commented 5 years ago

Feel free to reopen if this didn't work!

reklame commented 5 years ago

I now have installed BerkeleyDB via 'Brew', but the same error appears. How can I apply the given hint "try the --berkeley-db=/path/to/bsddb"? Can I incorporate the parameter in the requirements file?

BTW: How can I reopen a closed issue?

nathanhillyer commented 5 years ago

@reklame https://github.com/DOsinga/deep_learning_cookbook/issues/62 may have your answer.

mikechen66 commented 4 years ago

s333031:

Your method - building from the source is quite good. It adapts to my Conda Environment. For the native or original Ubuntu 18.04 system, it is easy to install bsddb3. But for the Conda env, it is quite hard to install with other installation methods. Your method really solve the problem.

Thanks for your guidelines.

Mike

exploitbtc commented 6 months ago

image