ashleychontos / pySYD

automated measurements of global asteroseismic parameters
https://pysyd.readthedocs.io
MIT License
25 stars 13 forks source link

setup does not work? #50

Closed dk1010101 closed 1 year ago

dk1010101 commented 1 year ago

Relevant Materials

Description + Fix

I've just installed pySYD for the first time using pip (first just using pip then i cloned the repo and installed it locally) and when i run setup i get a number of 'The filename, directory name, or volume label syntax is incorrect.' errors. The directories are created but no files can be found in them after running the setup.

Looking at the code i see that the way curl is called is .. understandable.. but will not work on all environments. On line 1128 in utils.py you have

subprocess.call(['curl %s > %s' % (infile, outfile)], shell=True)

whereas

subprocess.call(['curl', infile, '>', outfile], shell=True)

would be better as it works on latest python and on both windows and linux. Making this change locally fixes the problem.

Computing

Other

I didn't want to do the whole pull/sub for one line but can do if you would prefer although it is probably easier for you to do the one line change assuming you agree with it.


Summary Checklist:



Details of the solution are in the main text


ashleychontos commented 1 year ago

I was going to mention that the software does not yet include compatibility for python 3.11 but if it's only the one line that's failing for you, I am happy to implement that. Thanks for the heads up @dk1010101

dk1010101 commented 1 year ago

That is all that i have seen so far. There could be something else lurking but all the examples execute (at a first glance) as described in the docs.

ashleychontos commented 1 year ago

@dk1010101 following up on this...

I tried to incorporate your one-line workaround and setup failed on my macOSx (see attached), so it seems like this too does not work best across all platforms. Similarly, it did not download any of the data. Screen Shot 2023-07-28 at 5 27 00 PM Expanding on this, the raw string format '%s' should be the same for all so I'm very curious as to why this is failing now. Not to mention that there are other pysyd users that have windows OS and have not had issues with setup so this must be localized to the most recent python version and/or your platform... or some combination therein. Having more information about the error (or better, a screenshot of the terminal output) would be helpful.

ashleychontos commented 1 year ago

@dk1010101 at your earliest convenience, please upload a special test version of pysyd==0.10a2 and let me know if this resolves the issue.

ashleychontos commented 1 year ago

I will close this issue @dk1010101 if I do not hear back within the week