These are chat archives for fossasia/open-event-server

13th
May 2018
Parth Verma
@parth-verma
May 13 2018 05:22
You are probably missing the openssl library. Check if it is present
Kreijstal
@Kreijstal
May 13 2018 06:22
@party98 why the openssl is not on requirements.txt
Saurabh Chaturvedi
@schedutron
May 13 2018 06:23
It's perhaps a dependency of some package mentioned in requirements.txt?
Parth Verma
@parth-verma
May 13 2018 06:23
Openssl is not a python package. It is a library. Search libssl
It is required since the particular package is being “built” from source by pip
Kreijstal
@Kreijstal
May 13 2018 06:27
Can you make it so that it is not required or it is installed with it in case the machine doesn't have it.
Or would we need to add it in the installation requirements then
and is this package only for ubuntu, would it also work on fedora or other distros?
Parth Verma
@parth-verma
May 13 2018 06:28
Ideally it should already be installed as a dependency while installing python-dev, I believe this to be a special case.
Kreijstal
@Kreijstal
May 13 2018 06:29
The annoying thing about this is where you try to install open-event-server on a brand new machine, and you install it, but then.. Error!
Parth Verma
@parth-verma
May 13 2018 06:29
This “library” would be required across all OSs from linux to macOS
If python was installed correctly then this error shouldn’t arise
Kreijstal
@Kreijstal
May 13 2018 06:30
do you need sudo requirements to install it, for example
Parth Verma
@parth-verma
May 13 2018 06:30
Yes
Kreijstal
@Kreijstal
May 13 2018 06:30
So open-event-server requires sudo to install
Parth Verma
@parth-verma
May 13 2018 06:30
Not exactly
Open event has a dependency on the package mentioned in requirements.txt and that package has a dependency on the OpenSSL library which in turn requires Sudo privilege to be installed via apt-get. So it is a transitive dependency.
Oes-> requirements -> openssl-> apt-get install -> sudo
Areeb Jamal
@iamareebjamal
May 13 2018 06:37
We can definitely add it in the docs where Python installation is given. It's just hard to get transitive dependencies right. Tomorrow maybe someone says, I'm using alpine I don't have apt. It all depends on what you have installed already. OpenSSL is a safe bet. But yeah it can be added to README, no harm
Kreijstal
@Kreijstal
May 13 2018 06:41
maybe we can find alternative python libraries with not such dependencies
Mayank Vaidya
@mayank8318
May 13 2018 06:42
@Kreijstal OpenSSL is a pretty common dependecy and most packages would have some or the other dependency imo
Areeb Jamal
@iamareebjamal
May 13 2018 06:43
It's not possible to just bypass the standard cryptographic library and its wrapper in Python. I'd say your distribution is incomplete if it doesn't have OpenSSL. Tomorrow some node package will be requiring it. It's absolutely necessary that you have it already
Saurabh Chaturvedi
@schedutron
May 13 2018 09:40
In the root Dockerfile, how do I add commands to start PostgreSQL server?
Parth Verma
@parth-verma
May 13 2018 10:39
Use docker compose instead
Saurabh Chaturvedi
@schedutron
May 13 2018 10:59
@party98 How exactly?
Parth Verma
@parth-verma
May 13 2018 11:01
Run docker-compose up
Saurabh Chaturvedi
@schedutron
May 13 2018 14:17
Running it gives this error:
web_1       |   File "/usr/local/lib/python3.6/site-packages/psycopg2/__init__.py", line 130, in connect
web_1       |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
web_1       | psycopg2.OperationalError: could not connect to server: Connection refused
web_1       |     Is the server running on host "postgres" (172.19.0.4) and accepting
web_1       |     TCP/IP connections on port 5432?
Saurabh Chaturvedi
@schedutron
May 13 2018 14:28
I've carefully gone through the Kubernetes deployment guide for about 5-6 times, still my instance isn't successfully deployed on GCE.
Unfortunately, I chose to write about this deployment for my blog post, so it is getting delayed because of this failure.