Unable to find vcvarsall.bat when installing
Not much else to say apart from what's mentioned in the title. That's the error that gets returned
That's a common issue when compiling python modules on Windows, it's most likely a problem with your MSVC install. Try to reinstall a recent version of the Microsoft Visual C++ build tools
I've done that but now it's telling me that setup.py install is depreciated
That's okay, it should still work anyway
I decided to take a break on the issue, and I've come back but now I'm being told that I need numpy for 3DSkit to work, but I already have numpy installed and is up to date.
I can’t reproduce that on Windows 10, python 3.11 and the latest numpy. That might be a problem with your python / numpy install ? Check that you can import numpy in an interpreter from the python install you use for 3DSkit
Just tried it myself and same issue as the last comment, but not on windows, and not on an older python.
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
3DSkit requires numpy to work properly. You can install it by typing pip install numpy
[end of output]
--- trim ---
Requirement already satisfied: numpy in /home/obscenity/DEV/git/3DSkit/venv/lib/python3.12/site-packages (2.1.0)
Some notes about my setup:
- Linux x86_64 (glib)
- Using python venv
- Python version 3.12.4
- Numpy is both installed system-wide and in venv, it is version numpy-2.1.0-cp312
The only way I could reproduce this was when trying to install c3DSkit as root when the numpy install is local to the current user
In that case, try python3 setup.py install --user
Using the --user flag breaks the path.
TEST FAILED: /home/obscenity/.local/lib/python3.12/site-packages/ does NOT support .pth files
bad install directory or PYTHONPATH
Running without --user does nothing, since it is depricated.
/home/obscenity/DEV/git/3DSkit/venv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/home/obscenity/DEV/git/3DSkit/venv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
self.initialize_options()
zip_safe flag not set; analyzing archive contents...
__pycache__.c3DSkit.cpython-312: module references __file__
Using pypa (pip) as suggested works, but again cannot find numpy.
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
3DSkit requires numpy to work properly. You can install it by typing pip install numpy
[end of output]
I should really find time to clean everything up, that structure definitely is awful
In the meantime, get the latest commit and run python3 setup.py build_ext --inplace. That should avoid any permission problems