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

I keep getting this error when I run the main.py #2

Open
maddy1096 opened this issue Oct 3, 2021 · 3 comments
Open

I keep getting this error when I run the main.py #2

maddy1096 opened this issue Oct 3, 2021 · 3 comments

Comments

@maddy1096
Copy link


Configuration number 0
LSN phase
LSN computing
LSN computed in 0.5838227272033691
Traceback (most recent call last):
File "main.py", line 354, in
main()
File "main.py", line 152, in main
sim.compute_simulation()
File "F:\icarus-framework-master\icarus_simulator\icarus_simulator.py", line 41, in compute_simulation
phase_result = phase.execute_phase(input_values, phase_fname)
File "F:\icarus-framework-master\icarus_simulator\phases\base_phase.py", line 91, in execute_phase
result, fname, compression="bz2", set_default_extension=False
File "C:\Users\Mudhurika\Anaconda3\envs\env\lib\site-packages\compress_pickle\compress_pickle.py", line 101, in dump
**kwargs,
File "C:\Users\Mudhurika\Anaconda3\envs\env\lib\site-packages\compress_pickle\utils.py", line 121, in instantiate_compresser
_path if isinstance(path, PATH_TYPES) else path, mode=mode, **kwargs
File "C:\Users\Mudhurika\Anaconda3\envs\env\lib\site-packages\compress_pickle\compressers\bz2.py", line 30, in init
self._stream = bz2.open(path, mode=mode, **kwargs)
File "C:\Users\Mudhurika\Anaconda3\envs\env\lib\bz2.py", line 322, in open
binary_file = BZ2File(filename, bz_mode, compresslevel=compresslevel)
File "C:\Users\Mudhurika\Anaconda3\envs\env\lib\bz2.py", line 96, in init
self._fp = _builtin_open(filename, mode)
OSError: [Errno 22] Invalid argument: 'result_dumps/LSN||LSN(reg-53°22x72f11e550km00h02m17s0000ms20200101000000-).pkl.bz2'

@maddy1096
Copy link
Author

Can you please help me with this ??

@Ex-Origin
Copy link

There is no result_dumps/ folder, you must first create one by mkdir result_dumps/.

@miaomiao1miao1
Copy link

Filenames shouldn't have '||' in Windows, so I replace '||' with '_' to fix this bug.

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