-
Notifications
You must be signed in to change notification settings - Fork 90
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
Reading Tdms files #123
Comments
It sounds like you are trying to read files that are not valid TDMS files, as they don't start with the first four |
I'm closing this issue but please reopen if you can reproduce this error with valid TDMS files. |
I've got the same issue trying to open a large TDMS file: ValueError: Segment does not start with b'TDSm', but with b'\xb1\x92\xaf\xf1' Anyone know how to resolve this issue? |
Hi @SeyedParvasi-NOV, if this is a valid TDMs file that LabVIEW can read then that sounds like a bug in npTDMS. Are you able to provide an example file that reproduces the problem? |
Hi, i've got the same issue, i looked up the tdfm file in editor and it starts with 'TDSm' Anyone has already solved this issue? |
Hi @altgynr, I'm happy to take a look at this issue if you can provide an example file with this problem. |
Are you opening the |
|
Hi Guys, i am running into the same problem. Concrete error: fails at line 3: What i don't understand is, when i run the code directly from my directory,where the script is located, everything is working fine. I can even reproduce the error on the manual execution if i paste an absolute path that does not exist, e.g: error will be: When i change it back it works again on the manual execution. Does anyone have an idea, why crontab makes the script fail with this error? |
https://www.w3schools.com/tags/tag_doctype.asp Can you post the error message? |
Hi, the error Segment does not start with b'TDSm', but with b'<!DO' occured During handling of the above exception, another exception occurred: Traceback (most recent call last): |
This seems quite odd, you should just get a When run as a cron job, the process will run in a different environment than your usual user shell. Are you using absolute paths in your cron job too or does the path depend on the environment somehow? https://stackoverflow.com/tags/cron/info and https://serverfault.com/questions/449651/why-is-my-crontab-not-working-and-how-can-i-troubleshoot-it might be a good place to start with debugging your cron job. |
I had some time to look into this issue again. I could fix it, by importing my User Environment from the Debian into the crontab script. Thanks for the help! |
I am running a script to read through the tdms files. However, I have run into a two problems.
Running the script through one folder is fine. However, when I run the script through a sub-directory of folders I run into two errors which I cannot find out what it means.
I have the loop read files only ending with '.tdms' within the sub-directories.
1). ValueError: Segment does not start with TDSm, but with $ '
2). ValueError: Segment does not start with TDSm, but with " %
The text was updated successfully, but these errors were encountered: