Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INSTALL] Provide easier means of setup for Ubuntu 22.04 #2480

Closed
vii33 opened this issue Jan 4, 2023 · 7 comments
Closed

[INSTALL] Provide easier means of setup for Ubuntu 22.04 #2480

vii33 opened this issue Jan 4, 2023 · 7 comments
Labels
bug Bug fixes installation Installation issues

Comments

@vii33
Copy link

vii33 commented Jan 4, 2023

Instructions

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 22.04.1 LTS via WSL2
  • Python version (python --version): Python 3.10.6
  • FiftyOne version (fiftyone --version): failes (pip install from 04.01.2023)
  • FiftyOne installed from (pip or source): pip

Commands to reproduce

mkv  # create virtual env
pip install fiftyone
python
>>> import fiftyone as fo

Describe the problem

With Ubuntu 22.04, libssl1.1 is missing. This leads to an import error: #1803
There is currently no easy way to install FiftyOne. I invested over 10 hours now and give up.


Things I tried:

Default Installation

  • Fails, because libssl1.1 is not distributed with Ubuntu 22.04. Manual installation procedure according to [BUG] FiftyOne import fails, Ubuntu 22.02 LTS #1803 fails because OpenSSL is also missing and I could not get this to work.
  • The hint in the documenation to upgrade wheel didn't help.

Alternative Linux builds

Followed the section about alternative builds, and executed pip install fiftyone-db-ubuntu2004.
Same error.

Building a docker image

Finally went all the way to create a Docker image. Build was successfull and fiftyone can be used in the terminal.

docker run -it \                                                                                              
-p 5151:5151 \
voxel51/fiftyone

But trying to start the FiftyOne UI on local host simple leads to a blank HTML page.

<!DOCTYPE html>
<html lang="en">
  <head>
    <link rel="icon" href="[/favicon.ico](view-source:http://localhost:5151/favicon.ico)" />
    <link rel="preload" href="[https://fonts.googleapis.com/css2?family=Palanquin&display=swap](view-source:https://fonts.googleapis.com/css2?family=Palanquin&display=swap)" as="font" type="font/woff" crossorigin>
    <meta charset="UTF-8" />
    <meta name="description" content="Explore, Analyze, Curate" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>FiftyOne</title>
    <script type="module" crossorigin src="[/assets/index.36ee64bc.js](view-source:http://localhost:5151/assets/index.36ee64bc.js)"></script>
    <link rel="stylesheet" href="[/assets/index.73154351.css](view-source:http://localhost:5151/assets/index.73154351.css)">
  </head>
  <body>
    <div id="root"></div>
    <div id="teams"></div>
    <div id="modal"></div>
    
  </body>
</html>

My humble request

  • Please update the main documentation on how to install FiftyOne with newer Ubuntu Versions. (Or update these probably outdated packages)
  • Docker Containers where inveted to avoid such getting-started nightmares. It would be great if the team could provide an official image on Docker Hub. Many other projects do this as well. I would provide one myself, if the installation would work.

.

@vii33 vii33 added bug Bug fixes installation Installation issues labels Jan 4, 2023
@kaixi-wang
Copy link
Contributor

Can you try installing in an environment with python version 3.9

@benjaminpkane
Copy link
Contributor

Hi @vii33. You should be able to get set up by configuring your own MongoDB connection. More details are in my comment here

@vii33
Copy link
Author

vii33 commented Jan 20, 2023

Hi @vii33. You should be able to get set up by configuring your own MongoDB connection. More details are in my comment here

I did, thank you. I still think that a default container build would be very benifcial, though. As an example the setup of CVAT was very easy to do (docker pull, mount volume).

@vii33 vii33 closed this as completed Jan 20, 2023
@rusmux
Copy link

rusmux commented May 11, 2023

@benjaminpkane Is there no other easier way to do this? It would be nice to have everything working just after pip install

@brimoor
Copy link
Contributor

brimoor commented May 11, 2023

Ubuntu 22.04 users should now be able to install FiftyOne as follows:

pip install fiftyone
pip install fiftyone-db-ubuntu2204  # installs MongoDB 6

Note: manually installing fiftyone-db-ubuntu2204 will be necessary until we update the MongoDB version here to 6.0.4 or greater, at which point the fiftyone package will ship with MongoDB 6.0.4 by default on all Linux systems.

@brimoor brimoor reopened this May 11, 2023
@brimoor
Copy link
Contributor

brimoor commented Aug 5, 2023

See also: #3321, #3236, #2961, #2900, #2737, #2480, #1988, #1803

@benjaminpkane
Copy link
Contributor

benjaminpkane commented Nov 2, 2023

Fixed in the forthcoming 0.22.3! 🚀

pip install fiftyone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fixes installation Installation issues
Projects
None yet
Development

No branches or pull requests

5 participants