You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make test, make serve, make gunicornserve and make dockerrun are not working on local developper machine due to missing /var/local/profile/ directory.
$ make test
Python 2.7.17
mkdir -p /home/ltshb/repo-micro-services/service-alti/tests/report
/home/ltshb/repo-micro-services/service-alti/.venv/bin/nose2 -c tests/unittest.cfg --plugin nose2.plugins.junitxml --junit-xml --junit-xml-path /home/ltshb/repo-micro-services/service-alti/tests/report/nose2-junit.xml -s tests/
ERROR:app:DTM base path points to a none existing folder (/var/local/profile/)
E...................................................................
======================================================================
ERROR: tests.unit_tests.test_helpers (nose2.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.unit_tests.test_helpers
Traceback (most recent call last):
File "/home/ltshb/repo-micro-services/service-alti/.venv/lib/python3.7/site-packages/nose2/plugins/loader/discovery.py", line 201, in _find_tests_in_file
module = util.module_from_name(module_name)
File "/home/ltshb/repo-micro-services/service-alti/.venv/lib/python3.7/site-packages/nose2/util.py", line 77, in module_from_name
__import__(name)
File "/home/ltshb/repo-micro-services/service-alti/tests/unit_tests/test_helpers.py", line 4, in<module>
from app.helpers.helpers import float_raise_nan, filter_altitude
File "/home/ltshb/repo-micro-services/service-alti/app/__init__.py", line 26, in<module>
raise FileNotFoundError(error_message)
FileNotFoundError: DTM base path points to a none existing folder (/var/local/profile/)
----------------------------------------------------------------------
Ran 68 tests in 1.165s
FAILED (errors=1)
Makefile:111: recipe for target 'test' failed
make: *** [test] Error 1
$ make serve
Python 2.7.17
DTM_BASE_PATH=/var/local/profile/ FLASK_APP=service_alti FLASK_DEBUG=1 /home/ltshb/repo-micro-services/service-alti/.venv/bin/flask run --host=0.0.0.0 --port=5000
* Serving Flask app "service_alti" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
ERROR:app:DTM base path points to a none existing folder (/var/local/profile/)
INFO:werkzeug: * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
INFO:werkzeug: * Restarting with stat
ERROR:app:DTM base path points to a none existing folder (/var/local/profile/)
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 307-048-656
$ make gunicornserve
Python 2.7.17
/home/ltshb/repo-micro-services/service-alti/.venv/bin/python3 wsgi.py
ERROR:app:DTM base path points to a none existing folder (/var/local/profile/)
Traceback (most recent call last):
File "wsgi.py", line 3, in<module>
from app import app as application
File "/home/ltshb/repo-micro-services/service-alti/app/__init__.py", line 26, in<module>
raise FileNotFoundError(error_message)
FileNotFoundError: DTM base path points to a none existing folder (/var/local/profile/)
Makefile:124: recipe for target 'gunicornserve' failed
make: *** [gunicornserve] Error 1
$ make dockerrun
Python 2.7.17
DTM_BASE_PATH=/var/local/profile/ HTTP_PORT=5000 docker-compose up
Starting service-alti_app_1 ... done
Attaching to service-alti_app_1
app_1 | ERROR:app:DTM base path points to a none existing folder (/var/local/profile/)
app_1 | Traceback (most recent call last):
app_1 | File "wsgi.py", line 3, in<module>
app_1 | from app import app as application
app_1 | File "/app/app/__init__.py", line 26, in<module>
app_1 | raise FileNotFoundError(error_message)
app_1 | FileNotFoundError: DTM base path points to a none existing folder (/var/local/profile/)
service-alti_app_1 exited with code 1
The text was updated successfully, but these errors were encountered:
make test
,make serve
,make gunicornserve
andmake dockerrun
are not working on local developper machine due to missing/var/local/profile/
directory.The text was updated successfully, but these errors were encountered: