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

ImportError while running duplicate_finder.py on Ubuntu 22 WSL #89

Open
MightyMirko opened this issue Feb 23, 2023 · 1 comment
Open

Comments

@MightyMirko
Copy link

MightyMirko commented Feb 23, 2023

Description

When I run the command python3 duplicate_finder.py add "/home/ubuntu/" on Ubuntu 22 WSL, the program throws an ImportError.

Steps to Reproduce

Install the duplicate-images package using the instructions provided in the repository. (mongodb was installed like here: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/)
Run the command python3 duplicate_finder.py add "/home/ubuntu/" in the terminal.

Expected Result

The program should execute without any errors and add the specified directory to the list of directories to be searched for duplicate images.

Actual Result

The program throws an ImportError, as shown below:

Traceback (most recent call last):
  File "/home/ubuntu/duplicate-images/duplicate_finder.py", line 40, in <module>
    from flask import Flask
  File "/home/ubuntu/.local/lib/python3.10/site-packages/flask/__init__.py", line 17, in <module>
    from werkzeug.exceptions import abort
  File "/home/ubuntu/.local/lib/python3.10/site-packages/werkzeug/__init__.py", line 151, in <module>
    __import__('werkzeug.exceptions')
  File "/home/ubuntu/.local/lib/python3.10/site-packages/werkzeug/exceptions.py", line 71, in <module>
    from werkzeug.wrappers import Response
  File "/home/ubuntu/.local/lib/python3.10/site-packages/werkzeug/wrappers.py", line 27, in <module>
    from werkzeug.http import HTTP_STATUS_CODES, \
  File "/home/ubuntu/.local/lib/python3.10/site-packages/werkzeug/http.py", line 1148, in <module>
    from werkzeug.datastructures import Accept, HeaderSet, ETags, Authorization, \
  File "/home/ubuntu/.local/lib/python3.10/site-packages/werkzeug/datastructures.py", line 16, in <module>
    from collections import Container, Iterable, MutableSet
ImportError: cannot import name 'Container' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

System Configuration

Operating System: Ubuntu 22 on WSL
Python version: 3.10
duplicate-images version: latest from the GitHub repository
@MightyMirko
Copy link
Author

Updated flask:
pip install -U Flask

Now it wont start mongodb :( I have to dig in deeper

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

1 participant