Closed gisi90 closed 5 years ago
That is an interesting error! I looks like makedirs()
, which should not do anything if the directory already exists, is getting confused and trying to mkdir()
the current directory .
.
I have just committed a possible fix. If you'll try this:
pip install https://github.com/skyfielders/python-skyfield/archive/master.zip
then you might be able to get past the error. Let me know what happens!
Thank you. I tried and now get a NameError:
from skyfield.api import Loader
Traceback (most recent call last): File "D:\Programme\miniconda\envs\envpy3\lib\site-packages\skyfield\iokit.py", line 98, in init os.makedirs(self.directory) File "D:\Programme\miniconda\envs\envpy3\lib\os.py", line 221, in makedirs mkdir(name, mode) PermissionError: [WinError 5] Zugriff verweigert: '.'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "
", line 1, in File "D:\Programme\miniconda\envs\envpy3\lib\site-packages\skyfield\api.py", l ine 21, in load = Loader('.') File "D:\Programme\miniconda\envs\envpy3\lib\site-packages\skyfield\iokit.py", line 100, in init if e.errno != errno.EEXIST and not os.path.isdir(name): NameError: name 'name' is not defined
Drat, I cut-and-pasted that code from the modern Standard Library without changing "name" to the actual variable that holds the directory name in this case.
I've updated the code, please try again!
Hi @brandon-rhodes we do use your library in our mission support system and @gisi90 tracked it down. https://bitbucket.org/wxmetvis/mss/issues/446/mss-python-crashes-when-started-in-conda
Do you plan a minor bug fix release with this improvement?
I've updated the code, please try again!
@brandon-rhodes Great, now it works!
@ReimarBauer Yes, I've just released a new version that includes the fix. Enjoy!
@ReimarBauer Yes, I've just released a new version that includes the fix. Enjoy!
Many Thanks, just pushed a new build for our application.
(envpy3) C:\>python Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Ana conda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information.
from skyfield.api import Loader
(envpy3) C:\>conda list
(envpy3) C:\>conda info