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

Fix missing symbol in sql-py on osx-arm64 #22

Conversation

DimitrisStaratzis
Copy link
Contributor

@DimitrisStaratzis DimitrisStaratzis commented Mar 12, 2024

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

@conda-forge-webservices
Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

recipe/meta.yaml Outdated Show resolved Hide resolved
@jdblischak
Copy link
Member

What is the motivation for this PR? The CI on the latest commit, b9106fa, passed

@DimitrisStaratzis
Copy link
Contributor Author

DimitrisStaratzis commented Mar 13, 2024

What is the motivation for this PR? The CI on the latest commit, b9106fa, passed

There was a reported issue for Missing symbol in sql-py on osx-arm64.

I tried the updated package on osx-arm64 and got the following:

In [2]: import numpy as np, tiledb

In [3]: tiledb.from_numpy("/tmp/bar3", np.random.rand(4))
Out[3]: DenseArray(uri='/tmp/bar3', mode=r, ndim=1)

In [4]: import tiledb.sql, pandas
   ...:
   ...: db = tiledb.sql.connect()
   ...: pandas.read_sql(sql="select * from `/tmp/bar3`", con=db)
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[4], line 1
----> 1 import tiledb.sql, pandas
      3 db = tiledb.sql.connect()
      4 pandas.read_sql(sql="select * from `/tmp/bar3`", con=db)

File ~/opt/conda/envs/tmp/lib/python3.11/site-packages/tiledb/sql/__init__.py:22
     19 apilevel = "2.0"
     20 paramstyle = "format"
---> 22 from ._mysql import (
     23     NotSupportedError,
     24     OperationalError,
     25     get_client_info,
     26     ProgrammingError,
     27     Error,
     28     InterfaceError,
     29     debug,
     30     IntegrityError,
     31     string_literal,
     32     MySQLError,
     33     DataError,
     34     escape,
     35     escape_string,
     36     DatabaseError,
     37     InternalError,
     38     Warning,
     39     server_init,
     40     server_end,
     41 )
     42 from tiledb.sql.constants import FIELD_TYPE
     43 from tiledb.sql.times import (
     44     Date,
     45     Time,
   (...)
     49     TimestampFromTicks,
     50 )

ImportError: dlopen(/Users/inorton/opt/conda/envs/tmp/lib/python3.11/site-packages/tiledb/sql/_mysql.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '_mysql_affected_rows'

In [5]:
Do you really want to exit ([y]/n)?

/tmp/cf 1m 19s
tmp ❯ mamba list tiledb
# packages in environment at /Users/inorton/opt/conda/envs/tmp:
#
# Name                    Version                   Build  Channel
libtiledb-sql             0.27.1               ha40b254_0    conda-forge
libtiledb-sql-py          2.1.3           py311hcc98501_3    conda-forge
tiledb                    2.19.1               h49d9ff7_0    conda-forge
tiledb-cloud              0.11.1.dev5+g9e4eb5de          pypi_0    pypi
tiledb-plot-widget        1.1.0                    pypi_0    pypi
tiledb-py                 0.25.0          py311h32a2bd2_1    conda-forge

/tmp/cf

@DimitrisStaratzis DimitrisStaratzis marked this pull request as draft March 19, 2024 19:33
@DimitrisStaratzis DimitrisStaratzis changed the title remove mysql from build and add mysql-devel to host requirements Fix missing symbol in sql-py on osx-arm64 Mar 19, 2024
@DimitrisStaratzis
Copy link
Contributor Author

@conda-forge-admin, please rerender

Copy link
Contributor

Hi! This is the friendly automated conda-forge-webservice.

I tried to rerender for you, but it looks like there was nothing to do.

This message was generated by GitHub actions workflow run https://github.com/conda-forge/libtiledb-sql-py-feedstock/actions/runs/8349073842.

@ihnorton ihnorton closed this Mar 20, 2024
@ihnorton ihnorton reopened this Mar 20, 2024
@DimitrisStaratzis
Copy link
Contributor Author

suppressed by #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants