GithubHelp home page GithubHelp logo

Suggestion: Package manager about pysrurgs HOT 5 CLOSED

pysrurgs avatar pysrurgs commented on May 28, 2024
Suggestion: Package manager

from pysrurgs.

Comments (5)

pySRURGS avatar pySRURGS commented on May 28, 2024

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.

praksovar avatar praksovar commented on May 28, 2024

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.

pySRURGS avatar pySRURGS commented on May 28, 2024

from pysrurgs.

pySRURGS avatar pySRURGS commented on May 28, 2024

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.

pySRURGS avatar pySRURGS commented on May 28, 2024

Closing since I do not plan on making this a package managed software.

from pysrurgs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.