Giter VIP home page Giter VIP logo

Comments (10)

Tishj avatar Tishj commented on September 26, 2024

I can not reproduce this on a build on main with your reproduction.
Sounds like it's already fixed or there are additional details that are missing here to reproduce the issue.

from duckdb.

carlopi avatar carlopi commented on September 26, 2024

Can you share a few more details like:

  • the result of PRAGMA platform
  • the result of FROM duckdb_exceptions()
  • what happens if you do:
import duckdb

con = duckdb.connect(database=':memory:')
con.load_extension('aaarrgh')

from duckdb.

szarnyasg avatar szarnyasg commented on September 26, 2024

@carlopi - I spun up an aarch64 ubuntu instance:

con.load_extension('aaarrgh')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
duckdb.duckdb.IOException: IO Error: Extension "/home/ubuntu/.duckdb/extensions/v0.9.2/linux_arm64_gcc4/aaarrgh.duckdb_extension" not found.

Candidate extensions: "arrow"

from duckdb.

Tishj avatar Tishj commented on September 26, 2024

@carlopi - I spun up an aarch64 ubuntu instance:

con.load_extension('aaarrgh')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
duckdb.duckdb.IOException: IO Error: Extension "/home/ubuntu/.duckdb/extensions/v0.9.2/linux_arm64_gcc4/aaarrgh.duckdb_extension" not found.

Candidate extensions: "arrow"

excel is the name of the extension they're loading, not aaargh

from duckdb.

szarnyasg avatar szarnyasg commented on September 26, 2024

@amplifinn-admin can you share the commands you used to build the excel extension for linux_arm64_gcc4?

from duckdb.

amplifinn-admin avatar amplifinn-admin commented on September 26, 2024

@amplifinn-admin can you share the commands you used to build the excel extension for linux_arm64_gcc4?

I have downloaded manually excel.duckdb_extension.gz with this link: http://extensions.duckdb.org/v0.9.2/linux_arm64/excel.duckdb_extension.gz

import gzip
import shutil
import duckdb

with gzip.open('excel.duckdb_extension.gz','rb') as f_in:
with open('excel.duckdb_extension', 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)

con = duckdb.connect()
con.install_extension('excel.duckdb_extension')

from duckdb.

amplifinn-admin avatar amplifinn-admin commented on September 26, 2024
con.load_extension('aaarrgh')

the result of PRAGMA platform ---> "linux_arm64_gcc4"
the result of FROM duckdb_exceptions() ---> Catalog Error: Table Function with name duckdb_exceptions does not exist!

Result for above mentioned code:

import duckdb
con = duckdb.connect(database=':memory:')
con.load_extension('excel')
Segmentation fault (core dumped)

from duckdb.

Mause avatar Mause commented on September 26, 2024

@amplifinn-admin can you share the commands you used to build the excel extension for linux_arm64_gcc4?

I have downloaded manually excel.duckdb_extension.gz with this link: http://extensions.duckdb.org/v0.9.2/linux_arm64/excel.duckdb_extension.gz

import gzip
import shutil
import duckdb

with gzip.open('excel.duckdb_extension.gz','rb') as f_in:
with open('excel.duckdb_extension', 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)

con = duckdb.connect()
con.install_extension('excel.duckdb_extension')

The abi in that download isn't compatible with the python DuckDB binding, so a segfault here, while not ideal, isn't surprising

from duckdb.

carlopi avatar carlopi commented on September 26, 2024

Thanks for reporting this. We already have in the roadmap implementing (some) checks before INSTALL and LOAD of extensions, that would have prevented this from happening but allow, on LOAD of a non compatible file, some error informing users that the file do not look like a compatible extensions.

I will close this for now, most relevant issue here is #8035, that is currently not planned.

from duckdb.

szarnyasg avatar szarnyasg commented on September 26, 2024

@amplifinn-admin the platforms linux_arm64_gcc and linux_arm64 are different ones, see the list of our platforms. This causes the error.

from duckdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.