Menu

#1444 from .. import aa, bb as cc: bogus error

open
nobody
None
5
2012-01-12
2011-12-17
No

The following works fine:

from .common import retry, NoSuchBucket

but this produces an "Unresolved import: NoSuchBucket_common" error:

from .common import retry, NoSuchBucket as NoSuchBucket_common

Note, however, that the following works:

from .common import NoSuchBucket as NoSuchBucket_common
from .common import retry

Discussion

  • Nikolaus Rath

    Nikolaus Rath - 2011-12-17
    • summary: from .. import xx as yy: bogus warning --> from .. import aa, bb as cc: bogus error
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-12-20

    Trying in a simple example I haven't been able to reproduce your problem... Can you attach to this issue some sample code with a project where I can reproduce it?

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-12-20
    • status: open --> pending
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-12-20

    Also, what's the PyDev version you're using?

     
  • Nikolaus Rath

    Nikolaus Rath - 2012-01-12
    • status: pending --> open
     
  • Nikolaus Rath

    Nikolaus Rath - 2012-01-12

    Sample project is attached. PyDev version is 2.3.0.2011121518.

     
  • Nikolaus Rath

    Nikolaus Rath - 2012-01-12

    PyDev Screenshot

     
  • Nikolaus Rath

    Nikolaus Rath - 2012-01-12

    Sample project demonstrating the problem

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.