Closed ntsieyo closed 1 year ago
Actually It would great to have a transitional branch, let call it trunk or whatever. In pull request will then be sent to this branch, so that you have a chance to test the new code and if you are happy with the changes you can then merge it in master.
Hi @ntsieyo and thank you so much for this massive contribution
It would have been great in the pull request was split into smaller PRs for a faster review (e.g. library upgrades vs nginx config...). Otherwise I'll look into ASAP but it'll take of time so please bear with me
Once again thanks a ton
Yes, I understand, PRs was not planed at the beginning. I just want to run some tests and found myself fixing different kind of errors. So take your time and you can reach me if there are any questions regarding those changes
@ntsieyo
I've spent some time on this yesterday and realized eg. Django4.2 requires to upgrade Python as well. I did that but got stuck with ModuleNotFoundError: No module named 'crispy_bootstrap3'
I knew such a big drop would take more time to check and I'd just like to let you know that I'm working on it whenever possible
Hi @ntsieyo As discussed I suggest breaking this PR in separate and independent ones
Hoping to see your subsequent contribution soon
Hello @ntsieyo and @cyrildzumts Please I need help with the installation. I upgrade the requirement.txt and I fixed other exceptions. Now I'm getting this error : `Traceback (most recent call last): File "/usr/lib/python3.10/logging/config.py", line 565, in configure handler = self.configure_handler(handlers[name]) File "/usr/lib/python3.10/logging/config.py", line 746, in configure_handler result = factory(**kwargs) File "/usr/lib/python3.10/logging/init.py", line 1169, in init StreamHandler.init(self, self._open()) File "/usr/lib/python3.10/logging/init.py", line 1201, in _open return open_func(self.baseFilename, self.mode, FileNotFoundError: [Errno 2] No such file or directory: '/home/germain/katika/logs/debug.log'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/germain/katika/manage.py", line 14, in
Kind regards.
@GT-Codeur you have defines in your logging conf to write logs to home/germain/katika/logs/debug.log. But the path home/germain/katika/logs/ doesn't exist. You need to manually create that directory with : mkdir /home/germain/katika/logs After that restart again. The debug.log file will be created.
@ntsieyo Thanks for your prompt reaction. I will come back to you If I'm getting another issue.
Tell me, are you working on my fork or you are on the upstream project ? Asking because on my fork I refactored the way the constants independent of code are provided, through it environment variable.
@ntsieyo Hello, Now I having this error:
`Traceback (most recent call last):
File "/home/germain/katika/venv/lib/python3.10/site-packages/pytz/lazy.py", line 3, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/germain/katika/manage.py", line 7, in
Tell me, are you working on my fork or you are on the upstream project ? Asking because on my fork I refactored the way the constants independent of code are provided, through it environment variable.
I'm working on the upstream project. Ok I will fork yours and get back to you.
You don't need to work on my fork since my changes was not accepted upstream. I have to break my changes in small PR. But I can find the time to do it. I asked if you were using my fork because I saw that you were using python 3.10
You don't need to work on my fork since my changes was not accepted upstream. I have to break my changes in small PR. But I can find the time to do it. I asked if you were using my fork because I saw that you were using python 3.10
Ok. I tried the formal installation but I got errors that's why I initiated the issue Error Installation. So I'm getting stuck.
@GT-Codeur since you are on the upstream project, some Packages are no more available you won't be able to install old packages from the official pypi repository. Since you are using python 3.10, have a look at the requirements.txt located in my fork. I updated the package version so that they are compatible with python 3.10. Here for example , pytz need to be updated to : pytz==2023.3
Hello @ntsieyo Now I'm having this error and I'm still getting the same error after installing posgresql.
`System check identified 45 issues (0 silenced). Exception in thread django-main-thread: Traceback (most recent call last): File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/backends/base/base.py", line 289, in ensure_connection self.connect() File "/home/germain/katika/venv/lib/python3.10/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, *kwargs) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/backends/base/base.py", line 270, in connect self.connection = self.get_new_connection(conn_params) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/contrib/gis/db/backends/postgis/base.py", line 112, in get_new_connection connection = super().get_new_connection(conn_params) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/utils/asyncio.py", line 26, in inner return func(args, kwargs) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/backends/postgresql/base.py", line 269, in get_new_connection connection = self.Database.connect(conn_params) File "/home/germain/katika/venv/lib/python3.10/site-packages/psycopg2/init.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.OperationalError: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, self._kwargs) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper fn(*args, *kwargs) File "/home/germain/katika/venv/lib/python3.10/site-packages/mezzanine/core/management/commands/runserver.py", line 170, in inner_run super().inner_run(args, kwargs) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 136, in inner_run self.check_migrations() File "/home/germain/katika/venv/lib/python3.10/site-packages/django/core/management/base.py", line 574, in check_migrations executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS]) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/migrations/executor.py", line 18, in init self.loader = MigrationLoader(self.connection) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/migrations/loader.py", line 58, in init self.build_graph() File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/migrations/loader.py", line 235, in build_graph self.applied_migrations = recorder.applied_migrations() File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/migrations/recorder.py", line 81, in applied_migrations if self.has_table(): File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/migrations/recorder.py", line 57, in has_table with self.connection.cursor() as cursor: File "/home/germain/katika/venv/lib/python3.10/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, kwargs) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/backends/base/base.py", line 330, in cursor return self._cursor() File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/backends/base/base.py", line 306, in _cursor self.ensure_connection() File "/home/germain/katika/venv/lib/python3.10/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, *kwargs) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/backends/base/base.py", line 288, in ensure_connection with self.wrap_database_errors: File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in exit raise dj_exc_value.with_traceback(traceback) from exc_value File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/backends/base/base.py", line 289, in ensure_connection self.connect() File "/home/germain/katika/venv/lib/python3.10/site-packages/django/utils/asyncio.py", line 26, in inner return func(args, kwargs) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/backends/base/base.py", line 270, in connect self.connection = self.get_new_connection(conn_params) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/contrib/gis/db/backends/postgis/base.py", line 112, in get_new_connection connection = super().get_new_connection(conn_params) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, kwargs) File "/home/germain/katika/venv/lib/python3.10/site-packages/django/db/backends/postgresql/base.py", line 269, in get_new_connection connection = self.Database.connect(conn_params) File "/home/germain/katika/venv/lib/python3.10/site-packages/psycopg2/init.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) django.db.utils.OperationalError: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?`
@GT-Codeur seems like you are not able to connect to your PostgreSQL server. I can assist you to get your setup running. We can arrange an appointment where we can have a look at it together.
@GT-Codeur seems like you are not able to connect to your PostgreSQL server. I can assist you to get your setup running. We can arrange an appointment where we can have a look at it together.
Thanks a lot. I'm available. In which platform are we going to communicate? I'm using teams what about you?
@GT-Codeur seems like you are not able to connect to your PostgreSQL server. I can assist you to get your setup running. We can arrange an appointment where we can have a look at it together.
Thanks a lot. I'm available. In which platform are we going to communicate? I'm using teams what about you?
I'm using Teams on my work's laptop. I don't have teams on my private laptop but you can create a link in teams so that I can access it from the web.
I don't use my work's laptop for my private stuff, send me a link at kiroo.cyrildz@gmail.com
kiroo.cyrildz@gmail.com
I just send it.
@GT-Codeur one more for future contributors, can you confirm here that you were able to get the project running on your local environment ?
@ntsieyo Of course! By your help I was able to get the project running locally on my machine. Way to go @ntsieyo
@ntsieyo I succeed with stacticfiles configuration. Thanks once more for your help.
Here is the changes I made :