mapillary / OpenSfM

Open source Structure-from-Motion pipeline
https://www.opensfm.org/
BSD 2-Clause "Simplified" License
3.37k stars 855 forks source link

Install issue on Windows - python setup.py build #1051

Open moendopi opened 5 months ago

moendopi commented 5 months ago

I can get through all of the necessary step, all the dependencies (I had to do manually), but when I run 'python setup.py build' I get this error message:

Traceback (most recent call last): File "C:\Users\brwei.000\OneDrive\Desktop\OpenSFM\OpenSfM\setup.py", line 9, in from sphinx.setup_command import BuildDoc ModuleNotFoundError: No module named 'sphinx.setup_command'

Has sphinx.setup_command been changed to something else/renamed?

I'm currently running Python 3.12.3 on Windows 10. I've trying installing OpenSfM on Fedora 40 KDE and I have the exact same issue.

24Ko8e commented 3 months ago

I am also facing the exact same issue on Windows 11 and Mac Silicon. I did notice that even before building the setup.py there was an error with exit code 1 while installing the dependencies from the requirements.txt file

IoflyTang commented 2 months ago

This is caused by the version of Sphinx,you can try to use this requirements: cloudpickle>=0.4.0 exifread>=2.1.2 flask>=2.3.2 fpdf2>=2.4.6 joblib>=0.14.1 matplotlib networkx>=2.5 numpy>=1.19 Pillow>=8.1.1 pyproj>=1.9.5.1 pytest>=3.0.7 python-dateutil>=2.7 pyyaml>=5.4 scipy>=1.10.0 Sphinx==6.0 six xmltodict>=0.10.2 wheel opencv-python>=4.5.1.48 ; sys_platform == "win32" opencv-python ; sys_platform == "linux"