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

IntervalTree object has no attribute 'search #86

Closed
Lcornet opened this issue Feb 5, 2019 · 7 comments
Closed

IntervalTree object has no attribute 'search #86

Lcornet opened this issue Feb 5, 2019 · 7 comments
Assignees

Comments

@Lcornet
Copy link

Lcornet commented Feb 5, 2019

Dear Falcon team,

I have the following error while running unzip.py :
AttributeError: 'IntervalTree' object has no attribute 'search'
WARNING:root:Call '/bin/bash user_script.sh' returned 256.
WARNING:root:CD: 'uow-00' -> '/media/vol2/scratch/lcornet/cassava/falcon-test/3-unzip/0-phasing/001666F'
Traceback (most recent call last):
File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/falcon_kit/mains/generic_run_units_of_work.py", line 11
6, in
main()
File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/falcon_kit/mains/generic_run_units_of_work.py", line 11
2, in main
run(**vars(args))
File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/falcon_kit/mains/generic_run_units_of_work.py", line 65
, in run
pypeflow.do_task.run_bash(script, inputs, outputs, params)
File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/pypeflow/do_task.py", line 187, in run_bash
util.system(cmd)
File "/media/vol2/home/lcornet/anaconda2/envs/denovo_asm/lib/python2.7/site-packages/pypeflow/io.py", line 29, in syscall
raise Exception(msg)
Exception: Call '/bin/bash user_script.sh' returned 256.

i tried to install Intervaltree with pip wihout success , could you help me ?

@isovic
Copy link
Contributor

isovic commented Feb 5, 2019

Hi,
The IntervalTree API has unfortunately changed between versions which broke compatibility:
https://pypi.org/project/intervaltree/

The search(begin, end, strict) method no longer exists. Instead, use one of these:

This will be addressed in the next release, but for now please downgrade the IntervalTree library to an older version before the API change.

Best regards,
Ivan.

@isovic isovic self-assigned this Feb 5, 2019
@Lcornet
Copy link
Author

Lcornet commented Feb 5, 2019

Ok, thanks Ivan.

Could you point me to a specific version ?

Luc,

@isovic
Copy link
Contributor

isovic commented Feb 5, 2019

Sure, can you test out version 2.1.0?

Best regards,
Ivan.

@Lcornet
Copy link
Author

Lcornet commented Feb 5, 2019

i already try :
pip install intervaltree==2.1.0
I can downgrade, but it will give the same result, no ?

@isovic
Copy link
Contributor

isovic commented Feb 5, 2019

Strange, perhaps it's picking up the intervaltree package from a different location?
Did you have the conda environment activated before you installed this version of intervaltree?

According to the docs, this version should contain the search function:
https://pypi.org/project/intervaltree/2.1.0/

Ivan

@Lcornet
Copy link
Author

Lcornet commented Feb 7, 2019

pip install intervaltree==2.1.0 wthin conda fix it,

Thanks

@Lcornet Lcornet closed this as completed Feb 7, 2019
@pb-cdunn
Copy link

The latest pb-falcon/pb-assembly should also take care of this now. conda update --all

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

No branches or pull requests

3 participants