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

Error in bpy installation #131

Open
darwinsir opened this issue Nov 9, 2022 · 0 comments
Open

Error in bpy installation #131

darwinsir opened this issue Nov 9, 2022 · 0 comments

Comments

@darwinsir
Copy link

pip install bpy
Collecting bpy
Using cached bpy-0.0.0a0.tar.gz (19 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: bpy
Building wheel for bpy (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [87 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\blenderpy
copying blenderpy\post_install.py -> build\lib.win-amd64-3.10\blenderpy
copying blenderpy_init_.py -> build\lib.win-amd64-3.10\blenderpy
running build_ext
Popen(['git', 'version'], cwd=C:\Users\rampr\AppData\Local\Temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc, universal_newlines=False, shell=None, istream=None)
Traceback (most recent call last):
File "c:\users\rampr\appdata\local\temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc.eggs\gitpython-3.1.29-py3.10.egg\git_init_.py", line 89, in
refresh()
File "c:\users\rampr\appdata\local\temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc.eggs\gitpython-3.1.29-py3.10.egg\git_init_.py", line 76, in refresh
if not Git.refresh(path=path):
File "c:\users\rampr\appdata\local\temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc.eggs\gitpython-3.1.29-py3.10.egg\git\cmd.py", line 389, in refresh
raise ImportError(err)
ImportError: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()

  All git commands will error until this is rectified.  

  This initial warning can be silenced or aggravated in the future by setting the
  $GIT_PYTHON_REFRESH environment variable. Use one of the following values:
      - quiet|q|silence|s|none|n|0: for no warning or exception
      - warn|w|warning|1: for a printed warning
      - error|e|raise|r|2: for a raised exception       

  Example:
      export GIT_PYTHON_REFRESH=quiet


  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\rampr\AppData\Local\Temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc\setup.py", line 288, in <module>
      setup(name='bpy',
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\core.py", line 148, in setup
      dist.run_commands()
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
      self.run_command(cmd)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\wheel\bdist_wheel.py", line 324, in run
      self.run_command("build")
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\rampr\AppData\Local\Temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc\setup.py", line 186, in run
      self.build_cmake(extension)
    File "C:\Users\rampr\AppData\Local\Temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc\setup.py", line 197, in build_cmake
      import bpybuild.sources
    File "c:\users\rampr\appdata\local\temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc\.eggs\bpy_build-2.1.0-py3.10.egg\bpybuild\sources.py", line 20, in <module>
      import git
    File "c:\users\rampr\appdata\local\temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc\.eggs\gitpython-3.1.29-py3.10.egg\git\__init__.py", line 91, in <module>  
      raise ImportError("Failed to initialize: {0}".format(exc)) from exc
  ImportError: Failed to initialize: Bad git executable.
  The git executable must be specified in one of the following ways:
      - be included in your $PATH
      - be set via $GIT_PYTHON_GIT_EXECUTABLE
      - explicitly set via git.refresh()

  All git commands will error until this is rectified.  

  This initial warning can be silenced or aggravated in the future by setting the
  $GIT_PYTHON_REFRESH environment variable. Use one of the following values:
      - quiet|q|silence|s|none|n|0: for no warning or exception
      - warn|w|warning|1: for a printed warning
      - error|e|raise|r|2: for a raised exception       

  Example:
      export GIT_PYTHON_REFRESH=quiet

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bpy
Running setup.py clean for bpy
Failed to build bpy
Installing collected packages: bpy
Running setup.py install for bpy ... error
error: subprocess-exited-with-error

× Running setup.py install for bpy did not run successfully.
│ exit code: 1
╰─> [88 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\blenderpy
copying blenderpy\post_install.py -> build\lib.win-amd64-3.10\blenderpy
copying blenderpy_init_.py -> build\lib.win-amd64-3.10\blenderpy
running build_ext
Traceback (most recent call last):
File "c:\users\rampr\appdata\local\temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc.eggs\gitpython-3.1.29-py3.10.egg\git_init_.py", line 89, in
refresh()
File "c:\users\rampr\appdata\local\temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc.eggs\gitpython-3.1.29-py3.10.egg\git_init_.py", line 76, in refresh
if not Git.refresh(path=path):
File "c:\users\rampr\appdata\local\temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc.eggs\gitpython-3.1.29-py3.10.egg\git\cmd.py", line 389, in refresh
raise ImportError(err)
ImportError: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()

  All git commands will error until this is rectified.  

  This initial warning can be silenced or aggravated in the future by setting the
  $GIT_PYTHON_REFRESH environment variable. Use one of the following values:
      - quiet|q|silence|s|none|n|0: for no warning or exception
      - warn|w|warning|1: for a printed warning
      - error|e|raise|r|2: for a raised exception       

  Example:
      export GIT_PYTHON_REFRESH=quiet


  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\rampr\AppData\Local\Temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc\setup.py", line 288, in <module>
      setup(name='bpy',
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\core.py", line 148, in setup
      dist.run_commands()
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
      self.run_command(cmd)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\command\install.py", line 61, in run
      return orig.install.run(self)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\command\install.py", line 567, in run
      self.run_command('build')
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\rampr\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\rampr\AppData\Local\Temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc\setup.py", line 186, in run
      self.build_cmake(extension)
    File "C:\Users\rampr\AppData\Local\Temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc\setup.py", line 197, in build_cmake
      import bpybuild.sources
    File "c:\users\rampr\appdata\local\temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc\.eggs\bpy_build-2.1.0-py3.10.egg\bpybuild\sources.py", line 20, in <module>
      import git
    File "c:\users\rampr\appdata\local\temp\pip-install-0zdpqzlw\bpy_a54b3be85ab94d04bc97df6dc2456efc\.eggs\gitpython-3.1.29-py3.10.egg\git\__init__.py", line 91, in <module>  
      raise ImportError("Failed to initialize: {0}".format(exc)) from exc
  ImportError: Failed to initialize: Bad git executable.
  The git executable must be specified in one of the following ways:
      - be included in your $PATH
  This initial warning can be silenced or aggravated in the future by setting the
  $GIT_PYTHON_REFRESH environment variable. Use one of the following values:
      - quiet|q|silence|s|none|n|0: for no warning or exception
      - warn|w|warning|1: for a printed warning
      - error|e|raise|r|2: for a raised exception

  Example:
      export GIT_PYTHON_REFRESH=quiet

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> bpy

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

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

1 participant