Skip to content

BUG: configparser.NoSectionError: No section: 'versioneer' #51499

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

Closed
3 tasks done
CAlexPac opened this issue Feb 20, 2023 · 7 comments
Closed
3 tasks done

BUG: configparser.NoSectionError: No section: 'versioneer' #51499

CAlexPac opened this issue Feb 20, 2023 · 7 comments
Labels
Build Library building on various platforms Needs Info Clarification about behavior needed to assess issue

Comments

@CAlexPac
Copy link

CAlexPac commented Feb 20, 2023

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

pip install --upgrade pip
pip install numpy cython
git clone https://github.com/pandas-dev/pandas.git
cd pandas
python setup.py install

Issue Description

Cannot install pandas from source.

Expected Behavior

To have the versioneer details in setup.cfg so it will install.

Installed Versions

Replace this line with the output of pd.show_versions()

@CAlexPac CAlexPac added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Feb 20, 2023
@lithomas1
Copy link
Member

What version of setuptools are you on?

I think you need at least setuptools 61

@lithomas1 lithomas1 added Needs Info Clarification about behavior needed to assess issue Build Library building on various platforms and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Feb 20, 2023
@MarcoGorelli
Copy link
Member

you also need versioneer[toml] installed

@MarcoGorelli
Copy link
Member

🤔 should the README still be recommending this actually? https://github.com/pandas-dev/pandas#installation-from-sources

@CAlexPac
Copy link
Author

I have setuptools installed.
setuptools 65.5.1

@MarcoGorelli
Copy link
Member

I just tried this, and installing versioneer[toml] fixes it

@lithomas1
Copy link
Member

I just tried this, and installing versioneer[toml] fixes it

Ah, makes sense. setuptools vendors their own tomli, so that's why it wouldn't be installed.

I feel like maybe pip install . would fix this? versioneer[toml] is already listed in the requires there.

IIRC, python setup.py install is deprecated or something.

@CAlexPac
Copy link
Author

CAlexPac commented Feb 21, 2023

Yes, that fixed it.

pip install "versioneer[toml]"
pip install .

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Needs Info Clarification about behavior needed to assess issue
Projects
None yet
Development

No branches or pull requests

3 participants