remove libmagic references (deprecated)
This commit is contained in:
parent
04b5a9c96a
commit
9670e3553d
6 changed files with 2 additions and 59 deletions
|
|
@ -8,7 +8,6 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||||
# Add Node.js 20.x LTS for building frontend
|
# Add Node.js 20.x LTS for building frontend
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||||
gcc g++ git make \
|
gcc g++ git make \
|
||||||
libmagic-dev \
|
|
||||||
curl \
|
curl \
|
||||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||||
&& apt-get install -y nodejs \
|
&& 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)
|
# Install only runtime system dependencies (no build tools)
|
||||||
# Add Node.js 20.x LTS for running frontend
|
# Add Node.js 20.x LTS for running frontend
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||||
libmagic1 \
|
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
supervisor \
|
supervisor \
|
||||||
curl \
|
curl \
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||||
# Add Node.js 20.x LTS for building frontend
|
# Add Node.js 20.x LTS for building frontend
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||||
gcc g++ git make \
|
gcc g++ git make \
|
||||||
libmagic-dev \
|
|
||||||
curl \
|
curl \
|
||||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||||
&& apt-get install -y nodejs \
|
&& 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
|
# Install runtime system dependencies including curl for SurrealDB installation
|
||||||
# Add Node.js 20.x LTS for running frontend
|
# Add Node.js 20.x LTS for running frontend
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||||
libmagic1 \
|
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
supervisor \
|
supervisor \
|
||||||
curl \
|
curl \
|
||||||
|
|
|
||||||
|
|
@ -231,9 +231,6 @@ LANGCHAIN_PROJECT="Open Notebook"
|
||||||
# Install Homebrew if not already installed
|
# Install Homebrew if not already installed
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/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)
|
# Install uv (Python package manager)
|
||||||
brew install uv
|
brew install uv
|
||||||
|
|
||||||
|
|
@ -246,8 +243,6 @@ brew install --cask docker
|
||||||
# Update package list
|
# Update package list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|
||||||
# Install system dependencies
|
|
||||||
sudo apt install -y libmagic-dev python3-dev build-essential
|
|
||||||
|
|
||||||
# Install uv
|
# Install uv
|
||||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
|
|
@ -678,18 +673,6 @@ uv python install 3.11
|
||||||
uv python pin 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
|
### API and Database Issues
|
||||||
|
|
||||||
#### Database Connection Failed
|
#### Database Connection Failed
|
||||||
|
|
|
||||||
|
|
@ -109,42 +109,6 @@ This document covers the most frequently encountered issues when installing, con
|
||||||
uv cache clean
|
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
|
### SurrealDB Connection Issues
|
||||||
|
|
||||||
**Problem**: Cannot connect to SurrealDB database.
|
**Problem**: Cannot connect to SurrealDB database.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "open-notebook"
|
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"
|
description = "An open source implementation of a research assistant, inspired by Google Notebook LM"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Luis Novo", email = "lfnovo@gmail.com"}
|
{name = "Luis Novo", email = "lfnovo@gmail.com"}
|
||||||
|
|
|
||||||
2
uv.lock
2
uv.lock
|
|
@ -2199,7 +2199,7 @@ wheels = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "open-notebook"
|
name = "open-notebook"
|
||||||
version = "1.0.2"
|
version = "1.0.4"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "ai-prompter" },
|
{ name = "ai-prompter" },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue