FCS-analysis / PyCorrFit

data analysis and fitting software for fluorescence correlation spectroscopy (FCS)
pycorrfit.craban.de
Other
48 stars 13 forks source link

/usr/bin/pycorrfit, debian packaging #105

Closed mestia closed 9 years ago

mestia commented 9 years ago

Hi Paul,

I am tring to make the debian package of the new version of pycorrfit. It all works good, but when I run the /usr/bin/pycorrfit script it gives me the following output: $pycorrfit Traceback (most recent call last): File "/usr/bin/pycorrfit", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2876, in working_set = WorkingSet._build_master() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 449, in _build_master ws.require(requires) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 745, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: pycorrfit==0.8.8

Any hint ?

python -m pycorrfit works fine.

Thank you Alex

paulmueller commented 9 years ago

It looks like pycorrfit is not installed correctly. System Python cannot find it. If I run sudo python setup.py install, the pycorrfit script is installed to /usr/local/bin/.

Does python -m pycorrfit work outside of the cloned repository?

mestia commented 9 years ago

Yes, python -m pycorrfit works outside of the repository when the package is isntalled.

Another question, how the split between pycorrfit module and gui is done ? is it the same code, just called with different options ?

paulmueller commented 9 years ago

The GUI requirement only adds dependencies during installation. The code is exactly the same. You can install pycorrfit without [GUI], install "wxPython", "matplotlib >= 1.1.0", "sympy >= 0.7.2" by hand, and there should not be any difference.

paulmueller commented 9 years ago

Is the correct version of PyCorrFit (0.8.8) displayed when you execute it with python -m pycorrfit? Are you running Debian Jessie?

mestia commented 9 years ago

it seems that I managed to solve the problem, the egg-info directory was missing in the package. yes, I run Jessie.