3DSkit icon indicating copy to clipboard operation
3DSkit copied to clipboard

Unable to find vcvarsall.bat when installing

Open Spletz47 opened this issue 1 year ago • 9 comments

Not much else to say apart from what's mentioned in the title. That's the error that gets returned

Spletz47 avatar Jul 21 '24 04:07 Spletz47

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

Tyulis avatar Jul 21 '24 13:07 Tyulis

I've done that but now it's telling me that setup.py install is depreciated

Spletz47 avatar Jul 22 '24 01:07 Spletz47

That's okay, it should still work anyway

Tyulis avatar Jul 22 '24 07:07 Tyulis

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.

Spletz47 avatar Aug 16 '24 00:08 Spletz47

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

Tyulis avatar Aug 16 '24 07:08 Tyulis

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

ObscenityIB avatar Aug 19 '24 01:08 ObscenityIB

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

Tyulis avatar Aug 21 '24 16:08 Tyulis

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]

ObscenityIB avatar Aug 25 '24 05:08 ObscenityIB

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

Tyulis avatar Aug 25 '24 08:08 Tyulis