Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to install #771

Closed
AlexeyAM opened this issue Apr 19, 2018 · 11 comments
Closed

fail to install #771

AlexeyAM opened this issue Apr 19, 2018 · 11 comments

Comments

@AlexeyAM
Copy link

AlexeyAM commented Apr 19, 2018

Here is cmd output:

n:\moviepy-master>python setup.py
error in moviepy setup command: 'extras_require' must be a dictionary whose valu
es are strings or lists of strings containing valid project/version requirement
specifiers.

How to handle this?
I use Python 2.7 on Windows 7

@tburrows13
Copy link
Collaborator

tburrows13 commented Apr 19, 2018

Are you sure you have the latest version of moviepy from this repo? And what about just running pip install moviepy to install it?

@AlexeyAM
Copy link
Author

AlexeyAM commented Apr 19, 2018

From changelog - ## [v0.2.3.3](
pip (latest version) gives the same error. I've started from it.
Python 2.7.10

BTW, my colleague reported the same error on Linux Mint.

@tburrows13
Copy link
Collaborator

In which case, I'm stuck. We need someone with Windows to try and reproduce the error. I've just tried pip installing moviepy (v0.2.3.3 with Python 2.7) on Mac and it works fine. However, when I do python setup.py, it doesn't try to install it, it gives

$ python setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied

You need python setup.py install.

@AlexeyAM
Copy link
Author

AlexeyAM commented Apr 19, 2018

Here is debugging information from Python console called by Visual Studio:


Traceback (most recent call last):
  File "C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Mic
rosoft\Python Tools for Visual Studio\2.1\visualstudio_py_util.py", line 106, in
 exec_file
    exec_code(code, file, global_variables)
  File "C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Mic
rosoft\Python Tools for Visual Studio\2.1\visualstudio_py_util.py", line 82, in
exec_code
    exec(code_obj, global_variables)
  File "N:\moviepy-master\setup.py", line 137, in <module>
    extras_require=extra_reqs,
  File "C:\Python27\lib\distutils\core.py", line 115, in setup
    (attrs['name'], msg)
SystemExit: error in moviepy setup command: 'extras_require' must be a dictionar
y whose values are strings or lists of strings containing valid project/version
requirement specifiers.
Press any key to continue . . .

This error I get both from pip and "python setup.py"

@mgaitan
Copy link
Collaborator

mgaitan commented Apr 21, 2018

seems you are running an old version of setuptools
try to upgrade it by doing

pip install --upgrade setuptools

and then try to install moviepy again

@AlexeyAM
Copy link
Author

Here is result.
----------------

c:\Python27>python
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on wi
n32
Type "help", "copyright", "credits" or "license" for more information.
 >>> pip install --upgrade setuptools
  File "<stdin>", line 1
    pip install --upgrade setuptools
              ^
SyntaxError: invalid syntax
 >>>

pip is installed, the latest version - 10.0.1

@tburrows13
Copy link
Collaborator

No, don’t run it inside of the python shell. Just run it in your normal command line.

@AlexeyAM
Copy link
Author

This worked:

C:\Users\AM>python -m pip install --upgrade setuptools

Indeed I had very old version - upgraded from version 16.0 to 39.0.1
Will continue with moviepy

@AlexeyAM
Copy link
Author

OK.

python setup.py install

run from cmd worked. Thus, the problem was in old setuptools version.
Thanks, everybody.

@Zulko
Copy link
Owner

Zulko commented Apr 21, 2018

@AlexeyAM was it the same problem for your colleague on linux mint ? If both are solved, we can close this :)

@AlexeyAM
Copy link
Author

OK.

python setup.py install

run from cmd worked. Thus, the problem was in old setuptools version.
Thanks, everybody.

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

No branches or pull requests

4 participants