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

torchsde pypi package is misformated #131

Closed
vladmandic opened this issue Jul 15, 2023 · 27 comments
Closed

torchsde pypi package is misformated #131

vladmandic opened this issue Jul 15, 2023 · 27 comments

Comments

@vladmandic
Copy link
Contributor

vladmandic commented Jul 15, 2023

using latest pip 23.2:

pip install torchsde

DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.*; python_version >= "3.7".
pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of torchsde or
contact the author to suggest that they release a version with a conforming dependency specifiers.
Discussion can be found at https://github.com/pypa/pip/issues/12063
@pradyunsg
Copy link

(you need to drop the .*)

@JacobDPoland
Copy link

I'm getting this error as well. How do you drop the *? Is there a text file to change or a command to type that will do this?

@angryptonX
Copy link

I'm getting this error as well. How do you drop the *? Is there a text file to change or a command to type that will do this?

you have to remove the .* at line18 numpy>=1.19.* in .\stable-diffusion-webui\venv\Lib\site-packages\torchsde-0.2.5.dist-info\METADATA

@eniora
Copy link

eniora commented Jul 18, 2023

I'm getting this error as well. How do you drop the *? Is there a text file to change or a command to type that will do this?

you have to remove the .* at line18 numpy>=1.19.* in .\stable-diffusion-webui\venv\Lib\site-packages\torchsde-0.2.5.dist-info\METADATA

Thank you this worked!

@MarianKoleff
Copy link

I have this exact issue with installation of ComfyUI Impact Pack, but there's no file METADA anywhere in ComfyUI and it's subfolders. Can it be in Miniconda3?

@eniora
Copy link

eniora commented Jul 20, 2023

I have this exact issue with installation of ComfyUI Impact Pack, but there's no file METADA anywhere in ComfyUI and it's subfolders. Can it be in Miniconda3?

I think that's because ComfyUI doesn't have a venv folder of its own so you have to edit the one in appdata, e.g.:

Editing line 18 in the METADATA file in %userprofile%\AppData\Local\Programs\Python\Python310\Lib\site-packages\torchsde-0.2.5.dist-info did it for me as explained by @angryptonX

Your path can be different depending on your python version etc.

@Bakobiibizo
Copy link

in case you cant find it also look in
%userprofile%\AppData\Local\Programs\miniconda3\envs%environmentname%\Lib\site-packages\storchsde-0.25.dist-info
and
%userprofile%.conda\envs%environmentname%\Lib\site-packages\storchsde-0.25.dist-info

@egoegoegoegoego
Copy link

I'm getting this error as well. How do you drop the *? Is there a text file to change or a command to type that will do this?

you have to remove the .* at line18 numpy>=1.19.* in .\stable-diffusion-webui\venv\Lib\site-packages\torchsde-0.2.5.dist-info\METADATA

hi, i don't have line 18 on my METADATA it only shows this...
Metadata-Version: 2.1
Name: torchsde
Version: 0.2.5
Summary: SDE solvers and stochastic adjoint sensitivity analysis in PyTorch.
Home-page: https://github.com/google-research/torchsde
Author: Xuechen Li
Author-email: lxuechen@cs.toronto.edu
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: ~=3.6
Requires-Dist: boltons (>=20.2.1)
Requires-Dist: torch (>=1.6.0)
Requires-Dist: trampoline (>=0.1.2)
Requires-Dist: numpy (==1.19.) ; python_version < "3.7"
Requires-Dist: scipy (==1.5.
) ; python_version < "3.7"
Requires-Dist: numpy (>=1.19.*) ; python_version >= "3.7"
Requires-Dist: scipy (>=1.5) ; python_version >= "3.7"

UNKNOWN

@StupidNut
Copy link

StupidNut commented Aug 6, 2023

hi, i don't have line 18 on my METADATA it only shows this...

you need to fix the second line Requires-Dist: numpy (which, except for the file name, will be the 18th line in order) in the METADATA file
Requires-Dist: numpy (>=1.19.*) ; python_version >= "3.7"

on

Requires-Dist: numpy (>=1.19) ; python_version >= "3.7"

@danteadc
Copy link

hi, i don't have line 18 on my METADATA it only shows this...

you need to fix the second line Requires-Dist: numpy (which, except for the file name, will be the 18th line in order) in the METADATA file Requires-Dist: numpy (>=1.19.*) ; python_version >= "3.7"

on

Requires-Dist: numpy (>=1.19) ; python_version >= "3.7"

Hello, I did this and it still didn't work. I still get the same message.

"DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.*; python_version >= "3.7". pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of torchsde or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at pypa/pip#12063".

Is there any other way around?

@patrick-kidger
Copy link
Collaborator

Hi -- with #133 this should now be fixed. This will still need another public release (with a new version number_, and the .github/workflows needs updating to use modern versions of Python.

We (the authors) intend to leave torchsde in "community maintenace" mode. We'd be happy to merge pull requests fixing things as required, but don't intend to do further work on this library ourselves.

@johnmora1984
Copy link

I am also experiencing the same issue after doing the suggested edits tot he metadata file. What could I be doing wrong?

@jphan32
Copy link
Contributor

jphan32 commented Aug 16, 2023

This issue has been resolved and merged in PR #133.

@vladmandic
Copy link
Contributor Author

What is the plan to publish a new package?

@patrick-kidger
Copy link
Collaborator

If someone wants to bump the version number (+I think also fix the CI crashing) then I'll be happy to publish a new version.

We (the original authors) have largely moved on. (In my case, to Diffrax.) But this has turned out to be a popular package, so we've decided to keep it going in "community maintenance" mode. We won't be working on this library directly ourselves, but will be happy to merge PRs as they are submitted.

@Fanghanmo2412
Copy link

I'm facing the same issue, please publish the new version if possible
Many thanks!

@cosmicnexus44
Copy link

I'm getting this error as well. How do you drop the *? Is there a text file to change or a command to type that will do this?

you have to remove the .* at line18 numpy>=1.19.* in .\stable-diffusion-webui\venv\Lib\site-packages\torchsde-0.2.5.dist-info\METADATA

TY, this worked here for me!

@patrick-kidger
Copy link
Collaborator

As per above:

We (the authors) intend to leave torchsde in "community maintenace" mode. We'd be happy to merge pull requests fixing things as required, but don't intend to do further work on this library ourselves.

If someone wants to submit the PR bumping the version number (and I think also fixing CI failures), then we can do a new release.

@vladmandic
Copy link
Contributor Author

@patrick-kidger i'm not sure what do you mean by that - only maintainers can create a release and publish to pypi.
and other than creating a release, i dont see what would "bumping the version number" pr do?

@patrick-kidger
Copy link
Collaborator

It would perform the necessary step of increasing the version number -- and as a prerequisite, this would also ensure that the CI is up-to-date.
Once that's done then indeed, a maintainer (=me) can push a new version to PyPI.

@vladmandic
Copy link
Contributor Author

but that's just a oneliner? ok, i've created a PR #137

@asifkhan1308
Copy link

I'm getting this error as well. How do you drop the *? Is there a text file to change or a command to type that will do this?

you have to remove the .* at line18 numpy>=1.19.* in .\stable-diffusion-webui\venv\Lib\site-packages\torchsde-0.2.5.dist-info\METADATA

i tried still it occurs.:
Requires-Dist: numpy (==1.19.) ; python_version < "3.7"
Requires-Dist: scipy (==1.5.
) ; python_version < "3.7"
Requires-Dist: numpy (>=1.19) ; python_version >= "3.7"
Requires-Dist: scipy (>=1.5) ; python_version >= "3.7"

even with this it occurs the same error again:
DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.*; python_version >= "3.7". pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of torchsde or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at pypa/pip#12063

@STEMBytes
Copy link

please update this version to conform to PiP .. there are a lot of people who are getting this error and need someone to update it.

@vladmandic
Copy link
Contributor Author

closing as resolved.

@haab1001
Copy link

haab1001 commented Dec 6, 2023

Update failed.
No module named 'pygit2'
Update succeeded.
[System ARGV] ['entry_with_update.py']
Traceback (most recent call last):
File "entry_with_update.py", line 45, in
from launch import *
File "D:\AI_code\Fooocus\launch.py", line 22, in
from modules.config import path_checkpoints, path_loras, path_vae_approx, path_fooocus_expansion,
File "D:\AI_code\Fooocus\modules\config.py", line 7, in
import modules.sdxl_styles
File "D:\AI_code\Fooocus\modules\sdxl_styles.py", line 5, in
from modules.util import get_files_from_folder
File "D:\AI_code\Fooocus\modules\util.py", line 1, in
import numpy as np
ModuleNotFoundError: No module named 'numpy

I fixed the change in METADATA but now i get this error

@roninDday
Copy link

我的 Mac上 只有torchsde-0.2.6.dist-info,依然遇到这个问题

DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.*; python_version >= "3.7". pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of torchsde or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at pypa/pip#12063

怎样做才能安装insightface

@YD-JJ
Copy link

YD-JJ commented Sep 12, 2024

我在安装 ComfyUI Impact Pack 时遇到了这个确切的问题,但是 ComfyUI 及其子文件夹中的任何地方都没有文件 METADA。它可以在 Miniconda3 中吗?

我认为这是因为 ComfyUI 没有自己的 venv 文件夹,因此您必须在 appdata 中编辑该文件夹,例如:

%userprofile%\AppData\Local\Programs\Python\Python310\Lib\site-packages\torchsde-0.2.5.dist-info 中编辑 METADATA 文件中的第 18 行,如解释的那样为我完成了此操作

您的路径可能会有所不同,具体取决于您的 python 版本等。
这个办法真的很有效,如果你使用的是秋叶大佬的comfyui,那么要在comfyui中的python中修改

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