pytest-dev / py

Python development support library (note: maintenance only)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

arita37 opened this issue · comments

commented

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'

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?

commented

thanks for following up