Comments (5)
Since pySRURGS saves files within its own directory and uses relative paths a lot, I have some hesitation about making it a package, as that may need a good deal of re-writing. I imagine that this would entail loading the package then specifying a working directory in which pySRURGS can save files. I'll leave this issue open and may work on it later.
from pysrurgs.
Hello,
Thank you very much for your software. I appreciate the speed and multiprocessing! But I found some problems during the computing on my dataset. I ran: "python pySRURGS.py -max_permitted_trees 1000 -path_to_db ./db/my_database_autocomm.db ./csv/all_sorted.csv 2000"
After approx. 1000 iterations the error of "database locked" occurs (the copy below). I also tested the same task on a cluster with 36 CPUs and the same error occured. I also used a ramdisk on Linux Mint or '":memory:" as a path to database, but nothing changed, the same error occured. I think that the error is caused by sqlite3. Please, could you give me some advises, or would you be so kind and edit little bit your software e.g. changing the type of database (PostgreSQL, ...)?
Thank you in advance.
Renata
MY ERROR:
Exception in thread Thread-671:
Traceback (most recent call last):
File "/home/pavel/anaconda3/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/pavel/.local/lib/python3.7/site-packages/sqlitedict.py", line 396, in run
conn.execute('PRAGMA journal_mode = %s' % self.journal_mode)
sqlite3.OperationalError: database is locked
Exception in thread Thread-666:
Traceback (most recent call last):
File "/home/pavel/anaconda3/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/pavel/.local/lib/python3.7/site-packages/sqlitedict.py", line 396, in run
conn.execute('PRAGMA journal_mode = %s' % self.journal_mode)
sqlite3.OperationalError: database is locked
Exception in thread Thread-619:
Traceback (most recent call last):
File "/home/pavel/anaconda3/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/pavel/.local/lib/python3.7/site-packages/sqlitedict.py", line 396, in run
conn.execute('PRAGMA journal_mode = %s' % self.journal_mode)
sqlite3.OperationalError: database is locked
Exception in thread Thread-658:
Traceback (most recent call last):
File "/home/pavel/anaconda3/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/pavel/.local/lib/python3.7/site-packages/sqlitedict.py", line 396, in run
conn.execute('PRAGMA journal_mode = %s' % self.journal_mode)
sqlite3.OperationalError: database is locked
from pysrurgs.
from pysrurgs.
The issue likely has to do with the filesystem used by high performance computing clusters. The Networked File System is not supported by Sqlite3.
from pysrurgs.
Closing since I do not plan on making this a package managed software.
from pysrurgs.
Related Issues (20)
- Unexpected results for simple test case (JOSS review) HOT 4
- Unittest HOT 1
- sqlite3 concurrency potential issues on network file systems HOT 1
- Attribute Error - Result HOT 1
- weights for dataset HOT 2
- add functionality for i==0 in exhaustive_search HOT 2
- Error : IndexError: list index out of range HOT 12
- Problem when running test.py HOT 2
- Understanding the random_equation_binary_tree method HOT 14
- Plotting issue HOT 4
- Changing data/parameters between consecutive runs HOT 2
- Multiprocessing broken - JOSS release works HOT 1
- arity_one_function HOT 4
- Documentation of command line arguments HOT 1
- Test PyPy
- JOSS review comments HOT 3
- ith_full_binary_tree naming HOT 1
- benchmark generation HOT 1
- Max. number of fit params HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysrurgs.