nuxeo / FunkLoad

Functional and load testing framework for web applications, written in Python
http://funkload.nuxeo.org/
GNU General Public License v2.0
381 stars 83 forks source link

data and demo directory missing #7

Closed kalium99 closed 13 years ago

kalium99 commented 13 years ago

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 commented 13 years ago

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

bdelbosc commented 13 years ago

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 commented 13 years ago

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