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

Cannot install pyodbc #395

Open
TeresaTA opened this issue Nov 2, 2020 · 4 comments
Open

Cannot install pyodbc #395

TeresaTA opened this issue Nov 2, 2020 · 4 comments
Labels

Comments

@TeresaTA
Copy link

TeresaTA commented Nov 2, 2020

I'm trying to make an sql connection throw python in android studio using sqlalchemy, but sqlalchemy uses pyodbc to make the connection and android studio cannot install the pyodbc package. I've tried with pip and git, neither worked.

building 'pyodbc' extension
error: CCompiler.compile: Chaquopy cannot compile native code


Command "C:\Anaconda\python.exe -u -S -c "import setuptools, tokenize;file='C:\Users\ttabreu\AppData\Local\Temp\pip-install-w1m5ng44\pyodbc\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d C:\Users\ttabreu\AppData\Local\Temp\pip-wheel-ttkbmvay --python-tag py3" failed with error code 1 in C:\Users\ttabreu\AppData\Local\Temp\pip-install-w1m5ng44\pyodbc
error: CCompiler.compile: Chaquopy cannot compile native code

ERROR: Failed to install pyodbc from https://files.pythonhosted.org/packages/81/0d/bb08bb16c97765244791c73e49de9fd4c24bb3ef00313aed82e5640dee5d/pyodbc-4.0.30.tar.gz.
Failed to install pyodbc from https://files.pythonhosted.org/packages/81/0d/bb08bb16c97765244791c73e49de9fd4c24bb3ef00313aed82e5640dee5d/pyodbc-4.0.30.tar.gz.

For assistance, please raise an issue at https://github.com/chaquo/chaquopy/issues.
Chaquopy: Exit status 1

@mhsmith
Copy link
Member

mhsmith commented Nov 2, 2020

Thanks for the report. This package isn't currently a priority, but if anyone else wants it too, please click the thumbs-up button above and subscribe to this issue.

Meanwhile, instead of accessing the database server directly from an app, you could run a web server on the same server, and access the database through that.

@mhsmith
Copy link
Member

mhsmith commented Oct 19, 2021

It's been nearly a year and only one person has requested this package, so we won't be adding it in the foreseeable future. If anyone else is interested, please post a comment and I'll reopen the issue.

@mhsmith mhsmith closed this as completed Oct 19, 2021
@mhsmith mhsmith closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2022
@lsbenet
Copy link

lsbenet commented Sep 21, 2023

需要这个包

@mhsmith mhsmith reopened this Sep 23, 2023
@mhsmith
Copy link
Member

mhsmith commented Sep 23, 2023

The package build tool is now open-source, so if you'd like to try building this package yourself, follow the instructions here. And if you're successful, please make a pull request so we can add it to the public repository.

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

No branches or pull requests

3 participants