Issue installing on FreeBSD due to an outdated package requirement of aspw. #6301

Closed
opened 2024-03-03 19:38:20 +01:00 by beowuff · 1 comment
beowuff commented 2024-03-03 19:38:20 +01:00 (Migrated from github.com)

What Red version are you using?

3.5.5

What were you trying to do?

Install Red Discord bot on FreeBSD.

What did you expect to happen?

I expected the bot to be installed and work.

What actually happened?

There is an error building apsw version 3.43.1.0.

In file included from src/apsw.c:81:
/tmp/pip-install-z48nrgwg/apsw_2a28832101604043ad1986fe93684845/sqlite3/sqlite3.c:119499:13: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for(i=0; i<sizeof(yDbMask); i++) if( m[i] ) return 0;
~^~~~~~~~~~~~~~~~
src/apsw.c:105:10: fatal error: 'alloca.h' file not found
#include <alloca.h>
^~~~~~~~~~
1 warning and 1 error generated.
error: command '/usr/bin/cc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for apsw
Failed to build apsw
ERROR: Could not build wheels for apsw, which is required to install pyproject.toml-based projects

How can we reproduce this error?

  1. On an installed and updated FreeBSD 14.0 box.
  2. Install sudo apt -y install python git openjdk-17-jre vim
  3. Run python -m pip install -U Red-DiscordBot

Anything else?

The issue appears to be that Red is relying on an outdated version of aspw. It is trying to build 3.43.1.0. The latest version is 3.45.1. Note this version build fine on FreeBSD if I call it directly by pip to install.

### What Red version are you using? 3.5.5 ### What were you trying to do? Install Red Discord bot on FreeBSD. ### What did you expect to happen? I expected the bot to be installed and work. ### What actually happened? There is an error building apsw version 3.43.1.0. In file included from src/apsw.c:81: /tmp/pip-install-z48nrgwg/apsw_2a28832101604043ad1986fe93684845/sqlite3/sqlite3.c:119499:13: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] for(i=0; i<sizeof(yDbMask); i++) if( m[i] ) return 0; ~^~~~~~~~~~~~~~~~ src/apsw.c:105:10: fatal error: 'alloca.h' file not found #include <alloca.h> ^~~~~~~~~~ 1 warning and 1 error generated. error: command '/usr/bin/cc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for apsw Failed to build apsw ERROR: Could not build wheels for apsw, which is required to install pyproject.toml-based projects ### How can we reproduce this error? 1. On an installed and updated FreeBSD 14.0 box. 2. Install sudo apt -y install python git openjdk-17-jre vim 3. Run python -m pip install -U Red-DiscordBot ### Anything else? The issue appears to be that Red is relying on an outdated version of aspw. It is trying to build 3.43.1.0. The latest version is 3.45.1. Note this version build fine on FreeBSD if I call it directly by pip to install.
Jackenmen commented 2024-03-03 19:46:37 +01:00 (Migrated from github.com)

We do not provide support for BSD systems. We will bump dependencies whenever we make the next release but we do not plan release dates in advance.

We do not provide support for BSD systems. We will bump dependencies whenever we make the next release but we do not plan release dates in advance.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#6301
No description provided.