pyreport icon indicating copy to clipboard operation
pyreport copied to clipboard

I can't find the pyreport executable

Open yasirs opened this issue 12 years ago • 2 comments

I am on OSX, and installed pyreport 3 ways. I can see the module installed, but I can't find the pyreport executable script.

  1. From github:

    $ git clone git://github.com/joblib/pyreport.git
    $ cd pyreport
    $ sudo python install pyreport
    

    My python is in /opt/local/bin, but there is no pyreport in /opt/local/bin or /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/

  2. Using MacPorts' easy_install $ sudo /opt/local/bin/easy_install-2.7 pyreport The pyreport script is nowhere to be found.

  3. Using the system easy_install $ /usr/bin/easy_install pyreport $ ls /usr/bin/pyre* ls: /usr/bin/pyre*: No such file or directory

How can I get the executable script?

yasirs avatar Apr 18 '13 18:04 yasirs

The executable script is just pyreport/pyreport.py

yasirs avatar Apr 19 '13 21:04 yasirs

I think the following should always work: Use python -m pyreport.pyreport instead of pyreport for invocation. But it is a bug, a softlink should be generated.

After installing pyreport with pip, you can make a manual bugfix by creating the softlink by hand, as root:

cd /usr/local/bin  # or whatever
ln -s   /usr/local/lib/python2.7/dist-packages/pyreport/pyreport.py
mv pyreport{.py,} && chmod 755 pyreport

svenk avatar May 02 '14 09:05 svenk