pixi icon indicating copy to clipboard operation
pixi copied to clipboard

pyscreeze not installed correctly

Open uzhao opened this issue 9 months ago • 6 comments

Checks

  • [x] I have checked that this issue has not already been reported.

  • [x] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

pixi add pyscreeze

Issue description

pixi run a regular install progress, but after that I can't do import in python. I use find command get a json file for conda. It has the path to cache, then I copy the python file from cache to site-packages. Then it works

Expected behavior

After add the package, I can use it in Python

uzhao avatar Apr 02 '25 07:04 uzhao

Thanks for the report @uzhao

Did you try to install pyscreeze with conda or mamba to make sure that this is indeed a pixi bug?

Hofer-Julian avatar Apr 02 '25 07:04 Hofer-Julian

Thanks for the report @uzhao

Did you try to install pyscreeze with conda or mamba to make sure that this is indeed a pixi bug?

I just tried mamba and it works.

uzhao avatar Apr 02 '25 08:04 uzhao

I just tried it with pixi and that also seems to work. Did I do anything differently than you?

Image

Hofer-Julian avatar Apr 02 '25 09:04 Hofer-Julian

I just tried it with pixi and that also seems to work. Did I do anything differently than you?

Image

Hmm, something special including I run this on oracle arm instance and installed pyautogui first. Python is 3.12. After pyautogui raise an error I can't take screenshot without this package I found this problem.

Here is my toml

[workspace] channels = ["conda-forge"] name = "rest_service" platforms = ["linux-aarch64"] version = "0.1.0"

[tasks]

[dependencies] python = "3.12.*" fastapi = ">=0.115.12,<0.116" uvicorn = ">=0.34.0,<0.35" pydantic = ">=2.11.1,<3" pyperclip = ">=1.9.0,<2" opencv = ">=4.11.0,<5" requests = ">=2.32.3,<3" socksio = ">=1.0.0,<2" pillow = ">=11.1.0,<12"

[pypi-dependencies] pyautogui = ">=0.9.54, <0.10" pyscreeze = "*"

uzhao avatar Apr 02 '25 09:04 uzhao

Aha, I got this

Image

uzhao avatar Apr 02 '25 09:04 uzhao

Thanks for the investigation.

Seems like either something weird is going on with pyautogui, our PyPI support, or both.

Will put this issue on our prioritized list.

Hofer-Julian avatar Apr 02 '25 09:04 Hofer-Julian