Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #106502 > unrolled thread

Import error

Started byNicolae Morkov <morkovnicolae@gmail.com>
First post2016-04-05 10:53 +0100
Last post2016-04-05 20:14 +1000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Import error Nicolae Morkov <morkovnicolae@gmail.com> - 2016-04-05 10:53 +0100
    Re: Import error Steven D'Aprano <steve@pearwood.info> - 2016-04-05 20:14 +1000

#106502 — Import error

FromNicolae Morkov <morkovnicolae@gmail.com>
Date2016-04-05 10:53 +0100
SubjectImport error
Message-ID<mailman.59.1459850094.32530.python-list@python.org>
What can I do ,,,,  I've tried everything

[toc] | [next] | [standalone]


#106504

FromSteven D'Aprano <steve@pearwood.info>
Date2016-04-05 20:14 +1000
Message-ID<57038ff1$0$1595$c3e8da3$5496439d@news.astraweb.com>
In reply to#106502
On Tue, 5 Apr 2016 07:53 pm, Nicolae Morkov wrote:

> What can I do ,,,,  I've tried everything

You can start by telling us what you are trying to do, and what error you
are getting.

- What module are you trying to import?

- Are you sure it is installed? How do you know?

- What command do you give to import it? COPY and PASTE it, don't 
  type it out from memory.

- What happens? Do you get an error? What EXACT error message do 
  you get? COPY and PASTE the entire error, starting from the
  line "Traceback", don't summarise it or retype it from memory.



Good question, with a useful answer:


Question: I'm trying to import the maths module, so I write `import maths`,
and I get this traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'maths'

Answer: Try `import math` without the S.



Bad question, with no useful answers:

Question: "It doesn't work!!!!! What am I doing wrong????"




-- 
Steven

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web