malcolmw / pykonal

Travel-time calculator based on the fast-marching method solution to the Eikonal equation.
https://malcolmw.github.io/pykonal-docs/
GNU General Public License v3.0
154 stars 55 forks source link

ERROR: Failed building wheel for pykonal #29

Closed srinty closed 1 year ago

srinty commented 1 year ago

Hi, I was trying to install pykonal in my mac. I am getting this error of failed to build wheel. I have installed wheel and setuptools using pip command. Also upgraded pip, wheel and setuptools. But still getting the same error. I am attaching a screenshot of my problem here. Can you please let me know how to fix this issue?

Screenshot 2023-01-30 at 11 46 53 AM
malcolmw commented 1 year ago

Hi @srinty, Are you installing from source code or from PyPI? Installation via the PyPI does not currently work, so you should clone the repository and execute pip install . from the top-level directory.

srinty commented 1 year ago

Hi,

I am installing from source code, following these codes:

sh$> conda create --name pykonal -c conda-forge python=3.8 'cython>=0.29.14' h5py numpy scipy sh$> conda activate pykonal (pykonal)sh$> cd path/to/pykonal (pykonal)sh$> pip install .

Regards, Sadia

Sadia Marium Rinty PhD Student | Earth Sciences Class of 2025 Center for Earthquake Research and Information The University of Memphis 3890 Central Ave. | Memphis TN 38152 901.678.2007


From: Malcolm White @.> Sent: Monday, January 30, 2023 12:40 PM To: malcolmw/pykonal @.> Cc: Sadia Marium Rinty (srinty) @.>; Mention @.> Subject: Re: [malcolmw/pykonal] ERROR: Failed building wheel for pykonal (Issue #29)

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and trust the content is safe.

Hi @srintyhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsrinty&data=05%7C01%7Csrinty%40memphis.edu%7Cd033bdfa8760474686b708db02f176ed%7Cae145aeacdb2446ab05a7858dde5ddba%7C0%7C0%7C638107008327667936%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FuccINID8CymMw6SjVrYuQzZwzpFcwhyN7goIacseks%3D&reserved=0, Are you installing from source code or from PyPI? Installation via the PyPI does not currently work, so you should clone the repository and execute pip install . from the top-level directory.

— Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmalcolmw%2Fpykonal%2Fissues%2F29%23issuecomment-1409139285&data=05%7C01%7Csrinty%40memphis.edu%7Cd033bdfa8760474686b708db02f176ed%7Cae145aeacdb2446ab05a7858dde5ddba%7C0%7C0%7C638107008327667936%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=085Iv87xdv9pprn4mGS%2FnRyzmy0rGFwVUP4LRqS%2F3Dw%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAVPIJ5JLDK4L6QXFMY2VHOTWVADJ5ANCNFSM6AAAAAAULOIWUA&data=05%7C01%7Csrinty%40memphis.edu%7Cd033bdfa8760474686b708db02f176ed%7Cae145aeacdb2446ab05a7858dde5ddba%7C0%7C0%7C638107008327824137%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=U5n2TPqS%2FrREe8LPqsUWexIltO3pv1QJz4Z%2BOtYRRjU%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

malcolmw commented 1 year ago

OK, try removing the pyproject.toml and MANIFEST.in files and trying again.

srinty commented 1 year ago

I couldn't find any MANIFEST.in file in the master folder. I removed the pyproject.toml file, but getting error again. I am attaching a snap of the error here for your reference.

Sadia Marium Rinty PhD Student | Earth Sciences Class of 2025 Center for Earthquake Research and Information The University of Memphis 3890 Central Ave. | Memphis TN 38152 901.678.2007


From: Malcolm White @.> Sent: Monday, January 30, 2023 12:44 PM To: malcolmw/pykonal @.> Cc: Sadia Marium Rinty (srinty) @.>; Mention @.> Subject: Re: [malcolmw/pykonal] ERROR: Failed building wheel for pykonal (Issue #29)

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and trust the content is safe.

OK, try removing the pyproject.toml and MANIFEST.in files and trying again.

— Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmalcolmw%2Fpykonal%2Fissues%2F29%23issuecomment-1409147083&data=05%7C01%7Csrinty%40memphis.edu%7Cd83087a9e0494935cd1208db02f1fc8a%7Cae145aeacdb2446ab05a7858dde5ddba%7C0%7C0%7C638107010569720930%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=b9nKEecqvB3GT%2BYqT%2FWtD0gUCFPuHPkJSYdrKSJSWXU%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAVPIJ5NMFMMBI42CUH7LEALWVADX5ANCNFSM6AAAAAAULOIWUA&data=05%7C01%7Csrinty%40memphis.edu%7Cd83087a9e0494935cd1208db02f1fc8a%7Cae145aeacdb2446ab05a7858dde5ddba%7C0%7C0%7C638107010569720930%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Yr%2F%2FPAYFZyXTerayUlFgHbIjoO46WZxnC%2BRp%2FKhhRKM%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

malcolmw commented 1 year ago

There doesn't seems to be any image attached to your message, @srinty.

srinty commented 1 year ago
Screenshot 2023-01-30 at 12 58 13 PM
malcolmw commented 1 year ago

OK, this looks like an environment issue: I think you are missing the xcrun executable. See the second to last line above [end of output] in the figure above.

srinty commented 1 year ago

Thank you so much. I fixed the problem. I had to install the command line tools for Xcode.

malcolmw commented 1 year ago

Great. Closing this issue as resolved.