This repository was archived by the owner on Aug 7, 2023. It is now read-only.
Replies: 2 comments 1 reply
-
|
Numpy has deprecated |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
You can only write to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The error happened locally and I solved by changing "if dtype == np.object" to "if dtype == np.object_" in the local python directory, but when I deployed it the error happened again, the error is not from Deta, it's from Numpy, they're changing that "object" to "object_", so to help me with this it needs to be altered by Deta admins, this is the error log so you can find its path :
Traceback (most recent call last):
File "/opt/python/detalib/debugger.py", line 142, in wrap
result = func(event, context)
File "/var/task/entry.py", line 12, in handler
import main # noqa
File "/var/task/main.py", line 9, in
app = FastAPI_CSV("./nhl_elo.csv")
File "/opt/python/fastapi_csv/applications.py", line 118, in init
type = dtype_to_type(dtype)
File "/opt/python/fastapi_csv/applications.py", line 35, in dtype_to_type
if dtype == np.object:
File "/opt/python/numpy/init.py", line 284, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'object'
Beta Was this translation helpful? Give feedback.
All reactions