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

'filename' couldn't be opened #169

Open
wlevans opened this issue May 22, 2023 · 2 comments
Open

'filename' couldn't be opened #169

wlevans opened this issue May 22, 2023 · 2 comments

Comments

@wlevans
Copy link

wlevans commented May 22, 2023

I have written a simple program using LDPC that runs on an Ubuntu 22.04 embedded system with dual Cortex A9 cores. I need the program to run automatically, so I created a systemd service so that it would start at boot. Unfortunately, when starting this way, I get the following error:

terminate called after throwing an instance of 'aff3ct::tools::invalid_argument'
what(): In the '/home/xilinx/aff3ct/aff3ct/src/Tools/Code/LDPC/Matrix_handler/LDPC_matrix_handler.cpp' file at line 63 ('read' function): "'filename' couldn't be opened ('filename' = matrixes/MACKAY_504_1008.alist)."

When I run the program form the command line, I do not get this error, and the program runs fine.

I have verified that he directory and file (matrixes/MACKAY_504_1008.alist) have the read permissions set (all have read access).

Any help on this matter would be appreciated.

@kouchy
Copy link
Member

kouchy commented May 23, 2023

Did you simply try to use a absolute path? Maybe your relative path is wrong because it is not relative to where you think.

@wlevans
Copy link
Author

wlevans commented May 23, 2023

That was it. I should have known.

Thanks for you assistance and time.

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

2 participants