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

Unable to use python package #978

Closed
christophgil opened this issue Jan 24, 2023 · 15 comments
Closed

Unable to use python package #978

christophgil opened this issue Jan 24, 2023 · 15 comments

Comments

@christophgil
Copy link

Using Fragpipe 19.1

I psecified python
/opt/conda/envs/py39/bin/python

However it is not finding easypqp
I unset PYTHONPATH and still not finding easypqp

Checking installed easypqp
/opt/conda/envs/py39/bin/pip show easypqp
Name: easypqp
Version: 0.1.35
Summary: EasyPQP: Simple library generation for OpenSWATH
....
Location: /opt/conda/envs/py39/lib/python3.9/site-packages

Workaround:
Explicitely setting PYTHONPATH to /opt/conda/envs/py39/lib/python3.9/site-packages
solves this issue.

@fcyu
Copy link
Member

fcyu commented Jan 24, 2023

I am sorry, but is there anything what we should fix or improve?

Thanks,

Fengchao

@christophgil
Copy link
Author

christophgil commented Jan 25, 2023 via email

@guoci
Copy link
Member

guoci commented Jan 25, 2023

@christophgil Can you enter in your terminal
/opt/conda/envs/py39/bin/python -m pip show --files easypqp
and show me the output?

@christophgil
Copy link
Author

christophgil commented Jan 26, 2023 via email

@guoci
Copy link
Member

guoci commented Jan 26, 2023

@christophgil What happens if you unset PYTHONPATH? What is the output then?

@christophgil
Copy link
Author

christophgil commented Jan 28, 2023 via email

@guoci
Copy link
Member

guoci commented Jan 30, 2023

@christophgil you are using a conda env and the commands you run needs conda activate.
The problem is when you run FragPipe you did not do conda activate before starting it.

@christophgil
Copy link
Author

christophgil commented Jan 31, 2023 via email

@fcyu
Copy link
Member

fcyu commented Jan 31, 2023

Hi Christoph,

Can you try if configuring the temp file directory works for you: #755 (comment) ?

Also, FragPipe's config directory is in HOME. There should be no issue for multi-user scenario.

Thanks,

Fengchao

@christophgil
Copy link
Author

christophgil commented Feb 5, 2023 via email

@fcyu
Copy link
Member

fcyu commented Feb 5, 2023

Hi Christoph,

Some tools, such as PeptideProphet if I remember it correctly, have some issues when there is a dot in the file name. That is why FragPipe wants you to rename the file.

But, you can skip the renaming step by clicking "try to rename files" and then "no":

image

image

Best,

Fengchao

@christophgil
Copy link
Author

christophgil commented Feb 6, 2023 via email

@fcyu fcyu closed this as completed Feb 6, 2023
@christophgil
Copy link
Author

christophgil commented Feb 8, 2023 via email

@fcyu
Copy link
Member

fcyu commented Feb 8, 2023

Hi Christoph,

I guess the Bruker code is responsible is'nt it?

Yes.

Is this open source code so I could inspect the code?

No.

BTW, you actually no need to work on the virtual FS because you don't have to rename the file name. See my last comment: #978 (comment)

Best,

Fengchao

@christophgil
Copy link
Author

christophgil commented Feb 8, 2023 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

3 participants