-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issue running buildingmotif on mac #342
Comments
@lazlop what are the particulars of your setup (Python version, Mac os version, etc.) and what error are you seeing? I exclusively use Mac for my environment and haven't had lxml issues. Though occasionally Mac can have issues where there aren't always python packages with the correct os version and Python version available. |
Python version: 3.11.4 Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed? error: command '/usr/bin/clang' failed with exit code 1 at ~/opt/anaconda3/lib/python3.11/site-packages/poetry/installation/chef.py:147 in _prepare Note: This error originates from the build backend, and is likely not a problem with poetry but with lxml (4.9.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "lxml (==4.9.2)"'. |
@lazlop have you tried running |
Yes! I have done that |
On my machine the headers for libxml are on the path
|
@lazlop Are you trying to install any extras or just base buildingMOTIF? it doesn't look like lxml is a dependency for the base functionality |
I was looking to install it as a developer (mostly because I wanted to use the most updated branch rather than what is on pypi). |
@lazlop what is the poetry command you're using to install it? |
The command I used was: |
Both |
@lazlop have you confirmed that you have the libxml header files on your machine? |
Yes confirmed, I have the libxml header files |
I assume you're on an apple silicon mac. It looks like lxml 4.9.2 does not provide arm64 supports (which is why it's trying and failing to build lxml) you could try bumping the version to 4.9.4 or manually installing this wheel into your poetry environment. 4.9.4 and upward provide universal packages for macos (x86_64 and arm64). I'm still confused as to why poetry is trying to install lxml at all as it isn't a buildingmotif dependency as far as I know. It looks like rdflib has lxml as an extra, though that isn't utilized by buildingMOTIF. To test this hypothesis you could also just try installing rdflib 7 on your system and seeing if that works. |
I'm having an issue on mac running poetry to install the dependencies for buildingmotif, particularly with installing lxml.
I've tried a few fixes based on comments on stack exchange, but they haven't worked. Has anyone else experienced this?
The text was updated successfully, but these errors were encountered: