voxel51 / fiftyone

Refine high-quality datasets and visual AI models
https://fiftyone.ai
Apache License 2.0
8.81k stars 557 forks source link

[INSTALL] Missing libcrypto.so.1.1 #1251

Open andreydung opened 3 years ago

andreydung commented 3 years ago

System information

Commands to reproduce

Created conda environment for fiftyone. Then install it using pip as usual.

Describe the problem

The following error occurs while importing FiftyOne:

fiftyone/db/bin/mongod: error while loading shared libraries: libcrypto.so.1.1

Uncaught exception
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/fiftyone/__init__.py", line 25, in <module>
    from fiftyone.__public__ import *
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/fiftyone/__public__.py", line 14, in <module>
    foo.establish_db_conn(config)
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/fiftyone/core/odm/database.py", line 77, in establish_db_conn
    port = _db_service.port
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/fiftyone/core/service.py", line 295, in port
    return self._wait_for_child_port()
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/fiftyone/core/service.py", line 179, in _wait_for_child_port
    return find_port()
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/retrying.py", line 212, in call
    raise attempt.get()
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/six.py", line 719, in reraise
    raise value
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "/home/ubuntu/miniconda3/envs/fiftyone/lib/python3.6/site-packages/fiftyone/core/service.py", line 177, in find_port
    raise ServiceListenTimeout(etau.get_class_name(self), port)
fiftyone.core.service.ServiceListenTimeout: fiftyone.core.service.DatabaseService failed to bind to port
benjaminpkane commented 3 years ago

Hi @andreydung :wave:

It looks like you might need to install libcurl4 or similar. If on Ubuntu 16.04, you'll need to install fiftyone-db-ubuntu1604.

pip install fiftyone-db-ubuntu1604

More details can be found here.

brimoor commented 2 years ago

I just got this error when trying to launch FiftyOne on an EC2 instance running Amazon Linux:

$ python3 -m venv myenv
$ source ~/myenv/bin/activate
$ pip install ipython fiftyone
$ grep ^NAME  /etc/*release
/etc/os-release:NAME="Amazon Linux"
import fiftyone
Subprocess ['/home/ec2-user/fifty3/lib64/python3.7/site-packages/fiftyone/db/bin/mongod', '--dbpath', '/home/ec2-user/.fiftyone/var/lib/mongo', '--logpath', '/home/ec2-user/.fiftyone/var/lib/mongo/log/mongo.log', '--port', '0', '--nounixsocket'] exited with error 127:
/home/ec2-user/fifty3/lib64/python3.7/site-packages/fiftyone/db/bin/mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
un-knight commented 2 years ago

I meet the same problem.

benjaminpkane commented 2 years ago

libssl packages are needed. I will add a troubleshooting note in the docs

Hypernovaaa commented 1 year ago

I just got this error when trying to launch FiftyOne on an EC2 instance running Amazon Linux:

$ python3 -m venv myenv
$ source ~/myenv/bin/activate
$ pip install ipython fiftyone
$ grep ^NAME  /etc/*release
/etc/os-release:NAME="Amazon Linux"
import fiftyone
Subprocess ['/home/ec2-user/fifty3/lib64/python3.7/site-packages/fiftyone/db/bin/mongod', '--dbpath', '/home/ec2-user/.fiftyone/var/lib/mongo', '--logpath', '/home/ec2-user/.fiftyone/var/lib/mongo/log/mongo.log', '--port', '0', '--nounixsocket'] exited with error 127:
/home/ec2-user/fifty3/lib64/python3.7/site-packages/fiftyone/db/bin/mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

解决了么,老铁?(did you address it )

ctrlsam commented 1 year ago

For those using pacman, installing openssl 1.1 worked for me:

sudo pacman -U https://mirror.cmt.de/archlinux/core/os/x86_64/openssl-1.1-1.1.1.s-4-x86_64.pkg.tar.zst