Giter Club home page Giter Club logo

Comments (3)

kerrhome avatar kerrhome commented on June 8, 2024

To get past the OOM issue, we made the following change:

diff --git a/src/tracboat/cli.py b/src/tracboat/cli.py
index c45c606..eff91a8 100644
--- a/src/tracboat/cli.py
+++ b/src/tracboat/cli.py
@@ -373,9 +373,10 @@ def migrate(ctx, umap, umap_file, fallback_user, trac_uri, ssl_verify,
         LOG.info('loading Trac instance from export file: %s', from_export_file)
         fmt = _detect_format(from_export_file)
         LOG.debug('detected file format: %s', fmt)
-        with codecs.open(from_export_file, 'rb', encoding='utf-8') as export_f:
-            content = export_f.read()
-        project = _loads(content, fmt=fmt)
+        #with codecs.open(from_export_file, 'rb', encoding='utf-8') as export_f:
+        #    content = export_f.read()
+        #project = _loads(content, fmt=fmt)
+        project = pickle.load(open(from_export_file))
     else:

from tracboat.

jschewebbn avatar jschewebbn commented on June 8, 2024

Even with this change we are running out of memory. Any other suggestions on getting passed this?

from tracboat.

jschewebbn avatar jschewebbn commented on June 8, 2024

In the end I got around this by exporting directly to a pickle file rather than converting to pickle in memory and then writing. I did the same on the import side.

from tracboat.

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.