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

--in-path Requirement #6

Open
marioahner opened this issue Nov 24, 2023 · 5 comments
Open

--in-path Requirement #6

marioahner opened this issue Nov 24, 2023 · 5 comments

Comments

@marioahner
Copy link

Hi when I use the jws2txt command I get the following output. This is maybe a naive question but why dosen't it work?

jws2txt /Users/test.jws

usage: jws2txt [-h] --in-path IN_PATH [--out-dir OUT_DIR]
[--delimiter DELIMITER] [--comments {True,False}]
[--header {True,False}]
jws2txt: error: the following arguments are required: --in-path

@jzftran
Copy link
Owner

jzftran commented Nov 28, 2023 via email

@marioahner
Copy link
Author

Hi,
thanks for the help, now I don't get the "--in-path" error anymore but it returns the following without converting the file:

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/bin/jws2txt", line 8, in
sys.exit(main())
^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/jws2txt/jws2txt.py", line 51, in main
JWSFile(path=jws_file_path).write_data(out_file=out_file_path,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/jws2txt/helpers/helpers.py", line 48, in init
file = ofio.olefile.OleFileIO(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/olefile/olefile.py", line 1075, in init
self.open(filename, write_mode=write_mode)
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/olefile/olefile.py", line 1192, in open
self._raise_defect(DEFECT_FATAL, "not an OLE2 structured storage file")
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/olefile/olefile.py", line 1105, in _raise_defect
raise exception_type(message)
OSError: not an OLE2 structured storage file

FYI: I use MacOS Sonoma v14.1.1 and I aquired the .jws-Files using a Jasco J-715 and SpectraManager on a Win 2000 PC

Cheers,

Phil

@bargeliske
Copy link

bargeliske commented Mar 6, 2024

Hi,

It happens that I got get essentially the same error message as Phil while using Rocky linux 9.3.

To my surprise, it turned out the software was fine but somehow the files had been damaged earlier. When I obtained fresh files from the PhD student, it worked fine, for some 1200 files in total.

The files were absorption traces from a JASCO V660.

Cheers,
Hein

@heliosight
Copy link

Hi, when I use the software I get the following output. The file is not corrupt and can be opened by original Jasco software.
Do you have any ideas on how this could be fixed?

Thanks,
Igor

igia0001@client195-169 ~ % jws2txt --in-path /Users/igia0001/Downloads/test2.jws
Traceback (most recent call last):
File "/Users/igia0001/Library/Python/3.12/bin/jws2txt", line 5, in
from jws2txt.jws2txt import main
File "/Users/igia0001/Library/Python/3.12/lib/python/site-packages/jws2txt/init.py", line 1, in
from .helpers.helpers import JWSFile # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/igia0001/Library/Python/3.12/lib/python/site-packages/jws2txt/helpers/helpers.py", line 3, in
import olefile as ofio
ModuleNotFoundError: No module named 'olefile'
igia0001@client195-169 ~ %

@jzftran
Copy link
Owner

jzftran commented Jul 5, 2024 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

4 participants