Janus icon indicating copy to clipboard operation
Janus copied to clipboard

编译```sentencepiece```失败

Open nuclearrockstone opened this issue 11 months ago • 22 comments

编译sentencepiece失败

运行pip install -e .正常 运行pip install -e .[gradio]失败,报错信息如下:

Image 系统信息:

  • Windows10
  • Python 3.12.2 运行Grdio界面正常,图生文和文生图都正常,请问这属于正常问题吗?

nuclearrockstone avatar Jan 28 '25 10:01 nuclearrockstone

Same issue here Ubuntu 22.04

VitorVillarino avatar Jan 28 '25 12:01 VitorVillarino

Update me when it's safe to start using it and when I can use the code on my laptop.

On Tue, Jan 28, 2025, 1:03 PM VitorVillarino @.***> wrote:

Same issue here Ubuntu 22.04

— Reply to this email directly, view it on GitHub https://github.com/deepseek-ai/Janus/issues/62#issuecomment-2618812517, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2TE5HMYRYRS6IXNFG7MNN32M5WZXAVCNFSM6AAAAABWAFQ2Z2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJYHAYTENJRG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Escannnor avatar Jan 28 '25 12:01 Escannnor

I'm having the same issue running pip install -e .[gradio]

(MacBook Pro M3 Pro, python3.11)

sh1un avatar Jan 28 '25 15:01 sh1un

had the same issue, downgraded my Python version to 3.8 and it worked

haguliyev avatar Jan 28 '25 16:01 haguliyev

same issue,but py3.8 didn't work

meipeter avatar Jan 28 '25 16:01 meipeter

had the same issue, downgraded my Python version to 3.8 and it worked

Are you referring to Python 3.8, released in 2019 and no longer supported since October 2024?

luisalbertofer avatar Jan 28 '25 16:01 luisalbertofer

had the same issue, downgraded my Python version to 3.8 and it worked

Are you referring to Python 3.8, released in 2019 and no longer supported since October 2024?

yes

meipeter avatar Jan 28 '25 16:01 meipeter

had the same issue, downgraded my Python version to 3.8 and it worked

Are you referring to Python 3.8, released in 2019 and no longer supported since October 2024?

yes, the version 3.8.10 released in 2021 to be specific.

haguliyev avatar Jan 28 '25 16:01 haguliyev

I'm using a Python 3.12 virtual environment on Ubuntu 24.10 and don't have this issue.

flobeier avatar Jan 28 '25 16:01 flobeier

I've actually performed a clean install to downgrade, maybe that had more impact than the version.

haguliyev avatar Jan 28 '25 16:01 haguliyev

I suggest using a virtual environment (python3 -m venv .venv). This avoids conflicts with existing python packages and keeps your system clean.

flobeier avatar Jan 28 '25 17:01 flobeier

I had same problem on Mac, finally use some tricks to solve this: brew install protobuf sentencepiece pkg-config cmake

update your pip and change the SentencePiece==0.2 in pyproject.toml

Image

I have a fork to run on mac here: https://github.com/takahirosir/Janus Here's the discussion: https://github.com/deepseek-ai/Janus/issues/55

takahirosir avatar Jan 28 '25 19:01 takahirosir

Maybe unrelated but i had the same issue and an answer on StackOverflow suggested to install cmake and pkg-config which surprisingly fixed it.

deepsingh132 avatar Jan 28 '25 19:01 deepsingh132

Same problem. python 3.12 on windows 11.

feroooooo avatar Jan 29 '25 12:01 feroooooo

I had same problem on Mac, finally use some tricks to solve this: brew install protobuf sentencepiece pkg-config cmake

update your pip and change the SentencePiece==0.2 in pyproject.toml

Image I have a fork to run on mac here: https://github.com/takahirosir/Janus Here's the discussion: [#55](https://github.com/deepseek-ai/Janus/issues/55)

This worked! Thanks!

VitorVillarino avatar Jan 29 '25 12:01 VitorVillarino

I spent an hour trying to get past this on WSL. I tried installing every one of the listed packages.

What worked for me was making a new venv of Python 3.8, and then right after that, running pip install -e .[gradio]

python3.8 -m venv Janus_env source Janus_env/bin/activate

pip install -e .[gradio]

ItsBlunty avatar Jan 29 '25 16:01 ItsBlunty

I had same problem on Mac, finally use some tricks to solve this: brew install protobuf sentencepiece pkg-config cmake

update your pip and change the SentencePiece==0.2 in pyproject.toml

Image I have a fork to run on mac here: https://github.com/takahirosir/Janus Here's the discussion: [#55](https://github.com/deepseek-ai/Janus/issues/55)

It works on windows11, python3.12.8 too, just change the SentencePiece version in pyproject.toml is enough. thanks!

feroooooo avatar Jan 29 '25 16:01 feroooooo

I had same problem on Mac, finally use some tricks to solve this: brew install protobuf sentencepiece pkg-config cmake

update your pip and change the SentencePiece==0.2 in pyproject.toml

Image I have a fork to run on mac here: https://github.com/takahirosir/Janus Here's the discussion: [#55](https://github.com/deepseek-ai/Janus/issues/55)

this fixes the issue

nkpatnis avatar Jan 29 '25 16:01 nkpatnis

i use python3.9, and it works. 3.8 and 3.11 don't work.

jrnjsyx avatar Jan 30 '25 08:01 jrnjsyx

this solution worked https://github.com/deepseek-ai/Janus/issues/84#issuecomment-2621702350

spaceserfer avatar Feb 01 '25 04:02 spaceserfer

Hi guys, I didn't manage to run this command on windows with python 3.13 but it works with python 3.12.9 and adapting SentencePiece==0.2 in pyproject.toml

C:\Users\XXX\AppData\Local\Programs\Python\Python312\python -m venv .env312 .env312\Scripts\activate pip install -e . pip install -e .[gradio]

lionelschiepers avatar Feb 05 '25 15:02 lionelschiepers

python3.13也遇到了同样问题,换成python3.12它就可以了

I also encountered this problem with python 3.13, but it no longer exists when I switch to python 3.12

mrssz avatar Apr 28 '25 09:04 mrssz