Bug 693727 - [abrt] R2spec-3.0.3-1.fc14: Description.py:150:setDescriptionFile:OSError: [Errno 2] No such file or directory: './tmp/ArrayExpressHTS'
Summary: [abrt] R2spec-3.0.3-1.fc14: Description.py:150:setDescriptionFile:OSError: [E...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: R2spec
Version: 14
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pierre-YvesChibon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e3f47e22
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-05 12:55 UTC by Adam Huffman
Modified: 2011-05-09 07:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-09 07:21:12 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (940 bytes, text/plain)
2011-04-05 12:55 UTC, Adam Huffman
no flags Details

Description Adam Huffman 2011-04-05 12:55:57 UTC
abrt version: 1.1.17
architecture: x86_64
component: R2spec
executable: /usr/bin/R2spec
kernel: 2.6.35.11-83.fc14.x86_64
package: R2spec-3.0.3-1.fc14
reason: Description.py:150:setDescriptionFile:OSError: [Errno 2] No such file or directory: './tmp/ArrayExpressHTS'
release: Fedora release 14 (Laughlin)
time: 1302007987
uid: 500

backtrace
-----
Description.py:150:setDescriptionFile:OSError: [Errno 2] No such file or directory: './tmp/ArrayExpressHTS'

Traceback (most recent call last):
  File "/usr/bin/R2spec", line 49, in <module>
    R2spec().main(source, url, package, bioc, cran, rforge, rproject, copyFile, name, email, force)
  File "/usr/lib/python2.7/site-packages/r2spec/R2spec.py", line 115, in main
    package.setDescription()
  File "/usr/lib/python2.7/site-packages/r2spec/RPackage.py", line 152, in setDescription
    description.setDescriptionFile(self)
  File "/usr/lib/python2.7/site-packages/r2spec/Description.py", line 150, in setDescriptionFile
    os.chdir("./tmp/" + package.name)
OSError: [Errno 2] No such file or directory: './tmp/ArrayExpressHTS'

Local variables in innermost frame:
self: <r2spec.Description.Description instance at 0x1e33d88>
original_directory: '/home/adam/rpmbuild/SOURCES'
package: <r2spec.RPackage.RPackage instance at 0x1df9e60>

How to reproduce
-----
1. Tried to build spec file for new R package (in tar.gz)
2.
3.

Comment 1 Adam Huffman 2011-04-05 12:55:59 UTC
Created attachment 489974 [details]
File: backtrace

Comment 2 Adam Huffman 2011-04-05 13:09:42 UTC
It only seems to work for me if I put the .tar.gz in ~/rpmbuild/SOURCES and then run R2spec in that directory.  Otherwise, it crashes.

Comment 3 Pierre-YvesChibon 2011-04-10 11:19:49 UTC
Thanks for the heads-up, I thought I fixed this issue on the git but I cannot find a correspondent entry in the git log... I should document more.

I will try to look into it.

Comment 4 Pierre-YvesChibon 2011-04-10 11:52:34 UTC
I just pushed a fix in the git repo, you may want to test it :)

One of these days I will (re)write the version 3 of this tool from scratch...

Comment 5 Adam Huffman 2011-04-19 12:34:29 UTC
Yes, it fixes this particular problem, though I still need to put in the explicit path to the downloaded tarball, even if it's in the current directory.  Would be nice if I didn't have to do that...

Thanks,
Adam

Comment 6 Pierre-YvesChibon 2011-05-09 07:21:12 UTC
Point taken but I will close this bug as for now it is the intended behaviour.

Thanks for the report.


Note You need to log in before you can comment on or make changes to this bug.