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

UCS2 vs UCS4 #13

Open
ariza-droid opened this issue Jul 28, 2020 · 2 comments
Open

UCS2 vs UCS4 #13

ariza-droid opened this issue Jul 28, 2020 · 2 comments

Comments

@ariza-droid
Copy link

Problem description

Compiler problem. UCS2 vs UCS4

Program output

swiss --version
Traceback (most recent call last):
File "/.local/bin/swiss", line 18, in
from swiss.main import main
File "
/.local/lib/python2.7/site-packages/swiss/main.py", line 40, in
from LDClumper import *
File "/.local/lib/python2.7/site-packages/swiss/LDClumper.py", line 20, in
from AssocResults import *
File "
/.local/lib/python2.7/site-packages/swiss/AssocResults.py", line 23, in
from bx.intervals.intersection import *
File "~/.local/lib/python2.7/site-packages/bx/intervals/init.py", line 7, in
from bx.intervals.intersection import * # noqa: F40
ImportError: ~/.local/lib/python2.7/site-packages/bx/intervals/intersection.so: undefined symbol: PyUnicodeUCS2_FromStringAndSize

python
Python 2.7.18rc1 (default, Apr 7 2020, 12:05:55)
[GCC 9.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import sys
print sys.maxunicode
1114111
quit()
Which shows I am using UCS4

Would you kindly be able to suggest approaches to sort this out, please?

@welchr
Copy link
Member

welchr commented Jul 28, 2020

Seems similar to this: https://stackoverflow.com/questions/11878666/python-undefined-symbol-pyunicodeucs2-decodeutf8

Are you running multiple installations of python on the same system? Try which -a python and which -a python2 to see how many python interpreters are on your PATH.

You'll want to ensure you are installing/compiling the package and running it with the exact same python.

@ariza-droid
Copy link
Author

ariza-droid commented Jul 29, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants