Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data and demo directory missing #7

Closed
kalium99 opened this issue Apr 4, 2011 · 3 comments
Closed

data and demo directory missing #7

kalium99 opened this issue Apr 4, 2011 · 3 comments

Comments

@kalium99
Copy link

kalium99 commented Apr 4, 2011

Hi, I install funkload via easy_isntall onto Fedora 14. It seems to work, although the first strange thing I noticed is that the demo directory was missing. No big deal. I then ran a bench with seemingly no problems, but trying to generate html from the xml it gives me

Creating html report: ...Traceback (most recent call last):
  File "/usr/bin/fl-build-report", line 9, in <module>
    load_entry_point('funkload==1.15.0', 'console_scripts', 'fl-build-report')()
  File "/usr/lib/python2.7/site-packages/funkload-1.15.0-py2.7.egg/funkload  /ReportBuilder.py", line 283, in main
    options)()
  File "/usr/lib/python2.7/site-packages/funkload-1.15.0-py2.7.egg/funkload/ReportRenderHtmlBase.py", line 127, in render
    self.copyCss()
  File "/usr/lib/python2.7/site-packages/funkload-1.15.0-py2.7.egg/funkload/ReportRenderHtmlBase.py", line 98, in copyCss
    css_content = resource_string('funkload', 'data/funkload.css')
  File "/usr/lib/python2.7/site-packages/distribute-0.6.15-py2.7.egg/pkg_resources.py", line 881, in resource_string
   self, resource_name
  File "/usr/lib/python2.7/site-packages/distribute-0.6.15-py2.7.egg/pkg_resources.py", line 1154, in get_resource_string
    return self._get(self._fn(self.module_path, resource_name))
  File "/usr/lib/python2.7/site-packages/distribute-0.6.15-py2.7.egg/pkg_resources.py", line 1281, in _get
    stream = open(path, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/site-packages/funkload-1.15.0-py2.7.egg/funkload/data/funkload.css

The data directory does not exist at all, and I cannot find funkload.css anywhere else on the system.

@kalium99
Copy link
Author

kalium99 commented Apr 5, 2011

OK so I downloaded the source from git and installed from that, seems to fix things

@kalium99 kalium99 closed this as completed Apr 5, 2011
@bdelbosc
Copy link
Member

bdelbosc commented Apr 6, 2011

Hi,

Sorry for the delay,

it looks like your first install was done as a zip file (which is what the zip_safe flag is asking for) and that FunkLoad is not capable of running some actions in a compressed form.

On Debian and Ubuntu using easy_install it's always installed as a decompressed package, so I can not reproduce the problem.

It may be related to python2.7 or latest setuptools changes.
I think the zip_safe flag should be set to False, I will do this change once I am able to reproduce the problem

Thanks for your feedback.

ben

@bdelbosc bdelbosc reopened this Apr 6, 2011
@bdelbosc
Copy link
Member

bdelbosc commented Apr 7, 2011

Upgrading ez_setup to 0.6c11, fixing python2.7 troubles. Closed by b920b6c. Closed by b920b6c.

@bdelbosc bdelbosc closed this as completed Apr 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants