search for: runtimeerror

Displaying 20 results from an estimated 653 matches for "runtimeerror".

2006 Jul 18
2
Testing which RuntimeError is raised
I am just starting to use unit testing. Way cool. But I am not finding very clear docs on assert_raise. I have managed to write a test that tells me that the destroy I am trying to test fails with a RuntimeError (as it should). However, I would really like to test that it rails for the specific reason I have in my model. How can I get more specific? Am I going to have to create my own exception class so I have a named exception to check for? What I have a the moment is: In my model file: # don'...
2018 Aug 05
3
[PATCH] v2v: rhv-plugin: Use string literal concatenation
...'%s', " "using any host" % (vdsm_id, datacenter.name)) return None @@ -193,15 +193,15 @@ def open(readonly): if transfer.phase != types.ImageTransferPhase.INITIALIZING: break if time.time() > endt: - raise RuntimeError("timed out waiting for transfer status " + + raise RuntimeError("timed out waiting for transfer status " "!= INITIALIZING") # Now we have permission to start the transfer. if params['rhv_direct']:...
2011 Oct 20
2
[PATCH] pygrub: do not overload RuntimeError for "no menu.lst found"
...efining a separate exception for "no bootloader config file found" avoids this. diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -29,6 +29,9 @@ import grub.ExtLinuxConf PYGRUB_VER = 0.6 +class NotFoundError(RuntimeError): + pass + def enable_cursor(ison): if ison: val = 2 @@ -412,7 +412,7 @@ class Grub: self.cf.filename = f break if self.__dict__.get(''cf'', None) is None: - raise RuntimeError, "couldn''t find boot...
2008 Jan 16
2
mysterious crash of a particular worker
...worker. 2008-01-16 15:55 StatusChecker: check method started 2008-01-16 15:55 StatusChecker: processing host head0 2008-01-16 15:55 StatusChecker: processing domain webconsole 2008-01-16 15:55 StatusChecker: processing host host1 2008-01-16 15:55 StatusChecker: error encountered for host host1: RuntimeError: Unable to ssh to 192.168.1.2 as root 2008-01-16 15:55 StatusChecker: check method completed 2008-01-16 15:56 StatusChecker: check method started 2008-01-16 15:56 StatusChecker: processing host head0 2008-01-16 15:56 StatusChecker: processing domain webconsole 2008-01-16 15:56 StatusChecker: proces...
2010 Nov 25
1
Can't run tests...illegal switch in RUBYOPT: -F (RuntimeError)
Does anyone have any insight into why this is happening? C:\Users\Family\workspace\myapp>rake test (in C:/Users/Family/workspace/myapp) C:/Program Files/Ruby187/bin/ruby.exe: illegal switch in RUBYOPT: -F (RuntimeError) C:/Program Files/Ruby187/bin/ruby.exe: illegal switch in RUBYOPT: -F (RuntimeError) C:/Program Files/Ruby187/bin/ruby.exe: illegal switch in RUBYOPT: -F (RuntimeError) Errors running test:units, test:functionals, test:integration! I''m in Rails 3... -- You received this message because...
2019 Nov 28
3
[PATCH] rhv-upload: Fix waiting for transfer
We were not considering failures while initializing the transfer. In this case the transfer phase can change to PAUSED_SYSTEM or FINISHED_FAILURE, and transfer_url will be None, which failed the upload with a misleading error: RuntimeError: direct upload to host not supported, requires ovirt-engine >= 4.2 and only works when virt-v2v is run within the oVirt/RHV environment, eg. on an oVirt node Change the wait loop to consider all cases: - Transfer failed and was removed - Transfer failed and will be removed soon - Transf...
2018 Jun 05
2
[PATCH] v2v: Log full imageio response on failure.
.../rhv-upload-plugin.py @@ -228,6 +228,29 @@ def can_flush(h): def get_size(h): return params['disk_size'] +# Any unexpected HTTP response status from the server will end up +# calling this function which logs the full error, pauses the +# transfer, sets the failed state, and raises a RuntimeError +# exception. +def unexpected_response(h, r, msg): + # Setting the failed flag in the handle causes the disk to be + # cleaned up on close. + h['failed'] = True + h['transfer_service'].pause() + + status = r.status + reason = r.reason + body = r.read() + + #...
2018 Jun 06
2
[PATCH v2] v2v: -o rhv-upload: Log full imageio response on failure.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-June/msg00015.html v2 fixes all the issues raised in Nir's review. I tested it against ovirt-engine-4.2.4.1-1.el7.noarch and it works, although I wasn't easily able to trigger the error path so that code is not really tested (except for syntax checking). Rich.
2010 Jul 19
2
Bug#589661: xen: FTBFS: RuntimeError: Can't find /usr/src/linux-support-2.6.32-5, please install the linux-support-2.6.32-5 package
...from debian_xen.debian import VersionXen File "/tmp/buildd/xen-4.0.1~rc3/debian/bin/../lib/python/debian_xen/__init__.py", line 19, in <module> _setup() File "/tmp/buildd/xen-4.0.1~rc3/debian/bin/../lib/python/debian_xen/__init__.py", line 16, in _setup raise RuntimeError("Can't find %s, please install the linux-support-%s package" % (support, version)) RuntimeError: Can't find /usr/src/linux-support-2.6.32-5, please install the linux-support-2.6.32-5 package make[1]: *** [debian/control-real] Error 1 make[1]: Leaving directory `/tmp/buildd/xen-4.0...
2018 Aug 08
2
[PATCH nbdkit] python: Try harder to print the full traceback on error.
...ast):\n', ' File "./python-exception.py", line 54, in config_complete\n raise_error1()\n', ' File "./python-exception.py", line 48, in raise_error1\n raise_error2()\n', ' File "./python-exception.py", line 45, in raise_error2\n raise RuntimeError("this is the test string")\n', 'RuntimeError: this is the test string\n'] which can be read by manually unfolding the exception in an editor as: nbdkit: error: ./python-exception.py: config_complete: error: Traceback (most recent call last): File "./python-exception.p...
2012 Feb 06
3
Can't complete the Getting Started tutorial due to ExecJS::RuntimeError in Home#index
I have just installed Rails 3.2.1 on my Xubuntu using the gem system and I try to make the tutorial http://guides.rubyonrails.org/getting_started.html and on section 4.3 Setting the Application Home Page I get the following error ExecJS::RuntimeError in Home#index Showing /home/xonx/rails/blog/app/views/layouts/application.html.erb where line #6 raised: (in /home/xonx/rails/blog/app/assets/javascripts/home.js.coffee) Extracted source (around line #6): 3: <head> 4: <title>Blog</title> 5: <%= stylesheet_link_tag...
2019 Sep 19
2
[PATCH] v2v: -o rhv-upload: cancel disk transfer on open failure
...a7f381a 100644 --- a/v2v/rhv-upload-plugin.py +++ b/v2v/rhv-upload-plugin.py @@ -193,12 +193,14 @@ def open(readonly): if transfer.phase != types.ImageTransferPhase.INITIALIZING: break if time.time() > endt: + transfer_service.cancel() raise RuntimeError("timed out waiting for transfer status " "!= INITIALIZING") # Now we have permission to start the transfer. if params['rhv_direct']: if transfer.transfer_url is None: + transfer_service.cancel()...
2007 Mar 29
0
[ wxruby-Bugs-9682 ] wxDC::Clear (RuntimeError) in controls sample
...#9682, was opened at 2007-03-29 17:14 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=9682&group_id=35 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: wxDC::Clear (RuntimeError) in controls sample Initial Comment: The message is: ./controls.rb:367:in `clear'': Swig director pure virtual method called wxDC::Clear (RuntimeError) This is in the wxwidgets_282 branch Tested on OS X Intel ---------------------------------------------------------------------- You c...
2008 Jan 11
0
Failure to load "openssl.bundle" (RuntimeError) - need help
...eiving the following error message: ember:~ trey$ ruby ~/Sites/cookbook2/script/generate scaffold recipe recipe /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb: 159:in `require_frameworks'': Failed to load /usr/local/lib/ruby/ site_ruby/1.8/i686-darwin8.9.1/openssl.bundle (RuntimeError) from /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb: 88:in `process'' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb: 49:in `send'' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb: 49:in `run'' from /Users/t...
2008 Nov 25
1
NetBeans 6.5: RuntimeError when running tests
Is anyone on the list having success using NetBeans 6.5? I''ve been having difficulty running my tests on NetBeans 6.5. Whenever I attempt to run the tests on my project, I get numerous errors such as this one: RuntimeError: appender ''<Logging::Appenders::File: /Users/george/ workspace/RPM/log/test.log>'' is closed These errors never occur when I run the tests from the command line. Removing the log file or touching it to create an empty one does not solve the problem, either. Also, these probl...
2011 May 16
1
You cannot have more than one Rails::Application (RuntimeError)
I installed RVM and am getting a kinds of errors. I have managed to get most things back to normal but I get this error now in one of my apps. /.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/application.rb:63:in `inherited'': You cannot have more than one Rails::Application (RuntimeError) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group,...
2015 Mar 27
1
samba_dnsupdate failed with RuntimeError: kinit for SMB4ECONOMIA$@ECONOMIA failed (Cannot contact any KDC for requested realm)
...pdc._msdcs.${DNSFOREST} ${HOSTNAME} 389) as we are not a PDC Traceback (most recent call last): File "/usr/sbin/samba_dnsupdate", line 510, in <module> get_credentials(lp) File "/usr/sbin/samba_dnsupdate", line 123, in get_credentials raise e *RuntimeError: kinit for SMB4ECONOMIA$@ECONOMIA failed (Cannot contact any KDC for requested realm)* Kinit works fine. This is mi /etc/resolv.conf: domain economia search economia nameserver 127.0.0.1 nameserver 192.168.186.234 (Windows2k3) samba dns server works fine too. I haven't run fsmo transfer to s...
2018 Jun 05
0
Re: [PATCH] v2v: Log full imageio response on failure.
...8,6 +228,29 @@ def can_flush(h): > def get_size(h): > return params['disk_size'] > > +# Any unexpected HTTP response status from the server will end up > +# calling this function which logs the full error, pauses the > +# transfer, sets the failed state, and raises a RuntimeError > +# exception. > +def unexpected_response(h, r, msg): > This is not really unexpected response, maybe "request_failed"? > + # Setting the failed flag in the handle causes the disk to be > + # cleaned up on close. > + h['failed'] = True > + h[...
2019 Sep 09
3
[PATCH] v2v: rhv-upload-plugin - improve wait logic after finalize
This is a patch which Daniel Erez wrote originally. I have modified it only to fix a small bug in the debug() statement, and Ilanit kindly tested it here: https://bugzilla.redhat.com/show_bug.cgi?id=1680361#c38 Rich.
2006 May 22
2
Bug#368531: RuntimeError: (111, 'Connection refused')
.../python2.3/site-packages/xen/xend/xenstore/xstransact.py", line 20, in __init__ self.transaction = xshandle().transaction_start() File "/usr/lib/python2.3/site-packages/xen/xend/xenstore/xsutil.py", line 18, in xshandle xs_handle = xen.lowlevel.xs.xs() RuntimeError: (111, 'Connection refused') The machine is a plain etch. The kernel is a binary obtained from Xen. The previous installation of Xen was manual and everything worked (it is not my first Xen installation). I installed the official package and it no longer works. Grub configuration : tit...