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

Can't execute pycorrfit #101

Closed
patta42 opened this Issue Apr 20, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@patta42

patta42 commented Apr 20, 2015

Hi there!

I'm trying to run pycorrfit on a SuSE13.1 machine. I have installed it using

> sudo pip install pycorrfit

and the corresponding files are found in /usr/lib64/

However, when I try to start it or import it in ipython, I get an ImportError:

from .read_pt3_scripts.correlation_objects import picoObject

ImportError: No module named read_pt3_scripts.correlation_objects

In the directory 'read_pt3_scripts' there are only two files named fib4.pyx and fib4.so, but no file correlation_objects.py. I also have downloaded the source tgz, and there the content of the directory is the same.

Is this file missing, do I have to generate it somehow, or how can I get pycorrfit to run?

Regards,

Patrick

@patta42

This comment has been minimized.

patta42 commented Apr 20, 2015

After I downloaded all the missing files from github and added a __init__.py in the directory, pycorrfit starts. So I assume the files are simply missing in the version installed using pip...

@paulmueller

This comment has been minimized.

Member

paulmueller commented Apr 20, 2015

Hi Patrick,

that is very strange. I thought I just fixed this problem. The latest release on pypi also contains the files you mention. Did you try:

sudo pip install https://pypi.python.org/packages/source/p/pycorrfit/pycorrfit-0.8.7-1.tar.gz#md5=bf4ea21fddac7e9c44122d8411128907

Thanks for reporting.

@patta42

This comment has been minimized.

patta42 commented Apr 21, 2015

Hi Paul,

this worked now. I also uninstalled it again and used

> sudo pip install pycorrfit

again, and this now works, too. My last try reported above was some days old, maybe the repository was not yet updated.

One minor remark: The title of the window now shows PyCorrFit 0.0.0 - ....

@paulmueller

This comment has been minimized.

Member

paulmueller commented Apr 21, 2015

I need your help concerning the wrong version of PyCorrFit. I assume that PyCorrFit was installed in

/usr/lib64/python2.7/dist-packages/pycorrfit/

Could you please verify that this file exists:

/usr/lib64/python2.7/dist-packages/pycorrfit_doc/ChangeLog.txt

or was it installed somewhere else?
You could find out by typing

 sudo updatedb
 sudo locate ChangeLog.txt | grep pycorrfit

Thanks!

@patta42

This comment has been minimized.

patta42 commented Apr 21, 2015

pycorrfit is installed in /usr/lib64/python2.7/site-packages/pycorrfit/ (not dist-packages)

However, the pycorrfit_doc directory and the ChangeLog are in /usr/lib/

> find /usr/lib* -name 'ChangeLog.txt'
/usr/lib/python2.7/site-packages/pycorrfit_doc/ChangeLog.txt

Content is:

> head `find /usr/lib* -name 'ChangeLog.txt'`
0.8.7
- Removed unused fitting parameter d_eva from model 6022 and
  secured backwards compatibility.
- Improved support for ALV700X (#92)
- Bugfix: Corrected false display of Unicode characters on Windows
- Under the hood:
   - Code cleanup with pyflakes
   - Repo cleanup (#98)
0.8.6
- Bugfix: Opening .fcs files with only one AC curve works now

HTH,

Patrick

@paulmueller

This comment has been minimized.

Member

paulmueller commented Apr 22, 2015

Thanks,
this is what I get for reading the program version from the changelog file. In this rare case it did not work. I fixed it. The version should be displayed correctly in the next release.
Cheers

paulmueller pushed a commit that referenced this issue Sep 30, 2015

paulmueller
Added search path /usr/lib. This is a workaround for #101.
Former-commit-id: 47ee17a6ab6216c5f9d0839d8e205570f666aff6 [formerly e0d428e865c0fed5a1a62035b0a59fb0abde506c] [formerly 5689a4b225329bd1b1fcd5025c862290fc9c9dd2 [formerly 18258cbcc34f0cacd672b9adc1b9713f9112d753]] [formerly 971403cd57c4fdaf42cdb9d7eeb43a615faeccab [formerly 6d34d6f394066f635af42346cc459275c3fd811f] [formerly 5404201e0638caa566ae5f079d1f3e02ff29de1e [formerly a1b7f1b]]]
Former-commit-id: 50243c415dccbc025ee20764b28b40bcb8b7089f [formerly 46104f7e8c202e3e0937303da99f272510e5ce84] [formerly 74e42e16de2872f2fcb3197f85ef9110370cebd8 [formerly 38e2cd9b1c26caa1ce23eaf8d0bf3631f315a26d]]
Former-commit-id: e310dea65690e8442692c90a33e0b6e9087e4e45 [formerly ec989c99b3a198fbb8eb1baf063582ed8cfb0048]
Former-commit-id: 356a582b13340d2e68c86d16eeaab507c5f68ae1

paulmueller pushed a commit that referenced this issue Sep 30, 2015

paulmueller
More general fix for lib-folder issue #101
Former-commit-id: 741e7483b0de7e7c0c6b0f48968ae655d5abcbc5 [formerly 8e275f37ac04797a53d9b89cdc1ddb2e0cb03d79] [formerly d660ce9b32b9fd8eb46c47bd9e2f0ca170f31211 [formerly 6a87438ca7c5ab340222c22502a5e1611eb1e9b9]] [formerly 893cda7d73e10cec38dc8b1c82ba7122349e3387 [formerly 65311bb9a16e07861fd74590f6e09506810328b8] [formerly 4955d03a7081cf64abb9092e9e5871b6b5bd2575 [formerly ba4e23d]]]
Former-commit-id: c0c312fd50602a3a917854f9278756b9943c0e90 [formerly 5fb55aee00244078c695301484fdcfae7753753f] [formerly d9d698e8523a6b0af614a02abf22e2711681a977 [formerly a6c9d5df136345c694e38e1243552a9594b2acf9]]
Former-commit-id: b90af8cfb62ba2b15c5205009b34c1baeb88462a [formerly 42e899f2bcddc9190e7f5da628edf45df458ff4a]
Former-commit-id: 6784fa4367fe3216db43b03fbb167148628216e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment