Bug 901771

Summary: [abrt] R2spec-4.1.0-2.fc18: rpackage.py:131:download:IOError: [Errno 2] No such file or directory: '/home/znmeb/rpmbuild/SOURCES/Rcmdr_1.9-3.tar.gz'
Product: [Fedora] Fedora Reporter: M. Edward (Ed) Borasky <znmeb>
Component: R2specAssignee: Pierre-YvesChibon <pingou>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: pingou, znmeb
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:70acf9320a67f20a48f5cf7830dc4c99c95002f2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-30 10:05:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: environ none

Description M. Edward (Ed) Borasky 2013-01-19 04:34:09 UTC
Description of problem:
Not sure - just ran R2spec

Version-Release number of selected component:
R2spec-4.1.0-2.fc18

Additional info:
cmdline:        /usr/bin/python /usr/bin/R2spec -p Rcmdr
executable:     /usr/bin/R2spec
kernel:         3.7.2-201.fc18.x86_64
uid:            1000

Truncated backtrace:
rpackage.py:131:download:IOError: [Errno 2] No such file or directory: '/home/znmeb/rpmbuild/SOURCES/Rcmdr_1.9-3.tar.gz'

Traceback (most recent call last):
  File "/usr/bin/R2spec", line 29, in <module>
    R2spec().main(ARG)
  File "/usr/lib/python2.7/site-packages/r2spec/r2spec_obj.py", line 274, in main
    pack.download(args.force_dl)
  File "/usr/lib/python2.7/site-packages/r2spec/rpackage.py", line 131, in download
    localfile = open(sources, 'w')
IOError: [Errno 2] No such file or directory: '/home/znmeb/rpmbuild/SOURCES/Rcmdr_1.9-3.tar.gz'

Local variables in innermost frame:
force: False
sourcedir: '/home/znmeb/rpmbuild/SOURCES'
url: 'http://cran.r-project.org/src/contrib/Rcmdr_1.9-3.tar.gz'
remotefile: <addinfourl at 139858648505448 whose fp = <socket._fileobject object at 0x7f3363c57450>>
sources: '/home/znmeb/rpmbuild/SOURCES/Rcmdr_1.9-3.tar.gz'
self: <r2spec.rpackage.RPackage object at 0x7f3361398e50>

Comment 1 M. Edward (Ed) Borasky 2013-01-19 04:34:12 UTC
Created attachment 682895 [details]
File: backtrace

Comment 2 M. Edward (Ed) Borasky 2013-01-19 04:34:13 UTC
Created attachment 682896 [details]
File: core_backtrace

Comment 3 M. Edward (Ed) Borasky 2013-01-19 04:34:15 UTC
Created attachment 682897 [details]
File: environ

Comment 4 M. Edward (Ed) Borasky 2013-01-19 04:36:36 UTC
I think I know what happened - there wasn't a '~/rpmbuild/' directory or its sub-directories when it crashed. Perhaps a 'mkdir -p' would be an appropriate fix.

Comment 5 Pierre-YvesChibon 2013-04-14 08:07:11 UTC
(In reply to comment #4)
> I think I know what happened - there wasn't a '~/rpmbuild/' directory or its
> sub-directories when it crashed. Perhaps a 'mkdir -p' would be an
> appropriate fix.

I'm not sure I want R2spec to create the directory but eventually it should fail in a nicer way.

Thanks for the report