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

ModuleNotFoundError: No module named 'bilix' #18

Closed
andynvt opened this issue Mar 1, 2023 · 3 comments
Closed

ModuleNotFoundError: No module named 'bilix' #18

andynvt opened this issue Mar 1, 2023 · 3 comments

Comments

@andynvt
Copy link

andynvt commented Mar 1, 2023

 python3 download.py -u https://www.ixigua.com/7168489715828851215\?id\=7111665255088685605\&logTag\=5612bf2fc2b05e20c181
Traceback (most recent call last):
  File "/Users/andy/Downloads/VideoDownload/download.py", line 4, in <module>
    from download_bilibili import download_bilibili_video, is_bilibili_video
  File "/Users/andy/Downloads/VideoDownload/download_bilibili.py", line 6, in <module>
    import bilix.api.bilibili as api
ModuleNotFoundError: No module named 'bilix'
@dxsooo
Copy link
Owner

dxsooo commented Mar 2, 2023

Hi, it seems that you miss the lines:

poetry export -f requirements.txt | pip install -r /dev/stdin

This cmd would help install all the dep python pkgs.

Also, you can install pkgs by pip directly if you don't have poetry:

pip install you-get yt-dlp bilix

and call with: (notice that the url should not include any parameter)

python3 download.py -u https://www.ixigua.com/7168489715828851215

however

Downloading ixigua depends on you-get, but the current version(0.4.1650) not worked. I just create a PR(soimort/you-get#3001) to fix it. I would update my project once the newest you-get released.

@gsxgmpkt9020
Copy link

gsxgmpkt9020 commented Mar 31, 2023

poetry export -f requirements.txt | pip install -r /dev/stdin

This code is only for unix not for cmd or power shell on windows.

I ran poetry export -f requirements.txt --output requirements.txt & pip install -r requirements.txt

but got Ignoring brotlicffi: markers 'python_version >= "3.8" and python_version < "4.0" and platform_python_implementation != "CPython"' don't match your environment Ignoring cffi: markers 'python_version >= "3.8" and python_version < "4.0" and platform_python_implementation != "CPython"' don't match your environment Ignoring pycparser: markers 'python_version >= "3.8" and python_version < "4.0" and platform_python_implementation != "CPython"' don't match your environment Collecting you-get@ git+https://github.com/soimort/you-get@HEAD ERROR: Can't verify hashes for these requirements because we don't have a way to hash version control repositories: you-get@ git+https://github.com/soimort/you-get@HEAD from git+https://github.com/soimort/you-get@HEAD (from -r requirements.txt (line 460))

My py version is 3.9.4

@dxsooo
Copy link
Owner

dxsooo commented Apr 4, 2023

poetry export -f requirements.txt | pip install -r /dev/stdin

This code is only for unix not for cmd or power shell on windows.

I ran poetry export -f requirements.txt --output requirements.txt & pip install -r requirements.txt

but got Ignoring brotlicffi: markers 'python_version >= "3.8" and python_version < "4.0" and platform_python_implementation != "CPython"' don't match your environment Ignoring cffi: markers 'python_version >= "3.8" and python_version < "4.0" and platform_python_implementation != "CPython"' don't match your environment Ignoring pycparser: markers 'python_version >= "3.8" and python_version < "4.0" and platform_python_implementation != "CPython"' don't match your environment Collecting you-get@ git+https://github.com/soimort/you-get@HEAD ERROR: Can't verify hashes for these requirements because we don't have a way to hash version control repositories: you-get@ git+https://github.com/soimort/you-get@HEAD from git+https://github.com/soimort/you-get@HEAD (from -r requirements.txt (line 460))

My py version is 3.9.4

Hi, thank you for point out the install problems for non-poetry envs

I have updated my code and you can run after pull:

poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install -r requirements.txt

again to install all deps

@dxsooo dxsooo closed this as completed May 2, 2023
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

3 participants