Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slicer is not recognized as an internal or external command #47

Closed
adjaib opened this issue May 7, 2012 · 2 comments
Closed

Slicer is not recognized as an internal or external command #47

adjaib opened this issue May 7, 2012 · 2 comments

Comments

@adjaib
Copy link

adjaib commented May 7, 2012

Hi Stefan,
I tried to run hello_world example on Win7, but stuck at running 'slicer serve slicer.ini' with above error message.
I found "Slicer" file (without exe or py extension) on C:\Python27\Scripts which contain following code:

#!C:\Python27\python.exe
# EASY-INSTALL-SCRIPT: 'cubes==0.8.1','slicer'
 __requires__ = 'cubes==0.8.1'
 import pkg_resources
 pkg_resources.run_script('cubes==0.8.1', 'slicer')

I tried both 'pip install cubes' and 'python setup.py install'. Do I miss something here?

@Stiivi
Copy link
Member

Stiivi commented May 7, 2012

Not sure how it works on Windows, but check your PATH. 'python setup.py install' should install the bin/slicer somewhere in your path. Look for a line similar to:

...
Installing slicer script to /Library/Frameworks/Python.framework/Versions/2.7/bin
...

to see where it gets installed.

@adjaib adjaib closed this as completed May 7, 2012
@adjaib
Copy link
Author

adjaib commented May 7, 2012

I suppose it should be installed in C:\Python27\Scripts (same folder for pip, easy_install, etc).

Incidentally, I managed to "find/generate" slicer.py and place it manually in above directory and I'm able to run the example. However, I could not retrace back steps I did to generate it :(

https://gist.github.com/2626941

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants