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

Problem while compiling and installing from source: setuptools.command.test has no attribute test #575

Open
ahadji05 opened this issue Jun 26, 2024 · 1 comment

Comments

@ahadji05
Copy link

I was facing a problem while trying to compile and install from source following the instruction below:

git clone https://github.com/equinor/segyio
mkdir segyio/build
cd segyio/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
make
make install

After make I would received an error:
AttributeError: module 'setuptools.command' has no attribute 'test'

from file: /segyio/python/setup.py
line 98: cmdclass = { 'test': setuptools.command.test.test },

@ahadji05
Copy link
Author

ahadji05 commented Jun 26, 2024

I solved the problem by adding: from setuptools.command.test import * at the beginning of file: /segyio/python/setup.py,

and then, changed line cmdclass = { 'test': setuptools.command.test.test }, to cmdclass = { 'test': test },

*I have a Ubuntu 22.04 system, with Python 3.11.7, make 4.3 and cmake 3.22.1.

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

No branches or pull requests

1 participant