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

Installation Issues #95

Open
SrihariMadhavan opened this issue Sep 21, 2024 · 3 comments
Open

Installation Issues #95

SrihariMadhavan opened this issue Sep 21, 2024 · 3 comments

Comments

@SrihariMadhavan
Copy link

SrihariMadhavan commented Sep 21, 2024

Im Trying to install the library in ubuntu and I get the following error:

Preparing metadata (setup.py) ... done
Collecting pytest (from dso==1.0.dev0)
Using cached pytest-8.3.3-py3-none-any.whl.metadata (7.5 kB)
Collecting cython (from dso==1.0.dev0)
Using cached Cython-3.0.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB)
Collecting numpy<=1.19 (from dso==1.0.dev0)
Using cached numpy-1.19.0.zip (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
Running from numpy source directory.
:460: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
Traceback (most recent call last):
File "/mydir/envs/py311/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/mydir/py311/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mydir/py311/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-6kgpuoqr/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 373, in prepare_metadata_for_build_wheel
self.run_setup()
File "/tmp/pip-build-env-6kgpuoqr/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 503, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-6kgpuoqr/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
File "", line 489, in
File "", line 465, in setup_package
File "/tmp/pip-install-pvr29wjb/numpy_d7f2775fbb8746b79f35f38c2837a710/numpy/distutils/core.py", line 24, in
from numpy.distutils.command import config, config_compiler,
File "/tmp/pip-install-pvr29wjb/numpy_d7f2775fbb8746b79f35f38c2837a710/numpy/distutils/command/config.py", line 19, in
from numpy.distutils.mingw32ccompiler import generate_manifest
File "/tmp/pip-install-pvr29wjb/numpy_d7f2775fbb8746b79f35f38c2837a710/numpy/distutils/mingw32ccompiler.py", line 28, in
from distutils.msvccompiler import get_build_version as get_build_msvc_version
ModuleNotFoundError: No module named 'distutils.msvccompiler'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

@SrihariMadhavan
Copy link
Author

Please let me know how to proceed. I followed the instructions and upgraded both setuptools and pip

@Quantbrinx
Copy link

got same error. any fix or updates on this?

@Qamar-93
Copy link

Qamar-93 commented Dec 27, 2024

Python version should be <=3.7, and it only worked with conda:
This worked for me:

    conda create --name dso_env python=3.7
    conda activate `dso_env`
    pip install "numpy<=1.19" Cython

Then running the pip install -e ./dso should work.
Note:
TensorFlow 1.14 requires protobuf version 3.20.x or lower, so you might need to downgrade the protobuf version:
pip install protobuf==3.20.*

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

3 participants