diff --git a/Dockerfile b/Dockerfile index 2f59089..2c6c724 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,6 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ # Add Node.js 20.x LTS for building frontend RUN apt-get update && apt-get upgrade -y && apt-get install -y \ gcc g++ git make \ - libmagic-dev \ curl \ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ && apt-get install -y nodejs \ @@ -48,7 +47,6 @@ FROM python:3.12-slim-bookworm AS runtime # Install only runtime system dependencies (no build tools) # Add Node.js 20.x LTS for running frontend RUN apt-get update && apt-get upgrade -y && apt-get install -y \ - libmagic1 \ ffmpeg \ supervisor \ curl \ diff --git a/Dockerfile.single b/Dockerfile.single index b99e7d4..47ce210 100644 --- a/Dockerfile.single +++ b/Dockerfile.single @@ -8,7 +8,6 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ # Add Node.js 20.x LTS for building frontend RUN apt-get update && apt-get upgrade -y && apt-get install -y \ gcc g++ git make \ - libmagic-dev \ curl \ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ && apt-get install -y nodejs \ @@ -48,7 +47,6 @@ FROM python:3.12-slim-bookworm AS runtime # Install runtime system dependencies including curl for SurrealDB installation # Add Node.js 20.x LTS for running frontend RUN apt-get update && apt-get upgrade -y && apt-get install -y \ - libmagic1 \ ffmpeg \ supervisor \ curl \ diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index bb6ebfd..c641d4f 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -231,9 +231,6 @@ LANGCHAIN_PROJECT="Open Notebook" # Install Homebrew if not already installed /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -# Install system dependencies -brew install libmagic - # Install uv (Python package manager) brew install uv @@ -246,8 +243,6 @@ brew install --cask docker # Update package list sudo apt update -# Install system dependencies -sudo apt install -y libmagic-dev python3-dev build-essential # Install uv curl -LsSf https://astral.sh/uv/install.sh | sh @@ -678,18 +673,6 @@ uv python install 3.11 uv python pin 3.11 ``` -#### libmagic Installation Issues -```bash -# macOS: Install via Homebrew -brew install libmagic - -# Ubuntu/Debian: Install dev package -sudo apt install libmagic-dev - -# CentOS/RHEL/Fedora: Install dev package -sudo dnf install file-devel -``` - ### API and Database Issues #### Database Connection Failed diff --git a/docs/troubleshooting/common-issues.md b/docs/troubleshooting/common-issues.md index 4c1d021..2195233 100644 --- a/docs/troubleshooting/common-issues.md +++ b/docs/troubleshooting/common-issues.md @@ -109,42 +109,6 @@ This document covers the most frequently encountered issues when installing, con uv cache clean ``` -### libmagic Installation Issues - -**Problem**: Errors related to `python-magic` or `libmagic` library. - -**Symptoms**: -- "Failed to find libmagic" -- File type detection errors -- Import errors related to magic - -**Solutions**: - -1. **Install system dependencies**: - ```bash - # macOS - brew install libmagic - - # Ubuntu/Debian - sudo apt update - sudo apt install libmagic-dev - - # CentOS/RHEL/Fedora - sudo dnf install file-devel - ``` - -2. **Reinstall Python package**: - ```bash - uv pip uninstall python-magic - uv pip install python-magic - ``` - -3. **Alternative installation**: - ```bash - # If above doesn't work - uv pip install python-magic-bin - ``` - ### SurrealDB Connection Issues **Problem**: Cannot connect to SurrealDB database. diff --git a/pyproject.toml b/pyproject.toml index f415e30..f475458 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "open-notebook" -version = "1.0.2" +version = "1.0.4" description = "An open source implementation of a research assistant, inspired by Google Notebook LM" authors = [ {name = "Luis Novo", email = "lfnovo@gmail.com"} diff --git a/uv.lock b/uv.lock index bd43de8..9ca26e2 100644 --- a/uv.lock +++ b/uv.lock @@ -2199,7 +2199,7 @@ wheels = [ [[package]] name = "open-notebook" -version = "1.0.2" +version = "1.0.4" source = { editable = "." } dependencies = [ { name = "ai-prompter" },