usnistgov / pySCATMECH

pySCATMECH is a Python interface to SCATMECH: Polarized Light Scattering C++ Class Library
https://pages.nist.gov/pySCATMECH/index.html
Other
30 stars 12 forks source link

M1 Mac problem pySCATMECH implementation #4

Open ODBSte opened 1 year ago

ODBSte commented 1 year ago

Hi,

I am pretty new to Python and my computer is an M1 Mac. Could anybody help me run pySCATMECH in Python still?

There error I get is; "Collecting pyscatmech Using cached pySCATMECH-0.1.0.tar.gz (354 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [7 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/private/var/folders/0c/brm449sn4j539cjpxj46m2yw0000gn/T/pip-install-vynbs0il/pyscatmech_fa8e432ead0c4ae7a60509a3312f0eea/setup.py", line 172, in extra_compile_args = extra_compile_args, NameError: name 'extra_compile_args' is not defined platform.system() = Darwin [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details. (base) o[NAME OF COMPUTER] ~ % "

Does anybody know the solution? You'll have my eternal gratitude!