bofh19 / yappi

Automatically exported from code.google.com/p/yappi
MIT License
0 stars 0 forks source link

import yappi doesn't work #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install yappi
2. in the same shell, /usr/bin/python, "import yappi" works ok
3. open another shell (not the one in which it was installed),
/usr/bin/python, get:

Linux RH [15:47] root ~ # /usr/bin/python
Python 2.6.1 (r261:67515, Feb 18 2009, 13:37:34)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yappi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named yappi

What is the expected output? What do you see instead?

I expected to be able to import yappi in any Python interpreter, spawned
from wherever on the system.

What version of the product are you using? On what operating system?

latest yappi (0.3), RH 5.3 on vmware esx.

Please provide any additional information below.

It seems like "/usr/bin/python setup.py install" leaves something around
that makes immediate import work ok, but when this shell is closed, it
doesn't work in another. Env variable perhaps?

Original issue reported on code.google.com by mrk...@gmail.com on 30 Dec 2009 at 2:51

GoogleCodeExporter commented 9 years ago
I believe the problem is that the yappi.py file was missing from the 
distribution in
setup.py. The reason it was working in your "installation shell" was likely 
because
you were in the same directory as yappi.py. 

Adding the following keyword argument to the setup() call fixed it for me: 
py_modules
= ["yappi"]. I've attached my setup.py.

Original comment by chromak...@gmail.com on 4 Jan 2010 at 12:13

Attachments:

GoogleCodeExporter commented 9 years ago
will be added in v0.4

Original comment by sum...@gmail.com on 23 Feb 2010 at 7:12

GoogleCodeExporter commented 9 years ago
Issue 8 has been merged into this issue.

Original comment by sum...@gmail.com on 23 Feb 2010 at 7:12

GoogleCodeExporter commented 9 years ago

Original comment by sum...@gmail.com on 23 Feb 2010 at 7:14