question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

arbitrary_image_stylization: 'scipy.misc' has no attribute 'imread'

See original GitHub issue

Attempting to run the first example command from here yields the following output:

Traceback (most recent call last):
  File "~/anaconda3/envs/magenta/bin/arbitrary_image_stylization_with_weights", line 8, in <module>
    sys.exit(console_entry_point())
  File "~/anaconda3/envs/magenta/lib/python3.7/site-packages/magenta/models/arbitrary_image_stylization/arbitrary_image_stylization_with_weights.py", line 178, in console_entry_point
    tf.app.run(main)
  File "~/anaconda3/envs/magenta/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "~/anaconda3/envs/magenta/lib/python3.7/site-packages/absl/app.py", line 299, in run
    _run_main(main, args)
  File "~/anaconda3/envs/magenta/lib/python3.7/site-packages/absl/app.py", line 250, in _run_main
    sys.exit(main(argv))
  File "~/anaconda3/envs/magenta/lib/python3.7/site-packages/magenta/models/arbitrary_image_stylization/arbitrary_image_stylization_with_weights.py", line 112, in main
    content_img_np = image_utils.load_np_image_uint8(content_img_path)[:, :, :
  File "~/anaconda3/envs/magenta/lib/python3.7/site-packages/magenta/models/image_stylization/image_utils.py", line 399, in load_np_image_uint8
    image = scipy.misc.imread(f.name)
AttributeError: module 'scipy.misc' has no attribute 'imread'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
adarobcommented, Jun 25, 2020

What happens if you do

pip uninstall scipy
pip install scipy==1.2.2

after installing magenta?

1reaction
xandramaxcommented, Jun 17, 2020

Pillow is already installed, and the original AttributeError remains.

Requirement already satisfied: Pillow in ~/anaconda3/envs/magenta/lib/python3.7/site-packages (7.1.2)
Read more comments on GitHub >

github_iconTop Results From Across the Web

scipy.misc module has no attribute imread? - Stack Overflow
I am trying to read an image with scipy. However it does not accept the scipy.misc.imread part. What could be the cause of...
Read more >
PYTHON : scipy.misc module has no attribute imread?
PYTHON : scipy. misc module has no attribute imread ? [ Gift : Animated Search Engine : https://www.hows.tech/p/recommended.html ] PYTHON ...
Read more >
scipy.misc module has no attribute imread? - SyntaxFix
I am trying to read an image with scipy. However it does not accept the scipy.misc.imread part. What could be the cause of...
Read more >
Python – scipy.misc module has no attribute imread - iTecNote
Python – scipy.misc module has no attribute imread. dependenciesinstallationpythonpython-imaging-libraryscipy. I am trying to read an image with scipy.
Read more >
Attributeerror While Running Scipy.Ndimages.Imread - ADocLib
Solution: AttributeError: module'scipy.misc' has no attribute'imread' error ... Import ndimage from scipy import ndimage # Call imread fname images/ +.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found