question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot pip wheel because setup.py egg_info requires flag

See original GitHub issue

I’m attempting to build wheels for my project’s dependencies. One such dependency is bsddb3. My berkeley DB is installed in a non-standard location, so I need to provide --berkeley-db=/strange/location to just about any setup.py invocation, including egg_info. pip wheel has flags for general options and for bdist_wheel options, but it appears to be running egg_info without passing the --berkeley-db flag.

Downloading the source, unpacking it, and running python setup.py bdist_wheel --berkeley-db=/strange/location generates the wheel just fine.

pip wheel --build-option="--berkeley-db=/strange/location" --no-deps bsddb3

Downloading bsddb3-6.0.1.tar.gz (347kB): Downloading from URL https://pypi.python.org/packages/source/b/bsddb3/bsddb3-6.0.1.tar.gz#md5=2b22ab1b4d896961c30e4106660e9139 (from https://pypi.python.org/simple/bsddb3/) …Downloading bsddb3-6.0.1.tar.gz (347kB): 347kB downloaded Running setup.py (path:/tmp/pip_build_jonr/bsddb3/setup.py) egg_info for package bsddb3 Running command python setup.py egg_info Can’t find a local Berkeley DB installation. (suggestion: try the --berkeley-db=/path/to/bsddb option) 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)

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
reveriecommented, May 8, 2014

In case you end up here like me, the environment variable is BERKELEYDB_DIR, so your command will start with something like “BERKELEYDB_DIR=/usr/local/Cellar/berkeley-db/5.3.15/”.

0reactions
lock[bot]commented, May 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"pip install unroll": "python setup.py egg_info" failed with error ...
My first attempt is always doing pip install package_i_want in some of my Visual ... headers necessary for producing binary wheels for Python...
Read more >
pip install gives "Command "python setup.py egg_info" failed ...
Solution I took for my own question: the answers proposed did not solve the issue, so I ended up using conda , creating...
Read more >
Command python setup py egg info failed with error code 1 in ...
Hi Guys,. I am trying to install tensorflow in my docker. But it shows me the below error.
Read more >
Can't install from sources wxpython 4.2.0a1 - python 3.10
I'm trying to install wxpython 4.2.0a1 on Mint 21 with python 3.10, but get the error : 3 configure build Setting top to...
Read more >
Cannot install moments using 'pip install'. - Bitbucket
It's usually possible to install a python package from a git repository, ... /tmp/pip-pip-egg-info-t5nge_l2 Running command python setup.py ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found