Giter VIP home page Giter VIP logo

Comments (5)

actapia avatar actapia commented on August 30, 2024 1

I encountered the same error. I believe this is a problem with the cufflinks package from Debianโ€”not the upstream cufflinks. The package maintainers apply a patch to make cuffmerge work with Python 3, but it seems they neglected to change the calls to open. Here's a short patch that should fix it.

--- a/src/cuffmerge
+++ b/src/cuffmerge
@@ -56,6 +56,21 @@
     def __init__(self, msg):
         self.msg = msg
 
+# Unbuffered class from Magnus Lycka
+# Wraps a stream so that writes are always flushed.
+# https://mail.python.org/pipermail/tutor/2003-November/026645.html
+class Unbuffered(object):
+   def __init__(self, stream):
+       self.stream = stream
+   def write(self, data):
+       self.stream.write(data)
+       self.stream.flush()
+   def writelines(self, datas):
+       self.stream.writelines(datas)
+       self.stream.flush()
+   def __getattr__(self, attr):
+       return getattr(self.stream, attr)
+
 class TestParams:
 
     class SystemParams:
@@ -523,7 +538,7 @@
         start_time = datetime.now()
         prepare_output_dir()
 
-        run_log = open(logging_dir + "run.log", "w", 0)
+        run_log = Unbuffered(open(logging_dir + "run.log", "w"))
         run_cmd = " ".join(argv)
         print(run_cmd, file=run_log)

from cufflinks.

rvermamsm avatar rvermamsm commented on August 30, 2024

I am also facing the same issue. Could anyone suggest me solution. I am new to this field.

Thanks in advance.

Regards
Rashi

from cufflinks.

actapia avatar actapia commented on August 30, 2024

I am also facing the same issue. Could anyone suggest me solution. I am new to this field.

Thanks in advance.

Regards Rashi

If you're encountering this issue on Ubuntu 20.04, you can download a version of the cufflinks package with the patch I suggested applied from my repository here.

The steps are

wget http://cs485repo-archives.s3-website.us-east-2.amazonaws.com/repo/dists/focal/non-free/binary-amd64/science/cufflinks_2.2.1+dfsg.1-9~ngs+1_amd64.deb
sudo dpkg -i cufflinks_2.2.1+dfsg.1-9~ngs+1_amd64.deb

from cufflinks.

RahmatAderemi avatar RahmatAderemi commented on August 30, 2024

I am also facing the same issue. Could anyone suggest me solution. I am new to this field.
Thanks in advance.
Regards Rashi

If you're encountering this issue on Ubuntu 20.04, you can download a version of the cufflinks package with the patch I suggested applied from my repository here.

The steps are

wget https://www.cs.uky.edu/~acta225/CS485/repo/dists/focal/non-free/binary-amd64/science/cufflinks_2.2.1+dfsg.1-9~ngs+1_amd64.deb
sudo dpkg -i cufflinks_2.2.1+dfsg.1-9~ngs+1_amd64.deb

will this work for Ubuntu 22.04?

from cufflinks.

actapia avatar actapia commented on August 30, 2024

I am also facing the same issue. Could anyone suggest me solution. I am new to this field.
Thanks in advance.
Regards Rashi

If you're encountering this issue on Ubuntu 20.04, you can download a version of the cufflinks package with the patch I suggested applied from my repository here.
The steps are

wget https://www.cs.uky.edu/~acta225/CS485/repo/dists/focal/non-free/binary-amd64/science/cufflinks_2.2.1+dfsg.1-9~ngs+1_amd64.deb
sudo dpkg -i cufflinks_2.2.1+dfsg.1-9~ngs+1_amd64.deb

will this work for Ubuntu 22.04?

I have a version for 22.04 now here.

wget https://www.cs.uky.edu/~acta225/CS485/repo/dists/jammy/non-free/binary-amd64/science/cufflinks_2.2.1+dfsg.1-10~ngs+1_amd64.deb
sudo dpkg -i cufflinks_2.2.1+dfsg.1-10~ngs+1_amd64.deb

from cufflinks.

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.