Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

OSError: [Errno 2] No such file or directory #17

Closed
anselal opened this issue Mar 27, 2017 · 5 comments
Closed

OSError: [Errno 2] No such file or directory #17

anselal opened this issue Mar 27, 2017 · 5 comments

Comments

@anselal
Copy link

anselal commented Mar 27, 2017

I try to run aetros on windows and get the following error. I did not have any issues when running it from linux. I have keras==1.2.2 installed. I do not know if the error is aetros related or not. Can you provide any feedback ?

Exception in thread Thread-1:
Traceback (most recent call last):
File "c:\python27\lib\threading.py", line 801, in __bootstrap_inner
self.run()
File "c:\python27\lib\threading.py", line 754, in run
self.__target(*self.__args, **self._kwargs)
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 131, in thread
if not self.connect():
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 82, in connect
self.event_listener.fire('registration', server_id)
File "c:\python27\lib\site-packages\aetros\backend.py", line 87, in fire
callback(parameter)
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 388, in registration_complete
self.server.send_message({'type': 'system', 'values': self.collect_system_information()})
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 405, in collect_system_information
values['disks'][name] = psutil.disk_usage(disk[1]).total
File "c:\python27\lib\site-packages\psutil_init
.py", line 2017, in disk_usage
return _psplatform.disk_usage(path)
File "c:\python27\lib\site-packages\psutil_pswindows.py", line 249, in disk_usage
raise OSError(errno.ENOENT, msg)
OSError: [Errno 2] No such file or directory: 'X:'

Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27\Scripts\aetros.exe_main
.py", line 9, in
File "c:\python27\lib\site-packages\aetros_init
.py", line 58, in main
code = command.main(cmd_args)
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 301, in main
self.server.send_message({'type': 'utilization', 'values': self.collect_system_utilization()})
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 434, in collect_system_utilization
values['disks'][name] = psutil.disk_usage(disk[1]).used
File "c:\python27\lib\site-packages\psutil_init_.py", line 2017, in disk_usage
return _psplatform.disk_usage(path)
File "c:\python27\lib\site-packages\psutil_pswindows.py", line 249, in disk_usage
raise OSError(errno.ENOENT, msg)
OSError: [Errno 2] No such file or directory: 'X:'

@anselal
Copy link
Author

anselal commented Mar 27, 2017

Drive X: is my CDROM drive. I inserted a cd and now I get the following error:

Exception in thread Thread-1:
Traceback (most recent call last):
File "c:\python27\lib\threading.py", line 801, in __bootstrap_inner
self.run()
File "c:\python27\lib\threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 13
1, in thread
if not self.connect():
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 82
, in connect
self.event_listener.fire('registration', server_id)
File "c:\python27\lib\site-packages\aetros\backend.py", line 87, in fire
callback(parameter)
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 38
8, in registration_complete
self.server.send_message({'type': 'system', 'values': self.collect_system_in
formation()})
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 40
8, in collect_system_information
if 0 != id.find('lo') and net.isup:
AttributeError: 'tuple' object has no attribute 'isup'

Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27\Scripts\aetros.exe_main
.py", line 9, in
File "c:\python27\lib\site-packages\aetros_init
.py", line 58, in main
code = command.main(cmd_args)
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 30
1, in main
self.server.send_message({'type': 'utilization', 'values': self.collect_syst
em_utilization()})
File "c:\python27\lib\site-packages\aetros\commands\ServerCommand.py", line 47
4, in collect_system_utilization
values['loadavg'] = os.getloadavg()
AttributeError: 'module' object has no attribute 'getloadavg'

@anselal
Copy link
Author

anselal commented Apr 22, 2017

It seems that the client does not run on Windows, since the command os.getloadavg() in only available on Unix systems based on the documentation https://docs.python.org/2/library/os.html#os.getloadavg

@marcj
Copy link
Member

marcj commented Jun 15, 2017

All those issues should be fixed in version 0.9.9

@marcj marcj closed this as completed Jun 15, 2017
@marcj
Copy link
Member

marcj commented Jun 15, 2017

Thanks for reporting this to us! Currently, we do not officially support Windows (since we do not have any windows developer in the team), however there should not many open issues left.

@anselal
Copy link
Author

anselal commented Jun 15, 2017

I updated to 0.9.9 and it seems OK now. Thank you !!

@anselal anselal mentioned this issue Jun 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants