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

Setup does not work on Mac: sql.h file not found #206

Open
PatTutor opened this issue Dec 16, 2021 · 0 comments
Open

Setup does not work on Mac: sql.h file not found #206

PatTutor opened this issue Dec 16, 2021 · 0 comments

Comments

@PatTutor
Copy link

PatTutor commented Dec 16, 2021

I'm following the tutorial at https://github.com/FMCorz/mdk#user-content-for-development

Here's what I get:

moodle-sdk % python setup.py develop --user
running develop
running egg_info
creating moodle_sdk.egg-info
writing requirements to moodle_sdk.egg-info/requires.txt
writing moodle_sdk.egg-info/PKG-INFO
writing top-level names to moodle_sdk.egg-info/top_level.txt
writing dependency_links to moodle_sdk.egg-info/dependency_links.txt
writing entry points to moodle_sdk.egg-info/entry_points.txt
writing manifest file 'moodle_sdk.egg-info/SOURCES.txt'
reading manifest file 'moodle_sdk.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'moodle_sdk.egg-info/SOURCES.txt'
running build_ext
Creating /Users/stnp/Library/Python/2.7/lib/python/site-packages/moodle-sdk.egg-link (link to .)
Adding moodle-sdk 2.0.4 to easy-install.pth file
Installing mdk script to /Users/stnp/Library/Python/2.7/bin

Installed /Users/stnp/dev/moodle-sdk
Processing dependencies for moodle-sdk==2.0.4
Searching for pyodbc>=4.0.21
Reading https://pypi.org/simple/pyodbc/
Downloading https://files.pythonhosted.org/packages/d1/21/755f5fa373d01d1803d992c7611799dc4e9fcbb5db7d0852990d6ab3c9ad/pyodbc-4.0.32.tar.gz#sha256=9be5f0c3590655e1968488410fe3528bb8023d527e7ccec1f663d64245071a6b
Best match: pyodbc 4.0.32
Processing pyodbc-4.0.32.tar.gz
Writing /var/folders/vr/wc2z52f942g1jtmzz1pp96280000gq/T/easy_install-q_FCvl/pyodbc-4.0.32/setup.cfg
Running pyodbc-4.0.32/setup.py -q bdist_egg --dist-dir /var/folders/vr/wc2z52f942g1jtmzz1pp96280000gq/T/easy_install-q_FCvl/pyodbc-4.0.32/egg-dist-tmp-nYqRSw
In file included from src/buffer.cpp:12:
src/pyodbc.h:56:10: fatal error: 'sql.h' file not found
#include <sql.h>
         ^~~~~~~
1 error generated.
error: Setup script exited with error: command 'cc' failed with exit status 1
moodle-sdk % 

Using macOs 11.6.1

@PatTutor PatTutor changed the title Install does not work on Mac Setup does not work on Mac: sql.h file not found Dec 16, 2021
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

No branches or pull requests

1 participant