Closed ghost closed 5 years ago
For the setup.py installation, it looks like it's trying to use Python2.7, which isn't supported. You should be able to run it as python3 setup.py install
and it will probably get to the same place as below.
For the second error, you probably need to install libmpv; some package managers bundle libmpv and mpv together, some don't.
Let me know if that fixes the issue, but regardless I'll leave this open for now since I should update the install to check whether you have libmpv installed before crashing like this (it currently checks that you have the mpv binary, but not the source files).
I tried installing it with python3, which gives me "ImportError: No module named 'setuptools'" (even though python3-setuptools is installed). libmpv-dev is also installed.
I'm not sure about the setuptools error, but it doesn't seem to be related to castero. Maybe check this thread: https://stackoverflow.com/questions/14426491/python-3-importerror-no-module-named-setuptools
I also did some testing and I was able to reproduce the pympv error with an older version of libmpv (0.14.0). I no longer experienced it with 0.29.0 from the Ubuntu cosmic repo. I'll try to narrow down the minimum version required and add it to the readme.
Thanks for the hints. I reinstalled setuptools for python3, but this did not solve the problem (same error message). I also upgraded mpv to 0.29.0, but this the mpv error also persists. FWIW, I am running devuan ascii.
Do you mind testing with the latest build (using the "manual installation" instructions)? There are some kinks to work out, but it replaces pympv with python-mpv, which may resolve your problem.
Doing so lets me install the program, but when I try to open it I get this:
Traceback (most recent call last):
File "/usr/local/bin/castero", line 11, in <module>
load_entry_point('castero==0.4.0', 'console_scripts', 'castero')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2291, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "build/bdist.linux-i686/egg/castero/__main__.py", line 6, in <module>
File "/usr/local/lib/python2.7/dist-packages/castero-0.4.0-py2.7.egg/castero/helpers.py", line 4
def third(n) -> int:
^
SyntaxError: invalid syntax
That seems like an issue with using Python2 again, so you may need to change your system 'python' command to refer to Python3.
When I try to install it with python3, I get the aforementioned setuptools error again. (I read the thread you linked to, but none of the suggested solutions there worked. I already reinstalled setuptools for python3 with pip).
I having the same error. Tried all the above mentioned steps.
When I try to install it with python3, I get the aforementioned setuptools error again. (I read the thread you linked to, but none of the suggested solutions there worked. I already reinstalled setuptools for python3 with pip).
I had a similar problem with the installation of pympv and solve it by installing python3-dev (in my distro the name of the packet is python3-devel)
Closing this since I was never able to reproduce it and I don't believe it's related to castero. If anyone involved thinks it is, feel free to let me know.
I tried to install it with pip3 install castero and also via git, every time I get the following error:
Trying to install pympv leads to:
Any suggestions?