Closed soufaam closed 3 years ago
For Windows 10 you need Python3 and Visual Studio Build Tools 2017 (available for download from Microsoft's Visual Studio pages) and libmpv installed. You can download the libmpv DLL here:
https://sourceforge.net/projects/mpv-player-windows/files/libmpv/
Download the latest version and copy the DLL file into the vidcutter source code directory or, to make it easy, copy it to C:\Windows\System32
Now you can simply run the following command in the vidcutter source code directory:
python setup.py build_ext -i
This will create a .pyd file at vidcutter\libs\mpv.cp39-win_amd64.pyd and you can then PyCharm projects should work too.
PLEASE IGNORE PREVIOUS EMAIL, I FORGOT libmpv DEPENDANCY
For Windows 10 you need Python3 and Visual Studio Build Tools 2017 (available for download from Microsoft's Visual Studio pages) and libmpv installed. You can download the libmpv DLL here:
https://sourceforge.net/projects/mpv-player-windows/files/libmpv/
Download the latest version and copy the DLL file into the vidcutter source code directory or, to make it easy, copy it to C:\Windows\System32
Now you can simply run the following command in the vidcutter source code directory:
python setup.py build_ext -i
This will create a .pyd file at vidcutter\libs\mpv.cp39-win_amd64.pyd and you can then run with:
python vidcutter
from the root source code directory.
Cheers,
Pete
---- On Mon, 26 Apr 2021 20:44:51 +1000 soufaam @.***> wrote ----
Hello, I'm working in Windows 10 envirement and I'am trying to compile the source code using Pycharm . When I run main.py file it gives me this error : import vidcutter.libs.mpv as mpv ModuleNotFoundError: No module named 'vidcutter.libs.mpv' — You are receiving this because you are subscribed to this thread. Reply to this email directly, https://github.com/ozmartian/vidcutter/issues/308, or https://github.com/notifications/unsubscribe-auth/ABALOS2TYZ3LUOJNYTARGVTTKUYZHANCNFSM43STYHQQ.
Thank you very much for your help
On Thu, May 13, 2021, 9:01 AM Pete Alexandrou @.***> wrote:
PLEASE IGNORE PREVIOUS EMAIL, I FORGOT libmpv DEPENDANCY
For Windows 10 you need Python3 and Visual Studio Build Tools 2017 (available for download from Microsoft's Visual Studio pages) and libmpv installed. You can download the libmpv DLL here:
https://sourceforge.net/projects/mpv-player-windows/files/libmpv/
Download the latest version and copy the DLL file into the vidcutter source code directory or, to make it easy, copy it to C:\Windows\System32
Now you can simply run the following command in the vidcutter source code directory:
python setup.py build_ext -i
This will create a .pyd file at vidcutter\libs\mpv.cp39-win_amd64.pyd and you can then run with:
python vidcutter
from the root source code directory.
Cheers,
Pete
---- On Mon, 26 Apr 2021 20:44:51 +1000 soufaam @.***> wrote ----
Hello, I'm working in Windows 10 envirement and I'am trying to compile the source code using Pycharm . When I run main.py file it gives me this error : import vidcutter.libs.mpv as mpv ModuleNotFoundError: No module named 'vidcutter.libs.mpv' — You are receiving this because you are subscribed to this thread. Reply to this email directly, https://github.com/ozmartian/vidcutter/issues/308, or https://github.com/notifications/unsubscribe-auth/ABALOS2TYZ3LUOJNYTARGVTTKUYZHANCNFSM43STYHQQ.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ozmartian/vidcutter/issues/308#issuecomment-840423582, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4UAB7IYDG7E76BL7L3OULTNOIOPANCNFSM43STYHQQ .
@ozmartian I followed the exact steps but the problem remains.
To reproduce:
Copy D3DCompiler_43.dll
to C:\Windows\System32
run python setup.py build_ext -i
run python vidcutter
from within the root directory
stacktrace:
(env) C:\SoftwareDevelopment\EasyCut>python setup.py build_ext -i
running build_ext
copying build\lib.win-amd64-3.8\vidcutter\libs\mpv.cp38-win_amd64.pyd -> vidcutter\libs
(env) C:\SoftwareDevelopment\EasyCut>python -m vidcutter
Traceback (most recent call last):
File "C:\Program Files\Python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\SoftwareDevelopment\EasyCut\vidcutter\__main__.py", line 41, in <module>
from vidcutter.videocutter import VideoCutter
File "C:\SoftwareDevelopment\EasyCut\vidcutter\videocutter.py", line 57, in <module>
from vidcutter.libs.mpvwidget import mpvWidget
File "C:\SoftwareDevelopment\EasyCut\vidcutter\libs\mpvwidget.py", line 63, in <module>
import vidcutter.libs.mpv as mpv
ImportError: DLL load failed while importing mpv: The specified module could not be found.
This is the folder that is being created when downloading and running the latest version at https://sourceforge.net/projects/mpv-player-windows/files/libmpv/
@ozmartian fixed!
The correct download link is this: https://sourceforge.net/projects/mpv-player-windows/files/libmpv/mpv-dev-x86_64-20211107-git-ec16769.7z/download
trying to download the latest version doesn't provide the correct dll file.
To make it work I had to put the DLL into System32
. Placing it into the source root did not help.
Was just about to reply with https://sourceforge.net/projects/mpv-player-windows/files/libmpv/.
---- On Wed, 17 Nov 2021 09:09:08 +1100 Zenahr Barzani @.***> wrote ----
https://github.com/ozmartian fixed!
The correct download link is this: https://sourceforge.net/projects/mpv-player-windows/files/libmpv/mpv-dev-x86_64-20211107-git-ec16769.7z/download
trying to download the latest version doesn't provide the correct dll file.
To make it work I had to put the DLL into System32. Placing it into the source root did not help.
— You are receiving this because you were mentioned. Reply to this email directly, https://github.com/ozmartian/vidcutter/issues/308#issuecomment-970722662, or https://github.com/notifications/unsubscribe-auth/ABALOS3BFTB5YKGOJZHLO63UMLJAJANCNFSM43STYHQQ. Triage notifications on the go with GitHub Mobile for https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hello, I'm working in Windows 10 environment and I'am trying to compile the source code using Pycharm. When I run main. py file it gives me this error: import vidcutter.libs.mpv as mpv ModuleNotFoundError: No module named 'vidcutter.libs.mpv'
Any help will be appreciated