-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
OpenMS is not working #7333
Comments
Hi! I think you might be getting this error because of one of the following reasons:
Let us know if you need help checking any of those facts. Tagging @cbielow as a windows and SIMD expert. |
Hi, Thank you for your help, You are running 32-bit Python or a 32-bit Windows Thanks |
Hm ok. |
Hi, Thank you for your efforts. Enclosed is a screenshot for Dependency and Pyopenms |
Thank you very much for your quick and helpful debugging. |
Hi! Maybe the missing ordinals are a problem, but they are from a system library, not anything that we ship. Can you try in whatever python (environment) this code is called by fragpipe to run:
To potentially debug at which library it really crashes. |
Thank you very much for your help looking in on our problem! Unfortunately, I’m getting a ModuleNotFoundError when trying to call dlltracer. Where were you able to find this? Thanks for all of your help!
From: Julianus Pfeuffer ***@***.***>
Sent: Saturday, April 20, 2024 6:41 AM
To: OpenMS/OpenMS ***@***.***>
Cc: Kennedy, Jacob J ***@***.***>; Comment ***@***.***>
Subject: Re: [OpenMS/OpenMS] OpenMS is not working (Issue #7333)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hi!
Maybe the missing ordinals are a problem, but they are from a system library, not anything that we ship.
The incorrect checksums are less likely to be a problem, I don't think they are checked by default during loading (I think a checksum of 0 just means we don't encode any into the DLL).
Can you try in whatever python (environment) this code is called by fragpipe to run:
import dlltracer
import sys
with dlltracer.Trace(out=sys.stdout):
import pyopenms
print(pyopenms.__version__)
(I found this somewhere, never tried myself)
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/OpenMS/OpenMS/issues/7333*issuecomment-2067677920__;Iw!!GuAItXPztq0!kWXNHinu0XGvmKkKZf3onParfNcngT5Fr912YUNTSHx3XJMHZcOfuFuAvhPbPLRXxsccAFJxADSoSGI3Nag0CyISAg0$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/BH5ZB3XA5CFKGOQLYYJRPDTY6JV6LAVCNFSM6AAAAABC2S2POCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXGY3TOOJSGA__;!!GuAItXPztq0!kWXNHinu0XGvmKkKZf3onParfNcngT5Fr912YUNTSHx3XJMHZcOfuFuAvhPbPLRXxsccAFJxADSoSGI3Nag0pLX5Wo0$>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Oh yes, you need to |
Of course. Sorry about that! Here’s what I get back:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_native.pyx", line 285, in dlltracer._native.Trace.__enter__
File "_native.pyx", line 306, in dlltracer._native.Trace.start
File "_native.pyx", line 186, in dlltracer._native._check
PermissionError: [WinError 5] failed to start trace (0x00000005)
From: Julianus Pfeuffer ***@***.***>
Sent: Monday, April 22, 2024 10:21 AM
To: OpenMS/OpenMS ***@***.***>
Cc: Kennedy, Jacob J ***@***.***>; Comment ***@***.***>
Subject: Re: [OpenMS/OpenMS] OpenMS is not working (Issue #7333)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Oh yes, you need to pip install dlltracer into that env first. I forgot.
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/OpenMS/OpenMS/issues/7333*issuecomment-2070315819__;Iw!!GuAItXPztq0!miYHAkLMWtgA806crMVUlPtPVfzVUgLXNCJNHQESaJyJOIMExCq3FrKKjiH3KRlPeg3OkvXtNgom3BcF6SOWFs8HPQo$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/BH5ZB3Q5Y6YW73CCITI2BATY6VBI5AVCNFSM6AAAAABC2S2POCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZQGMYTKOBRHE__;!!GuAItXPztq0!miYHAkLMWtgA806crMVUlPtPVfzVUgLXNCJNHQESaJyJOIMExCq3FrKKjiH3KRlPeg3OkvXtNgom3BcF6SOWkDzQwMU$>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Hmmm can you try running it from an elevated/admin command line or python Run as Administrator? |
Unfortunately I don’t have admin rights on either of the 2 workstations that we’re trying to run this. Could that be our problem?
From: Julianus Pfeuffer ***@***.***>
Sent: Monday, April 22, 2024 1:44 PM
To: OpenMS/OpenMS ***@***.***>
Cc: Kennedy, Jacob J ***@***.***>; Comment ***@***.***>
Subject: Re: [OpenMS/OpenMS] OpenMS is not working (Issue #7333)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hmmm can you try running it from an elevated/admin command line or python Run as Administrator?
Do you have those permissions? I think they are unfortunately necessary for this kind of debugging.
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/OpenMS/OpenMS/issues/7333*issuecomment-2070920310__;Iw!!GuAItXPztq0!gC9FvPo2yRSL8Rf47mQzwBcn6RC48paPUJw-55meT-ru9zsSpf6z8oAM8Jc5ssp7PMlPRzCuspuufHq18PSmuHB6IRI$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/BH5ZB3XMEP3FJRN5DUCIZ53Y6VZCFAVCNFSM6AAAAABC2S2POCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZQHEZDAMZRGA__;!!GuAItXPztq0!gC9FvPo2yRSL8Rf47mQzwBcn6RC48paPUJw-55meT-ru9zsSpf6z8oAM8Jc5ssp7PMlPRzCuspuufHq18PSmmMgTX-0$>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
In theory it should not affect the execution but I cannot guarantee. Maybe it's also the way that fragpipe calls easypqp that calls pyopenms.. (and the permissions involved in spawning those subprocesses or accessing files/dlls) Can you try just importing pyopenms in the python env? This should "work" without admin permissions (or at least fail with the initial error). Other options are trying a fresh Windows virtual machine or so, to see if it's reproducible. Unfortunately I do not have Windows, therefore we depend on GitHub's public runners, on which pyopenms works on a fresh "installation" |
Looks like I got the same error in the python env (below). Also, we did wipe this Windows machine & start from scratch to try & fix this issue. We figured we’d try that before bugging you! Thank you very much for your time!
Warning: OPENMS_DATA_PATH environment variable already exists. pyOpenMS will use it (C:\Program Files\OpenMS-3.1.0\share\OpenMS) to locate data in the OpenMS share folder (e.g., the unimod database), instead of the default (C:\ProgramData\Python_3.9\lib\site-packages\pyopenms\share/OpenMS).
======================================================================
Error when loading pyOpenMS libraries!
Libraries could not be found / could not be loaded.
To debug this error, please run ldd (on linux), otool -L (on macOS) or dependency walker (on windows) on
C:\ProgramData\Python_3.9\lib\site-packages\pyopenms\pyopenms*.so
======================================================================
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\ProgramData\Python_3.9\lib\site-packages\pyopenms\__init__.py", line 107, in <module>
raise e
File "C:\ProgramData\Python_3.9\lib\site-packages\pyopenms\__init__.py", line 65, in <module>
from ._all_modules import * # pylint: disable=wildcard-import; lgtm(py/polluting-import)
File "C:\ProgramData\Python_3.9\lib\site-packages\pyopenms\_all_modules.py", line 1, in <module>
from ._pyopenms_1 import * # pylint: disable=wildcard-import; lgtm(py/polluting-import)
ImportError: DLL load failed while importing _pyopenms_1: A dynamic link library (DLL) initialization routine failed.
From: Julianus Pfeuffer ***@***.***>
Sent: Monday, April 22, 2024 11:26 PM
To: OpenMS/OpenMS ***@***.***>
Cc: Kennedy, Jacob J ***@***.***>; Comment ***@***.***>
Subject: Re: [OpenMS/OpenMS] OpenMS is not working (Issue #7333)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
In theory it should not affect the execution but I cannot guarantee. Maybe it's also the way that fragpipe calls easypqp that calls pyopenms.. (and the permissions involved in spawning those subprocesses or accessing files/dlls)
Can you try just importing pyopenms in the python env? This should "work" without admin permissions (or at least fail with the initial error).
Other options are trying a fresh Windows virtual machine or so, to see if it's reproducible.
Unfortunately I do not have Windows, therefore we depend on GitHub's public runners, on which pyopenms works on a fresh "installation"
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/OpenMS/OpenMS/issues/7333*issuecomment-2071499373__;Iw!!GuAItXPztq0!hZ1rYggMaZLd5CG7AuYcl_tPWG43PU9XmJIOtEYWjm40npoKcyUt580ohlbBwCOeXq6aJoISe0oDJXyzspG6GetfwWs$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/BH5ZB3TUUEEWTILLLZUBIZLY6X5JDAVCNFSM6AAAAABC2S2POCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZRGQ4TSMZXGM__;!!GuAItXPztq0!hZ1rYggMaZLd5CG7AuYcl_tPWG43PU9XmJIOtEYWjm40npoKcyUt580ohlbBwCOeXq6aJoISe0oDJXyzspG6tOwcboA$>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Hi,
The following message was found when generated a spectrum library using DDA data. Please help
Thanks
Traceback (most recent call last):
File "C:\ProgramData\Python_3.9\Scripts\easypqp-script.py", line 33, in
sys.exit(load_entry_point('easypqp==0.1.42', 'console_scripts', 'easypqp')())
File "C:\ProgramData\Python_3.9\Scripts\easypqp-script.py", line 25, in importlib_load_entry_point
return next(matches).load()
File "C:\ProgramData\Python_3.9\lib\importlib\metadata.py", line 86, in load
module = import_module(match.group('module'))
File "C:\ProgramData\Python_3.9\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in load_unlocked
File "", line 850, in exec_module
File "", line 228, in call_with_frames_removed
File "C:\ProgramData\Python_3.9\lib\site-packages\easypqp\main.py", line 9, in
from .convert import conversion, basename_spectralfile
File "C:\ProgramData\Python_3.9\lib\site-packages\easypqp\convert.py", line 18, in
import pyopenms as po
File "C:\ProgramData\Python_3.9\lib\site-packages\pyopenms_init.py", line 107, in
raise e
File "C:\ProgramData\Python_3.9\lib\site-packages\pyopenms_init.py", line 65, in
from ._all_modules import * # pylint: disable=wildcard-import; lgtm(py/polluting-import)
File "C:\ProgramData\Python_3.9\lib\site-packages\pyopenms_all_modules.py", line 1, in
from ._pyopenms_1 import * # pylint: disable=wildcard-import; lgtm(py/polluting-import)
ImportError: DLL load failed while importing _pyopenms_1: A dynamic link library (DLL) initialization routine failed.
======================================================================
Error when loading pyOpenMS libraries!
Libraries could not be found / could not be loaded.
To debug this error, please run ldd (on linux), otool -L (on macOS) or dependency walker (on windows) on
C:\ProgramData\Python_3.9\lib\site-packages\pyopenms\pyopenms*.so
======================================================================
Traceback (most recent call last):
File "C:\Fragpipe\FragPipe-jre-21.1\fragpipe\tools\speclib\gen_con_spec_lib.py", line 724, in
main_easypqp()
File "C:\Fragpipe\FragPipe-jre-21.1\fragpipe\tools\speclib\gen_con_spec_lib.py", line 566, in main_easypqp
subprocess.run([os.fspath(easypqp), '--version'], check=True)
File "C:\ProgramData\Python_3.9\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\ProgramData\Python_3.9\Scripts\easypqp.exe', '--version']' returned non-zero exit status 1.
Process 'SpecLibGen' finished, exit code: 1
Process returned non-zero exit code, stopping
log_2024-02-04_16-55-51.txt
The text was updated successfully, but these errors were encountered: