question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

License issue: terminal.py contains code licensed under Creative Commons

See original GitHub issue

Code Sample, a copy-pastable example if possible

NA

Problem description

The file pandas/io/formats/terminal.py contains source code taken from stack overflow (it explicitly says this in the terminal.py file). However, the source code that exist in stack overflow is licensed under Creative Commons Attribution-Share Alike, see: https://stackoverflow.com/help/licensing.

Pandas claims to be BSD 3 compliant, but it actually has code in terminal.py that is not under BSD.

Keep in mind that the part of the code that is under creative commons is affecting the python 2 implementation. The python 3 implementation does not need the code from stack overflow. So, some possible solutions would be (there might be other options that I am not aware of):

  1. Remove the code that is under CC. This will make the terminal.py unusable for python 2.
  2. Use backports.shutil_get_terminal_size and replace the code under CC. This will make pandas depend on the backports.shutil_get_terminal_size package.
  3. Provide a brand new implementation for the part of terminal.py that is under CC.

Expected Output

NA

Output of pd.show_versions()

NA

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
harcokuppenscommented, May 18, 2018

ok, my official statement:

I’m totally fine too and hereby dual license my code from https://stackoverflow.com/a/566752 under BSD.

Hope you are fine that I literal copied this line from your mail 😉

Best regards, Harco Kuppens

On 18/05/2018 08:45, Vasileios Karavasilis wrote:

Thank you all for the effort and the replies.

However, I would like to ask @harcokuppens https://github.com/harcokuppens to explicitly say something like @weissi https://github.com/weissi said https://github.com/pandas-dev/pandas/issues/21074#issuecomment-389848341, e.g.:

I’m totally fine too and hereby dual license my code from https://stackoverflow.com/a/6550596 under BSD.

PS: I got the explanation that the phrase: |I’m ok that you use my solution for combining these two solutions in one function.| gives exception only to the Pandas project, not every following user of the pandas library. Moreover, some other compatible licenses would be BSD, Apache, or MIT. However, I believe the simplest approach is to use BSD (which Pandas is using).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pandas-dev/pandas/issues/21074#issuecomment-390110920, or mute the thread https://github.com/notifications/unsubscribe-auth/AFUQ8Qy3zGxDUEmprl4qOfIVTDRR0Y1zks5tzm3vgaJpZM4UA3tT.

2reactions
harcokuppenscommented, May 17, 2018

On 17/05/2018 11:19, Joris Van den Bossche wrote:

The difficult point is, the answer was posted in 2011, and there
is no contact info in the StackOverflow, we are even not sure if
could reach the author.

The linux code is actually from another answer, and that author has a github profile link. And for the answer you linked to, I am going to do a wild guess and try to ping @harcokuppens https://github.com/harcokuppens (sorry if you are the wrong Harco Kuppens!)


@harcokuppens https://github.com/harcokuppens @weissi https://github.com/weissi for some context that I am pinging you here: we used the code from your answers to this SO question: https://stackoverflow.com/questions/566746/how-to-get-linux-console-window-width-in-python. Since the pandas library is BSD, and SO answers back then were this CC-BY-SA, that is compatible. So therefore the question to you both: are you OK with us re-using your code snippet in a BSD licenced library? (and agreeing means I think that you are OK with relicensing this code-snippet to BSD, but no expert on that)

Hi, as you can see in my answer I just combined two solutions found elsewhere. I even mention their sources in my answer.

I’m ok that you use my solution for combining these two solutions in one function.

Best regards, Harco Kuppens

ps. nice to hear somebody is using my comment 😉

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pandas-dev/pandas/issues/21074#issuecomment-389801927, or mute the thread https://github.com/notifications/unsubscribe-auth/AFUQ8bNAaGgR88ey-5uHTbUhvrl_CMG4ks5tzUCTgaJpZM4UA3tT.

Read more comments on GitHub >

github_iconTop Results From Across the Web

About The Licenses
Creative Commons licenses require licensees to get permission to do any of the things with a work that the law reserves exclusively to...
Read more >
Attribution-NonCommercial-NoDerivs 3.0 United States
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED...
Read more >
Marking your work with a CC license
You have chosen a CC license for your work. Now how do you go about letting the world know? Here are some examples...
Read more >
License Properties
In addition to the human readable license deeds and legal code, Creative Commons provides machine readable metadata for licenses.
Read more >
Attribution 4.0 International — CC BY 4.0
Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found