pytest-dev / py

Python development support library (note: maintenance only)
MIT License
67 stars 106 forks source link

Error during import py : 'module' object has no attribute 'builtin' #176

Closed arita37 closed 6 years ago

arita37 commented 6 years ago

When doing import py

I have this message :


python2.7/site-packages/_pytest/_code/code.py in <module>()
      7 builtin_repr = repr
      8
----> 9 reprlib = py.builtin._tryimport('repr', 'reprlib')
     10
     11 if sys.version_info[0] >= 3:

AttributeError: 'module' object has no attribute 'builtin'
RonnyPfannschmidt commented 6 years ago

do you by chance have a local file called py.py or a own python package called py?

else what versions of those packages have you installed and what does your folder tree look like?

arita37 commented 6 years ago

problem solved :

Install package pytest instead of py

py is deprecated !!!

On Nov 26, 2017, at 17:31, Ronny Pfannschmidt notifications@github.com wrote:

do you by chance have a local file called py.py or a own python package called py?

else what versions of those packages have you installed and what does your folder tree look like?

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

RonnyPfannschmidt commented 6 years ago

thanks for following up