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

Unable to find vcvarsall.bat when installing #32

Open
Spletz47 opened this issue Jul 21, 2024 · 9 comments
Open

Unable to find vcvarsall.bat when installing #32

Spletz47 opened this issue Jul 21, 2024 · 9 comments

Comments

@Spletz47
Copy link

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

@Tyulis
Copy link
Owner

Tyulis commented Jul 21, 2024

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

@Spletz47
Copy link
Author

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

@Tyulis
Copy link
Owner

Tyulis commented Jul 22, 2024

That's okay, it should still work anyway

@Spletz47
Copy link
Author

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.

@Tyulis
Copy link
Owner

Tyulis commented Aug 16, 2024

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

@ObscenityIB
Copy link
Contributor

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

@Tyulis
Copy link
Owner

Tyulis commented Aug 21, 2024

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

@ObscenityIB
Copy link
Contributor

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]

@Tyulis
Copy link
Owner

Tyulis commented Aug 25, 2024

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

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