Can't run Oppia on development server (last step) #19437
-
Operating SystemmacOS Ventura version 13.1 ( M2 Air) RAM size8 GB Which step are you stuck on?Stuck on the last step of the installation (https://github.com/oppia/oppia/wiki/Installing-Oppia-%28Mac-OS%3B-Python-3%29#running-oppia-on-a-development-server). Error Logabhisheksatpathy@Abhisheks-MacBook-Air oppia % python -m scripts.start
Requirement already satisfied: pip==23.1.2 in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (23.1.2)
[notice] A new release of pip is available: 23.1.2 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
Requirement already satisfied: pip-tools==6.13.0 in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (6.13.0)
Requirement already satisfied: build in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (from pip-tools==6.13.0) (1.0.3)
Requirement already satisfied: click>=8 in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (from pip-tools==6.13.0) (8.1.7)
Requirement already satisfied: pip>=22.2 in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (from pip-tools==6.13.0) (23.1.2)
Requirement already satisfied: setuptools in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (from pip-tools==6.13.0) (67.7.1)
Requirement already satisfied: wheel in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (from pip-tools==6.13.0) (0.42.0)
Requirement already satisfied: packaging>=19.0 in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (from build->pip-tools==6.13.0) (23.2)
Requirement already satisfied: pyproject_hooks in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (from build->pip-tools==6.13.0) (1.0.0)
Requirement already satisfied: importlib-metadata>=4.6 in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (from build->pip-tools==6.13.0) (7.0.1)
Requirement already satisfied: tomli>=1.1.0 in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (from build->pip-tools==6.13.0) (2.0.1)
Requirement already satisfied: zipp>=0.5 in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (from importlib-metadata>=4.6->build->pip-tools==6.13.0) (3.17.0)
[notice] A new release of pip is available: 23.1.2 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
Requirement already satisfied: setuptools==67.7.1 in /Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages (67.7.1)
[notice] A new release of pip is available: 23.1.2 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
WARNING: the legacy dependency resolver is deprecated and will be removed in future versions of pip-tools. The default resolver will be changed to 'backtracking' in pip-tools 7.0.0. Specify --resolver=backtracking to silence this warning.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
running egg_info
writing lib/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 288, in <module>
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 321, in run
self.find_sources()
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
mm.run()
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 551, in run
self.add_defaults()
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
sdist.add_defaults(self)
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/command/sdist.py", line 112, in add_defaults
super().add_defaults()
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
File "<string>", line 204, in get_source_files
File "/private/var/folders/8_/rlhqhlhd4b36xjw05bws_h9w0000gn/T/pip-build-env-kexl6mxq/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/bin/pip-compile", line 8, in <module>
sys.exit(cli())
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/piptools/scripts/compile.py", line 592, in cli
results = resolver.resolve(max_rounds=max_rounds)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/piptools/resolver.py", line 253, in resolve
has_changed, best_matches = self._resolve_one_round()
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/piptools/resolver.py", line 343, in _resolve_one_round
their_constraints.extend(self._iter_dependencies(best_match))
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/piptools/resolver.py", line 456, in _iter_dependencies
dependencies = self.repository.get_dependencies(ireq)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/piptools/repositories/local.py", line 87, in get_dependencies
return self.repository.get_dependencies(ireq)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/piptools/repositories/pypi.py", line 242, in get_dependencies
self._dependencies_cache[ireq] = self.resolve_reqs(
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/piptools/repositories/pypi.py", line 202, in resolve_reqs
results = resolver._resolve_one(reqset, ireq)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 509, in _resolve_one
dist = self._get_dist_for(req_to_install)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 462, in _get_dist_for
dist = self.preparer.prepare_linked_requirement(req)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 516, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 631, in _prepare_linked_requirement
dist = _get_prepared_distribution(
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 48, in prepare_distribution_metadata
self._install_build_reqs(finder)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 118, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 95, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/utils/misc.py", line 692, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 166, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 311, in _call_hook
self._subprocess_runner(
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/utils/subprocess.py", line 252, in runner
call_subprocess(
File "/Users/abhisheksatpathy/opensource/.direnv/python-3.8/lib/python3.8/site-packages/pip/_internal/utils/subprocess.py", line 224, in call_subprocess
raise error
pip._internal.exceptions.InstallationSubprocessError: Getting requirements to build wheel exited with 1
Traceback (most recent call last):
File "/Users/abhisheksatpathy/.pyenv/versions/3.8.15/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/abhisheksatpathy/.pyenv/versions/3.8.15/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/abhisheksatpathy/opensource/oppia/scripts/start.py", line 30, in <module>
from . import install_third_party_libs
File "/Users/abhisheksatpathy/opensource/oppia/scripts/install_third_party_libs.py", line 32, in <module>
install_python_dev_dependencies.main(['--assert_compiled'])
File "/Users/abhisheksatpathy/opensource/oppia/scripts/install_python_dev_dependencies.py", line 140, in main
not_compiled = compile_pip_requirements(
File "/Users/abhisheksatpathy/opensource/oppia/scripts/install_python_dev_dependencies.py", line 120, in compile_pip_requirements
subprocess.run(
File "/Users/abhisheksatpathy/.pyenv/versions/3.8.15/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pip-compile', '--no-emit-index-url', '--generate-hashes', 'requirements_dev.in', '--output-file', 'requirements_dev.txt']' returned non-zero exit status 1. Approaches already used to resolve the issueReinstalled pyenv (deleted the directory first and installed it again). Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @abhisheksatpathy Sorry for the late response. Is it solved now? |
Beta Was this translation helpful? Give feedback.
Hey @abhisheksatpathy Sorry for the late response.
Is it solved now?
If not, try to have a
brew
fori386
arch and install the pyenv fori386