Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Unable to install using pip: Missing requirement.txt #6

Closed
buyanyun opened this issue Jun 11, 2019 · 6 comments
Closed

Unable to install using pip: Missing requirement.txt #6

buyanyun opened this issue Jun 11, 2019 · 6 comments

Comments

@buyanyun
Copy link

No description provided.

@mental32
Copy link
Owner

Could you please include a traceback, the command your ran and any other relevant information

@buyanyun
Copy link
Author

buyanyun commented Jun 11, 2019

Here is the traceback. and I just use pip3 to install spotify.py

Collecting spotify.py
Downloading https://files.pythonhosted.org/packages/d0/ac/f1870084489b45748c9b6b487a3276a7afe158751ff2877a188eec496d41/spotify.py-0.8.4.zip (89kB)
100% |████████████████████████████████| 92kB 2.6MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/sf/bksnxw9174dfn3yqgs41ssj40000gn/T/pip-install-sthxo972/spotify.py/setup.py", line 1, in
from spotify import version
File "/private/var/folders/sf/bksnxw9174dfn3yqgs41ssj40000gn/T/pip-install-sthxo972/spotify.py/spotify/init.py", line 4, in
from spotify.client import Spotify
File "/private/var/folders/sf/bksnxw9174dfn3yqgs41ssj40000gn/T/pip-install-sthxo972/spotify.py/spotify/client.py", line 1, in
from spotify.commands.manager import CommandManager
File "/private/var/folders/sf/bksnxw9174dfn3yqgs41ssj40000gn/T/pip-install-sthxo972/spotify.py/spotify/commands/init.py", line 1, in
from spotify.commands.work import DoWork
File "/private/var/folders/sf/bksnxw9174dfn3yqgs41ssj40000gn/T/pip-install-sthxo972/spotify.py/spotify/commands/work.py", line 33
except execjs.RuntimeUnavailable, ex:
^
SyntaxError: invalid syntax

@buyanyun buyanyun reopened this Jun 11, 2019
@mental32
Copy link
Owner

You are installing the wrong package. This project is released under the name spotify in pypi so you have to do pip install spotify not spotify.py, I understand the confusion.

@HarmvandenBrand
Copy link

HarmvandenBrand commented Jul 11, 2019

I had the same problem using the correct (I think) pip command

$ pip3 install spotify
Collecting spotify
  Using cached https://files.pythonhosted.org/packages/2c/ab/4ba5d31ee8c6ad53da45b02a0f3fd8680b5205c39f7cf52653570ad107ca/spotify-0.4.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-build-_hiv8pp2/spotify/setup.py", line 4, in <module>
        with open('requirements.txt') as inf:
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

I'm running on Python 3.5.3, which may be the problem?

@mental32
Copy link
Owner

@HarmvandenBrand Your pip is preferring the broken package release, please refer to this stack overflow answer to force pip to install the latest pypi package.

@mental32
Copy link
Owner

I'm closing this since it's gone stale.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants