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

[BUG] RecursionError: maximum recursion depth exceeded #4601

Open
2 of 4 tasks
ChicoQi opened this issue Jul 30, 2024 · 0 comments
Open
2 of 4 tasks

[BUG] RecursionError: maximum recursion depth exceeded #4601

ChicoQi opened this issue Jul 30, 2024 · 0 comments
Labels
bug Bug fixes

Comments

@ChicoQi
Copy link

ChicoQi commented Jul 30, 2024

Instructions

Thank you for submitting an issue. Please refer to our
issue policy
for information on what types of issues we address.

  1. Please fill in this template to ensure a timely and thorough response
  2. Remove the section instructions but leave the section header
  3. Place an "x" between the brackets next to an option if it applies. For
    example:
    • Selected option
  4. Please delete everything above this line before submitting the issue

Describe the problem

Can't import fiftyone after conda install it.

Code to reproduce issue

Provide a reproducible test case that is the bare minimum necessary to generate
the problem. Please avoid sharing code that relies on your local data or
datasets. Include a short video or screenshot if the bug is in the App.

# commands and/or screenshots here
---------------------------------------------------------------------------
RecursionError                            Traceback (most recent call last)
File /home/chicoqi/_models/yolo/notebooks/data_analysis/1.0-bw-explore-coco-dataset.py:2
      1 #%%
----> 2 import fiftyone as fo
      3 import fiftyone.zoo as foz

File ~/miniconda3/envs/fiftyone-P3.11/lib/python3.11/site-packages/fiftyone/__init__.py:25
     21 import fiftyone.constants as _foc
     23 __version__ = _foc.VERSION
---> 25 from fiftyone.__public__ import *
     27 import fiftyone.core.logging as _fol
     30 _fol.init_logging()

File ~/miniconda3/envs/fiftyone-P3.11/lib/python3.11/site-packages/fiftyone/__public__.py:16
     13 evaluation_config = _foc.load_evaluation_config()
     14 app_config = _foc.load_app_config()
---> 16 from .core.aggregations import (
     17     Aggregation,
     18     Bounds,
     19     Count,
     20     CountValues,
     21     Distinct,
     22     FacetAggregations,
     23     HistogramValues,
...
--> 417     arg1 = dtype(arg1).type
    418 if not issubclass_(arg2, generic):
    419     arg2 = dtype(arg2).type

RecursionError: maximum recursion depth exceeded while calling a Python object

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 22.04): Ubuntu 22.04.2 LTS
  • Python version (python --version): Python 3.11.9
  • FiftyOne version (fiftyone --version): 0.24.1
  • FiftyOne installed from (pip or source): conda

Other info/logs

(fiftyone-P3.11) chicoqi@dory:~$ python
Python 3.11.9 (main, Apr 19 2024, 16:48:06) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fiftyone as fo
Traceback (most recent call last):
  File "/home/chicoqi/miniconda3/envs/fiftyone-P3.11/lib/python3.11/site-packages/numpy/core/_dtype.py", line 143, in _scalar_str
    elif np.issubdtype(dtype, np.number):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chicoqi/miniconda3/envs/fiftyone-P3.11/lib/python3.11/site-packages/numpy/core/numerictypes.py", line 417, in issubdtype
    arg1 = dtype(arg1).type
           ^^^^^^^^^^^
...

  File "/home/chicoqi/miniconda3/envs/fiftyone-P3.11/lib/python3.11/site-packages/numpy/core/numerictypes.py", line 417, in issubdtype
    arg1 = dtype(arg1).type
           ^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded while calling a Python object

Willingness to contribute

The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?

  • Yes. I can contribute a fix for this bug independently
  • Yes. I would be willing to contribute a fix for this bug with guidance
    from the FiftyOne community
  • No. I cannot contribute a bug fix at this time
@ChicoQi ChicoQi added the bug Bug fixes label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fixes
Projects
None yet
Development

No branches or pull requests

1 participant