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

AttributeError: module 'concurrent' has no attribute 'futures' #76

Closed
louislva opened this issue Jan 25, 2022 · 3 comments
Closed

AttributeError: module 'concurrent' has no attribute 'futures' #76

louislva opened this issue Jan 25, 2022 · 3 comments

Comments

@louislva
Copy link

Getting this traceback after I upgraded:

  File "push_to_cord.py", line 15, in upload_image_group
    res = cord_dataset.create_image_group(image_paths)
  File "/home/louislva/.local/lib/python3.8/site-packages/cord/client.py", line 232, in create_image_group
    upload_to_signed_url_list(file_paths, signed_urls, self._querier, Image, max_workers)
  File "/home/louislva/.local/lib/python3.8/site-packages/cord/http/utils.py", line 58, in upload_to_signed_url_list
    with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as executor:
AttributeError: module 'concurrent' has no attribute 'futures'

It seems like you just need to change the way you import concurrent (see this thread)

My colleague Esben has also made a PR to address it: #70

@denis-cord
Copy link
Contributor

Hi @louislva, thanks for flagging this.

We had created #73 that fixed the issue previously, but we haven't released the fix to PyPI yet. Given that it addresses the same issue that #70 tries to fix, I will close #70.

Let me also make sure to release the lastest version of the SDK so it is fixed for you.

@louislva
Copy link
Author

Got it. Thanks Denis.

@denis-cord
Copy link
Contributor

Version 0.1.26 is now published. Please reach out if you still experience any issues.

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

2 participants