Comments (15)
Nevermind, I managed to fix this thanks to #20
I deleted the shebang line (not sure if this was needed) and fixed the correct Exec path.
from play-with-mpv.
Now it isn't autostarting anymore. I have no idea why. :/
from play-with-mpv.
Any logs or versions you might be able to supply? Maybe it tries to listen on an already used port or sth.
from play-with-mpv.
Ok, it started working again... I'm not sure why. I think that when I checked before I was looking for the term "thann" in htop (to see if it was running) when the process name was actually "play-with-mpv". Not sure though why it wasn't working that time.
Maybe I should close the issue for now until I have another problem like this? Or do you think some kind of information might be useful right now?
from play-with-mpv.
Good to hear, that you problem has been resolved. As long as it works and you can't replicate the problem anymore, you can close the issue. Just reopen it, if you find a reproducible problem later on.
from play-with-mpv.
Good to hear, that you problem has been resolved.
@Thann @Chaostheorie Hi there, I am facing issue with it , opened issue #62
i cant find play-with-mpv executable file according to the location mentioned in desktop file. so I was thinking to place the required files via zip download.
I'm a beginner in Linux, need your help. thanks
from play-with-mpv.
@bheeshmpita if you have installed it with pip
(via pip install git+git://github.com/thann/play-with-mpv --user
) you will need to add pip's location for executables in the PATH
(PATH
is a list of directories where your shell looks when searching for executables) too. If you haven't done this step yet, refer to this SO answer.
Otherwise, please try to locate
the binary (i.e., locate play-with-mpv
) and add the found DIR to `PATH. In case it finds nothing, please provide information about your OS and open a separate issue.
from play-with-mpv.
refer to this SO answer.
though the answer is brief still I cant apprehend it. this is how my ~/.profile
looks.
`# ~/.profile: executed by the command interpreter for login shells.
This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
exists.
see /usr/share/doc/bash/examples/startup-files for examples.
the files are located in the bash-doc package.
the default umask is set in /etc/profile; for setting the umask
for ssh logins, install and configure the libpam-umask package.
#umask 022
if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
`
locate play-with-mpv
i tried this and it listed only contents in the zip i downloaded in order to place at the missing executable file. Can I do it with zip?
from play-with-mpv.
@bheeshmpita Okay. Then a full on guide with the ZIP. Since if [ -d "$HOE/.local/bin …
is in your profile, we can just use the existing ~/.local/bin/
dir.
Assumes you have gotten the source code zip from the releases page in your current dir (i.e. Downloads/). If you need to go to that dir use
cd <dir>
- Create local bin (does nothing if already exists):
mkdir -p ~/.local/bin/
- unzip the archive:
unzip play-with-mpv-0.1.0.zip
- enter the extracted dir:
cd play-with-mpv-0.1.0/
Two paths are now open:
- Either Install with
pip
(highly recommended):python3 -m pip install .
- Move python file to local bin:
mv play_with_mpv.py ~/.local/bin/
To run the server:
- When installed with pip:
play-with-mpv
- When moved to local bin:
play_with_mpv.py
from play-with-mpv.
Two paths are now open:
Either Install with pip (highly recommended): python3 -m pip install .
does this command be executed after moving into a specific folder ie cd in the terminal?
from play-with-mpv.
@bheeshmpita Yes after the previous cd
command. The commands are meant to be run on after another in the same terminal. This means you start by opening a terminal, navigating to the DIR where the zip is placed, unzip it, and enter the newly created folder. At this point you can choose to either install with pip, i.e., python3 -m pip install .
, or move the file directly mv play_with_mpv.py ~/.local/bin/
.
from play-with-mpv.
@Chaostheorie it seems there is problem in python script in the zip. following was the output
abhi@hdd-bodhi-linux:~/.local/bin$ play_with_mpv.py File "/home/abhi/.local/bin/play_with_mpv.py", line 96 print(f"ERROR: {bin.upper()} does not appear to be installed correctly! please ensure you can launch '{bin}' in the terminal.") ^ SyntaxError: invalid syntax
from play-with-mpv.
Change the first line of the script from #!/usr/bin/env python
to #!/usr/bin/env python3
. This error occurs since the script uses python3.8 syntax, and you seem to have python version 2 set as default.
(Note: to edit a file either use nano
(i.e. nano ~/.local/bin/play_with_mpv.py
, edit, and save and exit with Ctrl+O
) or your favourite text editor)
from play-with-mpv.
@Chaostheorie THANK YOU so much brother. it worked. does this extension have any automated command to play with mpv or does it have to be done by user always?
Thanks again
from play-with-mpv.
@bheeshmpita Your welcome. I'm not aware of any automatic way of playing videos on page load, but there's already an issue (#31) for this feature open.
from play-with-mpv.
Related Issues (20)
- WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED
- Way to pass parameters following "#" in urls?
- Installation successful but no ~/.local/share/applications/thann.play-with-mpv.desktop file.
- Change installation command to fit with new github protocol HOT 1
- Nothing happens, although there is a request and mpv is added to the Path HOT 1
- playwithmpv error code 422 HOT 1
- issue can't install ? HOT 9
- No module named 'play_with_mpv' HOT 3
- How to install inside a virtual environment HOT 1
- It opens two mpv players HOT 1
- Arbitrary code execution HOT 1
- How to Force Mp4 240p Resolution? HOT 1
- Connection issues while installing HOT 1
- Unable to launch mpv from vivaldi
- Suggestion: Support for profiles
- `pip install git+git://github.com/thann/play-with-mpv --user` not working for me on Windows HOT 1
- Does not install anymore (at least on windows 11) because of unavailable dependency: HOT 5
- play-with-mpv floods the journal with "blob data" messages
- No connection HOT 1
- Youtube-dl version is severely out of date. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-with-mpv.