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.

Package won't install

See original GitHub issue

Describe the bug When I try to install globally using pip install lyricsgenius, I get the following output:

Collecting lyricsgenius
  Using cached https://files.pythonhosted.org/packages/9d/4e/8cd3ff464d5c08e745bfae7c8ea96e64a3584e248ed8b57b9c2d102150d1/lyricsgenius-1.0.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-kJMjH9/lyricsgenius/setup.py", line 21, in <module>
        with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
    TypeError: 'encoding' is an invalid keyword argument for this function
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-kJMjH9/lyricsgenius/

Expected behavior A global pip install would work without errors.

To Reproduce Describe the steps required to reproduce the behavior.

  1. Open terminal
  2. pip install lyricsgenius

Include the error message associated with the bug.

TypeError: 'encoding' is an invalid keyword argument for this function
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-kJMjH9/lyricsgenius/

Version info

  • Package version: Latest
  • OS: macOS

Additional context I’m coming from a Node background so this could easily be something I’m doing but I tried this with pipenv, virtualenv, global pip install, and on an AWS Cloud9 instance (to make sure my global pip isn’t muddied) and I got similar results each time so I’m thinking there could be an issue at play.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bradydowlingcommented, Dec 7, 2018

Ya it looks like it installs just fine globally using pip3 and then I can call it from the CLI so this is likely an issue I had with Python 2.x in whatever environment I was trying with each time.

1reaction
johnwmillrcommented, Dec 6, 2018

I think your issue may be coming from attempting to install the package using Python 2.7 and its corresponding version of pip.

I will update the setup.py file to explicitly raise an error when called via Python 2.x

If you have pip3 installed, try pip3 install lyricsgenius. Let me know how it works out for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package installation issues | PyCharm Documentation
The package cannot be installed because the package is not available in the repository that is supported by the selected package manager.
Read more >
Problem Installing Packages in the RStudio IDE - Posit Support
If you are unable to install packages in the RStudio IDE, some common problems are outlined below: Are you able to install packages...
Read more >
Rstudio can´t install any package. I´m a beginner. How to fix?
I am taking a Data Science course at Coursera using R. I installed version 4.0.2 of R for Windows 10 (x64), then R...
Read more >
cannot install any packages - ERROR -https://packagesource
Please open Visual Studio > Tools > NuGet Package Manager > Package Manager Settings > Package Sources > check if any invalid package...
Read more >
I am unable to install packages in R - Stack Overflow
Remove the file .Rhistory in directory C:\Users\javad\Documents\.Rhistory. Now try installing the package. This should solve your problem.
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