sharppy / SHARPpy

Sounding/Hodograph Analysis and Research Program in Python
https://sharppy.github.io/SHARPpy/index.html
Other
216 stars 112 forks source link

v1.4.0b1 will not load profile if old .sharppy directory in user profile directory #180

Open georgephillips1 opened 4 years ago

georgephillips1 commented 4 years ago

Edit...Never mind the below text in this post. Problem is described in my last post in this thread.

I'm bringing this issue back up from the one you closed because I'm not sure you understood what was I trying to get at.

Previous versions of the Windows 10 binary/executable did not need any python installed. It was a standalone program that would run fine without a python installation.

The Win10 binary/executable for v1.4.0b1 will not load soundings and gives errors if python 3 is not installed. If this was what you intended, there needs to be guidance/instructions to ensure everyone knows this since it is a change in behavior from previous versions of the binary, and the readme certainly isn't clear that this would need to be done.

If this was not intended, then the binary is needing some environment or library from the python distribution that is not available in the executable, i.e. it is not standalone.

wblumberg commented 4 years ago

Hi @georgephillips1 . Yeah, I didn't understand what you were getting at in that earlier post I think. I'm sorry about that. The new binary shouldn't require that Python is installed, so this is kind of strange. I didn't run into this when I was doing Windows 10 testing, and I don't think Python 3 was installed on that machine at the time.

Could you provide some images of this issue showing the errors? If you look in the ~/.sharppy directory there should be a sharppy.log as well, since it looks like I didn't turn the debug off on this binary. If it exists, could you please post that in this thread? Thank you again for your help!

georgephillips1 commented 4 years ago

@wblumberg My diagnosis of the problem wasn't correct. It's not the installation of Anaconda that's the problem/solution, its having an old .sharppy directory in the user profile directory. There's some conflict with something in that old directory. When I removed that, it worked on both PCs, the one which previously had Anaconda 2.7 and the one that had only ever run the binary version from the Master distribution. Anyway, attached is the log from before I removed the old .sharppy directory if it helps diagnose why there's a problem.

Steps to reproduce.

  1. Remove .sharppy directory in the user profile directory.
  2. Run Win10 binary from Master branch and exit.
  3. Run Win10 binary from v1.4.0b1 Andover.
  4. That should produce an error on trying to generate the sounding display.

Edit...I think other users of the old binaries will also likely have this problem.

sharppy.log

wblumberg commented 4 years ago

@georgephillips1, thanks for looking into this some more. Your reason makes sense, and I remember at one point we had documentation telling the user to reinstall those files (when python setup.py install is run). With the Python version switch and more change to the files that go in that directory, I think that statement needs to be more generalized. I've added a line in bold in the install part of the documentation telling the user that they may need to remove that directory.

https://sharppy.github.io/SHARPpy/install.html