-
Notifications
You must be signed in to change notification settings - Fork 3
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
Installation instructions #17
Comments
The README gives
but I needed
|
gave
|
Hi @rweigel , thank you for your comments! I've published a new release of this package to pypi that fixes many of these installation issues. The one caveat is the apexpy dependency has some version incompatibilities (aburrell/apexpy#134, aburrell/apexpy#135) that aren't currently properly accounted for. Sometime next week, I think we'll do a new minor release of apexpy with required versions pinned, which should address the issue of amirsynthdata not installing easily with pip. For now, if you'd like to try reinstalling, please do the following in python 3.11 or lower:
I will post here when the new version of apexpy has been published and you can try installing with the normal instructions. |
I was able to install, but wanted to execute something like
but it seems I need to use the As a reviewer (and user), I would prefer to not spend most of my time dealing with installation and packaging issues before getting something working. I recommend adding a sequence of commands in the documentation that will 'just work' and for which statements such as 'This assumes you already have apexpy installed' are not needed. (See the "don't make me think" principle.) One minor recommendation.
which is useful, but I am not sure why this is a warning. Also, after the program completed, no feedback was given and my first guess was it failed. However, several files were created in the repo. I suggest giving more feedback to the user. Also, I sure if there is a way of handling this, but I tried the commands without checking my Python version (which was 3.12) and after about 30 seconds received an error. Is there a way to abort the installation early if there is a python version incompatibility? |
Thanks you for the feedback on the installation issues! I've updated the documentation to provide clearer starting instructions for new users. I've published a new version (v1.1.8) to pypi, which should link to the "stable" (default) documentation on ReadTheDocs. Additionally, a new version of apexpy has been published with versions pinned so pip installation should "just work" now. Can you please try the new instructions and let me know if you have issues? I'm hesitant include the example configuration file in the package because it doesn't make a lot of sense for this code and it's application to have a "default". There isn't really a single background ionospheric state or radar mode that is "typical", and I worry that introducing users to the package with a built-in configuration file but requiring they provide a different one as soon as they start doing anything "real" with the package would be confusing. I have modified the documentation to include more specific instruction of how to download and use the example configuration file. The warning you identified comes from cartopy - it looks like it's just informing you that it is downloading coastline data for the plots. I believe this is standard for cartopy and I'm not sure I should suppress the warning in amisrsynthdata. Unfortunately, I'm not sure there is a way to check the python version before building the package and save yourself the 30 seconds of failed installation time... This seems to be a feature of pip and I can't find any flag or setting to check the python version first. I have pinned python<3.12 in both amisrsynthdata and apexpy so it's evident on the pypi page at least. I know we're hoping to fix the apexpy compatibility issue sometime before the end of the year. |
I have finished my checklist. The following notes are for the benefit of the author and do not need a reply or action. See https://stackoverflow.com/questions/19534896/enforcing-python-version-in-setup-py regarding Python version checking. I put version checks in my code when I know something will fail because I've found many users conclude "code does not work" and give up and move on when a pip install does not work. I don't regard this as mandatory, however. Probably this should be handled in ApexPy. https://amisrsynthdata.readthedocs.io/en/stable/installation.html# has I was able to install using Other optional edits to consider:
I doubt this is worth fixing, but on an older intel mac 10.15 with Python 3.10 I got the following (I tend to not upgrade OS on systems with many difficult-to install packages, such as ApexPy, because an upgrade means days of figuring out how to get the packages working again).
|
@rweigel , thank you for your thorough feedback! I will work to fix these point by point. The documentation and linking issues can definitely be corrected, I appreciate you identifying them. The dependency on the finicky apexpy is an unfortunate necessity. I really need a magnetic coordinate package to handle the plasma velocity correctly, and apexpy has certain capabilities that tend to be lacking from the alternative options (most of which are equally if not more fraught with installation issues). I will log the issues you have had and we will try to fix them in the next release of apexpy. |
I executed the two commands at
https://github.com/amisr/amisrsynthdata/tree/main?tab=readme-ov-file
and received an error related to apexpy not being installed. Perhaps warn the user that the second command will fail unless they do
pip install amisrsynthdata[apex]
?At https://amisrsynthdata.readthedocs.io/en/latest/installation.html, the command
pin install
appears several times. Should that bepip install
?The text was updated successfully, but these errors were encountered: