-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
6.4.0 importing deepdiff results in none type error #416
Comments
This was referenced Sep 1, 2023
softwarefactory-project-zuul bot
added a commit
to packit/packit-service
that referenced
this issue
Sep 1, 2023
Temporarily lock deepdiff version to fix CI failures See: seperman/deepdiff#416 Reviewed-by: Maja Massarini
softwarefactory-project-zuul bot
added a commit
to packit/packit
that referenced
this issue
Sep 1, 2023
Temporarily lock deepdiff version to fix CI failures See: seperman/deepdiff#416 Reviewed-by: Maja Massarini
I have the same issue. v6.3.1 worked/works fine but v6.4.0 gives error:
I'm running it in a Docker container named "webserver" and these are the docker-compose logs output. |
Thanks for reporting it.It has happening because it is trying to check Numpy’s version and you don’t have Numpy (optional) installed.I will fix it asap.Sep DehpourOn Sep 1, 2023, at 7:07 AM, daxm ***@***.***> wrote:
I have the same issue. v6.3.1 worked/works fine but v6.4.0 gives error:
webserver | Traceback (most recent call last):
webserver | File "/app/webserver.py", line 2, in <module>
webserver | import run_actions
webserver | File "/app/run_actions.py", line 13, in <module>
webserver | import actions
webserver | File "/app/actions/__init__.py", line 1, in <module>
webserver | from actions.api_basics import ApiBasics
webserver | File "/app/actions/api_basics.py", line 4, in <module>
webserver | from .zs4u_essentials import Zs4uEssentials
webserver | File "/app/actions/zs4u_essentials.py", line 8, in <module>
webserver | from .scorch_the_earth import ScorchTheEarth
webserver | File "/app/actions/scorch_the_earth.py", line 4, in <module>
webserver | from deepdiff import DeepDiff
webserver | File "/usr/local/lib/python3.11/site-packages/deepdiff/__init__.py", line 10, in <module>
webserver | from .diff import DeepDiff
webserver | File "/usr/local/lib/python3.11/site-packages/deepdiff/diff.py", line 19, in <module>
webserver | from deepdiff.helper import (strings, bytes_type, numbers, uuids, datetimes, ListItemRemovedOrAdded, notpresent,
webserver | File "/usr/local/lib/python3.11/site-packages/deepdiff/helper.py", line 158, in <module>
webserver | if get_semvar_as_integer(np.__version__) < 1019000:
webserver | ^^^^^^^^^^^^^^
webserver | AttributeError: 'NoneType' object has no attribute '__version__'
webserver exited with code 1
I'm running it in a Docker container named "webserver" and these are the docker-compose logs output.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Hello, thanks for reporting the issue. |
Tested. My code runs successfully on v6.4.1. |
Thanks, all seems to be fixed in 6.4.1 as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting the following error in CI:
OS: Ubuntu 22.0.4 LTS
Python Version: 3.10.12
DeepDiff Version 6.4.0
Additional context
Failing to
import numpy as np
, so np is set to None by the try excepthttps://github.com/seperman/deepdiff/blob/master/deepdiff/helper.py
The text was updated successfully, but these errors were encountered: