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

ObjID already exists error #974

Open
mschwamb opened this issue Jun 21, 2024 · 1 comment
Open

ObjID already exists error #974

mschwamb opened this issue Jun 21, 2024 · 1 comment

Comments

@mschwamb
Copy link
Collaborator

Traceback (most recent call last):
File "/home/mschwamb/.conda/envs/sorcha/bin/sorcha", line 8, in
sys.exit(main())
^^^^^^
File "/home/mschwamb/sorcha/src/sorcha/sorcha.py", line 541, in main
runLSSTSimulation(args, configs)
File "/home/mschwamb/sorcha/src/sorcha/sorcha.py", line 343, in runLSSTSimulation
PPWriteOutput(args, configs, observations, endChunk, verbose=args.verbose, lastchunk=lastChunk)
File "/home/mschwamb/sorcha/src/sorcha/modules/PPOutput.py", line 227, in PPWriteOutput
observations = PPOutWriteSqlite3(observations, out, lastchunk)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mschwamb/sorcha/src/sorcha/modules/PPOutput.py", line 100, in PPOutWriteSqlite3
cur.execute("CREATE INDEX ObjID ON {} (ObjID)".format(tablename))
sqlite3.OperationalError: index ObjID already exists

@mschwamb
Copy link
Collaborator Author

This might because I had two processes running at the same time. I see two log files. More posting so that we want to put this in the FAQ

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

1 participant