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

Import error #42

Open
RiccardoRiglietti opened this issue Mar 20, 2022 · 1 comment
Open

Import error #42

RiccardoRiglietti opened this issue Mar 20, 2022 · 1 comment

Comments

@RiccardoRiglietti
Copy link

What could be a fix for this ImportError?

(base) riccardo@riccardo-Aspire-A317-51G:~$ git clone https://github.com/sairajk/Image-Super-Resolution-Application
Clone in 'Image-Super-Resolution-Application' in corso...
remote: Enumerating objects: 125, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 125 (delta 40), reused 0 (delta 0), pack-reused 62
Ricezione degli oggetti: 100% (125/125), 20.69 MiB | 24.69 MiB/s, fatto.
Risoluzione dei delta: 100% (55/55), fatto.
(base) riccardo@riccardo-Aspire-A317-51G:~$ cd Image-Super-Resolution-Application
(base) riccardo@riccardo-Aspire-A317-51G:~/Image-Super-Resolution-Application$ ls
download.py    preprocess.py  requirements.txt  sr_main_keras.py  vid2frame.py
downsample.py  Readme.docx    screenshots       SR_sample_images
LICENSE        README.md      sr_gui_browse.py  train_best_w.h5
(base) riccardo@riccardo-Aspire-A317-51G:~/Image-Super-Resolution-Application$ python sr_gui_browse.py
Traceback (most recent call last):
  File "sr_gui_browse.py", line 5, in <module>
    from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
ImportError: cannot import name 'NavigationToolbar2TkAgg' from 'matplotlib.backends.backend_tkagg' (/home/riccardo/anaconda3/lib/python3.8/site-packages/matplotlib/backends/backend_tkagg.py)

@RiccardoRiglietti
Copy link
Author

RiccardoRiglietti commented Mar 20, 2022

My installation is:

(base) riccardo@riccardo-Aspire-A317-51G:~/Image-Super-Resolution-Application$ python
Python 3.8.8 (default, Apr 13 2021, 19:58:26) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

If I try to install the dependencies I get:

(base) riccardo@riccardo-Aspire-A317-51G:~/Image-Super-Resolution-Application$ pip install requirements.txt 
ERROR: Could not find a version that satisfies the requirement requirements.txt (from versions: none)
HINT: You are attempting to install a package literally named "requirements.txt" (which cannot exist). Consider using the '-r' flag to install the packages listed in requirements.txt
ERROR: No matching distribution found for requirements.txt

Trying with -r flag:

(base) riccardo@riccardo-Aspire-A317-51G:~/Image-Super-Resolution-Application$ pip install -r requirements.txt 
Collecting absl-py==0.1.11
  Using cached absl-py-0.1.11.tar.gz (80 kB)
Collecting alabaster==0.7.10
  Using cached alabaster-0.7.10-py2.py3-none-any.whl (12 kB)
Collecting altgraph==0.15
  Using cached altgraph-0.15-py2.py3-none-any.whl (23 kB)
ERROR: Could not find a version that satisfies the requirement anaconda-client==1.6.5 (from versions: 1.1.1, 1.2.2)
ERROR: No matching distribution found for anaconda-client==1.6.5

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