-
-
Notifications
You must be signed in to change notification settings - Fork 17
Error when building local machine developer setup via docker image #50
Comments
@milan-tom paste the following;
|
bash: /c/Users/milan: Is a directory
bash: lsb_release: command not found
This does not run either as it fails with the same aforementioned error message in the second step.
This outputs the following error message:
|
Is this the directory where you have cloned the project? You need to be in the project root first check that.
So you are on windows.
What is the specific error in this case?
This means you either don't have psql installed in your local or it is not running. which means docker atleast runs. |
Ah yes. Sorry, when I was actually running the steps for setting up development, I ran it in the correct directory (
I have PostgreSQL 13 installed. In Windows |
paste the bazel version
pip-compile --allow-unsafe --generate-hashes requirements.txt
PULLER_TIMEOUT=3600 DOCKER_REPO_CACHE=$(pwd)/docker_repo_cache DEBUG_ENV=1 CPPFLAGS="$(pg_config --cppflags)" LDFLAGS="$(pg_config --ldflags)" SECRET_ID="SECRET_KEY" bazel build --watchfs --spawn_strategy=standalone --copt --aspects=@bazel_tools//tools/python:srcs_version.bzl%find_requirements --verbose_failures=true --show_timestamps=true --python_version=PY3 --build_python_zip --sandbox_debug --color=yes --curses=yes --jobs=2000 --loading_phase_threads=HOST_CPUS --action_env=LDFLAGS="$(pg_config --ldflags)" --action_env=CPPFLAGS="$(pg_config --cppflags)" --force_python=py3 --incompatible_use_python_toolchains=false --loading_phase_threads=1 --http_timeout_scaling=2 :covidx_manage |
Checkout to a local temp branch and change this: https://github.com/Xcov19/covidX/blob/master/WORKSPACE#L87 pip_import(
name = "my_deps",
requirements = ":requirements.txt",
timeout=3600,
compile=True,
python_interpreter="python3",
) |
@milan-tom if that throws error or doesn't work and yields the same error try prepending in the bazel cmd this BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 PULLER_TIMEOUT=3600 DOCKER_REPO_CACHE=$(pwd)/docker_repo_cache DEBUG_ENV=1 CPPFLAGS="$(pg_config --cppflags)" LDFLAGS="$(pg_config --ldflags)" SECRET_ID="SECRET_KEY" bazel build --watchfs --spawn_strategy=standalone --copt --aspects=@bazel_tools//tools/python:srcs_version.bzl%find_requirements --verbose_failures=true --show_timestamps=true --python_version=PY3 --build_python_zip --sandbox_debug --color=yes --curses=yes --jobs=2000 --loading_phase_threads=HOST_CPUS --action_env=LDFLAGS="$(pg_config --ldflags)" --action_env=CPPFLAGS="$(pg_config --cppflags)" --action_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN --force_python=py3 --incompatible_use_python_toolchains=false --loading_phase_threads=1 --http_timeout_scaling=2 :covidx_manage |
OUTPUT
|
Done. |
The following error was raised:
|
relates to bazelbuild/rules_python#172 |
I've removed pip_import and it is deprecated now; |
Whilst following the steps to build local machine developer setup via docker image, when I run the command
PULLER_TIMEOUT=3600 DOCKER_REPO_CACHE=$(pwd)/docker_repo_cache DEBUG_ENV=1 CPPFLAGS="$(pg_config --cppflags)" LDFLAGS="$(pg_config --ldflags)" SECRET_ID="SECRET_KEY" BUCKET_NAME="gae-bizlead" DJANGO_SETTINGS_MODULE="covidX.settings" WSGI_APPLICATION="covidX.wsgi.application" bazel run --watchfs --spawn_strategy=standalone --copt --aspects=@bazel_tools//tools/python:srcs_version.bzl%find_requirements --verbose_failures=true --show_timestamps=true --python_version=PY3 --build_python_zip --sandbox_debug --color=yes --curses=yes --jobs=2000 --loading_phase_threads=HOST_CPUS --action_env=LDFLAGS="$(pg_config --ldflags)" --action_env=CPPFLAGS="$(pg_config --cppflags)" --force_python=py3 --incompatible_use_python_toolchains=false --loading_phase_threads=1 --http_timeout_scaling=2 :covidx_manage
(in GIT Bash within the cloned repository directory), the following error occurs:ERROR: no such package @my_deps//': pip_compile failed: (java.io.IOException: ERROR: src/main/native/windows/process.cc(202):
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
How can I overcome this obstacle to build a developer setup on my local machine?
The text was updated successfully, but these errors were encountered: