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

run the test scripts receive some error info #6

Closed
deven2014 opened this issue Jul 22, 2015 · 5 comments
Closed

run the test scripts receive some error info #6

deven2014 opened this issue Jul 22, 2015 · 5 comments

Comments

@deven2014
Copy link

When I finished install the Calvin, I run a test scripts, I saw some expected output but also I saw these error information:

D:\calvin-base-master>csdeploy calvin/scripts/test1.calvin
2015-07-22 14:16:23,325 INFO calvin.calvin.runtime.north.calvincontrol: Listening on: localhost:5001
Unhandled Error
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\calvin-0.1-py2.7.egg\calvin\runtime\north\scheduler.py", line 44, in run
async.run_ioloop()
File "C:\Python27\lib\site-packages\calvin-0.1-py2.7.egg\calvin\runtime\south\plugins\async\twistedimpl\async.py", line 38, in run_ioloop
reactor.run()
File "C:\Python27\lib\site-packages\twisted-15.2.1-py2.7-win32.egg\twisted\internet\base.py", line 1194, in run
self.mainLoop()
File "C:\Python27\lib\site-packages\twisted-15.2.1-py2.7-win32.egg\twisted\internet\base.py", line 1203, in mainLoop
self.runUntilCurrent()
--- ---
File "C:\Python27\lib\site-packages\twisted-15.2.1-py2.7-win32.egg\twisted\internet\base.py", line 825, in runUntilCurrent
call.func(_call.args, *_call.kw)
File "C:\Python27\lib\site-packages\calvin-0.1-py2.7.egg\calvin\runtime\north\calvin_node.py", line 149, in start
self.network.start_listeners([self.uri])
File "C:\Python27\lib\site-packages\calvin-0.1-py2.7.egg\calvin\runtime\north\calvin_network.py", line 160, in start_listeners
self.transports[schema].listen(uri)
exceptions.KeyError: 'calvinip'

2015-07-22 14:16:24,010 INFO calvin.StandardOut: StandardOut<54f676c0-f9f5-4716-8226-fef05a2fe64d>: 1
Traceback (most recent call last):
File "c:\python27\scripts\csdeploy-script.py", line 9, in
load_entry_point('calvin==0.1', 'console_scripts', 'csdeploy')()
File "C:\Python27\lib\site-packages\calvin-0.1-py2.7.egg\calvin\Tools\deploy_app.py", line 173, in main
select.select([], [], [], timeout)
select.error: (10022, 'An invalid argument was supplied')
2015-07-22 14:16:24,121 INFO calvin.StandardOut: StandardOut<54f676c0-f9f5-4716-8226-fef05a2fe64d>: 2
2015-07-22 14:16:24,230 INFO calvin.StandardOut: StandardOut<54f676c0-f9f5-4716-8226-fef05a2fe64d>: 3
2015-07-22 14:16:24,339 INFO calvin.StandardOut: StandardOut<54f676c0-f9f5-4716-8226-fef05a2fe64d>: 4

What is the error information 'Unhandled Error' and 'exceptions.KeyError: 'calvinip'' mean? how to remove these error?

@HaraldGustafsson
Copy link
Contributor

Hi,
calvinip is the uri schema currently implemented for connecting nodes over ip. It is expected to have successfully manged to register this transport plugin. Since it is missing in the dictionary (unknown key) it has failed. This could be for a number of reasons e.g. missing requirements, faulty configuration file (framework should be twisted) or perhaps that we have not tested enough on Windows (seems you run on Windows). I would expect the last to be the problem. Unfortunately I'm not at a computer to be able to verify the problem. Maybe someone else in the team could check it out.

@HaraldGustafsson
Copy link
Contributor

I have hopefully fixed this issue when running on Windows (with today's commit on the master branch). Let me know if it works so we can close this bug.

@deven2014
Copy link
Author

Yes. It seems the bugs have been fixed. I updated calvin_network.py and ran the test script, the errors 'Unhandled Error' and 'exceptions.KeyError: 'calvinip'' had gone.
But I notice there a statement 'select.error: (10022, 'An invalid argument was supplied')' , what is that mean?
Test result:
D:\calvin-base-master\calvin\scripts>csdeploy test1.calvin
2015-07-24 14:12:07,157 INFO calvin.calvin.runtime.north.calvincontrol: Listening on: localhost:5001
Traceback (most recent call last):
File "c:\python27\scripts\csdeploy-script.py", line 9, in
load_entry_point('calvin==0.1', 'console_scripts', 'csdeploy')()
File "C:\Python27\lib\site-packages\calvin-0.1-py2.7.egg\calvin\Tools\deploy_app.py", line 173, in main
select.select([], [], [], timeout)
select.error: (10022, 'An invalid argument was supplied')
2015-07-24 14:12:07,578 INFO calvin.StandardOut: StandardOut: 1
2015-07-24 14:12:07,687 INFO calvin.StandardOut: StandardOut: 2
2015-07-24 14:12:07,796 INFO calvin.StandardOut: StandardOut: 3
2015-07-24 14:12:07,905 INFO calvin.StandardOut: StandardOut: 4
2015-07-24 14:12:08,015 INFO calvin.StandardOut: StandardOut: 5
2015-07-24 14:12:08,124 INFO calvin.StandardOut: StandardOut: 6

@olaan
Copy link
Contributor

olaan commented Jul 24, 2015

It appears that passing 3 empty lists to select.select() gives this error under Windows. Since the select here simply a wait, I think the error is non-critical.

-----Original Message-----
From: deven2014 [notifications@github.com]
Received: fredag, 24 jul 2015, 14:18
To: EricssonResearch/calvin-base [calvin-base@noreply.github.com]
Subject: Re: [calvin-base] run the test scripts receive some error info (#6)

Yes. It seems the bugs have been fixed. I updated calvin_network.py and ran the test script, the errors 'Unhandled Error' and 'exceptions.KeyError: 'calvinip'' had gone.
But I notice there a statement 'select.error: (10022, 'An invalid argument was supplied')' , what is that mean?
Test result:
D:\calvin-base-master\calvin\scripts>csdeploy test1.calvin
2015-07-24 14:12:07,157 INFO calvin.calvin.runtime.north.calvincontrol: Listening on: localhost:5001
Traceback (most recent call last):
File "c:\python27\scripts\csdeploy-script.py", line 9, in
load_entry_point('calvin==0.1', 'console_scripts', 'csdeploy')()
File "C:\Python27\lib\site-packages\calvin-0.1-py2.7.egg\calvin\Tools\deploy_app.py", line 173, in main
select.select([], [], [], timeout)
select.error: (10022, 'An invalid argument was supplied')
2015-07-24 14:12:07,578 INFO calvin.StandardOut: StandardOut: 1
2015-07-24 14:12:07,687 INFO calvin.StandardOut: StandardOut: 2
2015-07-24 14:12:07,796 INFO calvin.StandardOut: StandardOut: 3
2015-07-24 14:12:07,905 INFO calvin.StandardOut: StandardOut: 4
2015-07-24 14:12:08,015 INFO calvin.StandardOut: StandardOut: 5
2015-07-24 14:12:08,124 INFO calvin.StandardOut: StandardOut: 6


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-124501543.

@deven2014
Copy link
Author

OK, Thank you for your help. I am trying to do another test(deploy 2 actors in different runtimes and connect the two actor) also met some problem. I refer in another issue. So I think I can close this issue now.

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

3 participants