mahart-studio / kivystudio

A Software development environment for software developers
MIT License
189 stars 51 forks source link

error os.getlogin() #26

Closed juanjavatus closed 5 years ago

juanjavatus commented 5 years ago

hi, I am getting the following error running main.py:

File "../kivystudio/widgets/filemanager/init.py", line 65, in get_defualt_user_dir username = os.getlogin() FileNotFoundError: [Errno 2] No such file or directory

Regards

mahart-studio commented 5 years ago

This should be fixed now, try to pull now

juanjavatus commented 5 years ago

I solved with this: username = getpass.getuser() thanks for your answer Regards

brunobrown commented 2 years ago

For me it worked like this:

In "filemanager/init.py", on line 67, change from: username = os.getlogin() for: username = getpass.getuser()


Also modify the method "open(self, *largs):" on line 37 of the "modal_cursor.py" file to:

def open(self, *largs): # self._window = self._search_window() # if not self._window: # Logger.warning('ModalView: cannot open view, no window found.') # return if self.parent: self.parent.remove_widget(self) Window.add_widget(self)