Getting AttributeError: 'module' object (scipy) has no attribute 'misc' in Python. How to solve this?

0 votes

Python module I have written suddenly no longer works with the error message that the module scipy does not have the attribute 'misc'.  I am still using python 2.7 after the update. 

I just updated Ubuntu to its latest stable version and that's about it.

Here is where the code crashes

import scipy
scipy.misc.imsave(slice,dat)

Any ideas on how to fix this? Appreciate some help!

Dec 24, 2018 in Python by Anirudh
• 2,080 points
4,009 views

1 answer to this question.

0 votes
>>> import scipy
>>> scipy.misc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'misc'
>>> 
>>> 
>>> import scipy.misc
>>> scipy.misc.imsave
<function imsave at 0x19cfa28>
>>>

This is very common with scipy. Cheers!

answered Dec 24, 2018 by Nymeria
• 3,520 points

Related Questions In Python

0 votes
1 answer

Python error "AttributeError: '_Screen' object has no attribute 'mainloop'" python module turtle

Hey @Nagya, replace  wn.mainlopp() with turtle.mainloop() ...READ MORE

answered Jun 19, 2019 in Python by Faiza
1,535 views
0 votes
1 answer

how to solve the error : "ImportError: No module named Tkinter" in python.

Hi@Umama, If you are using Linux system, then ...READ MORE

answered Apr 27 in Python by MD
• 54,520 points
2,491 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,347 views
0 votes
0 answers
+4 votes
6 answers
0 votes
1 answer

How to convert a Pandas GroupBy object to DataFrame in Python

g1 here is a DataFrame. It has a hierarchical index, ...READ MORE

answered Nov 12, 2018 in Python by Nymeria
• 3,520 points
21,277 views
+1 vote
8 answers

How to fix this? ValueError: invalid literal for int() with base 10 error in Python

Just for the record: >>> int('55063.000000') Traceback (most recent ...READ MORE

answered Aug 17 in Python by pakainfo
• 200 points
143,400 views