nik2img install with macports python

View: New views
2 Messages — Rating Filter:   Alert me  

nik2img install with macports python

by Joseph Jira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello:

Since I now have a working Mapnik installation on my Mac, I'd like to try to use nik2img-2_4. 
My installation uses python 2.6 via macports. 

I installed nik2img, but when trying to test my installation ($ which nik2img.py)
I got the error: -bash: nik2img.py: command not found.

How do I get my macports python 2.6 to recognize nik2img?

My apologies for the simple questions, but I am new to this and have difficulties understanding how things connect from program to program.




Joseph M Jira


_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: nik2img install with macports python

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joseph,

On Jun 26, 2009, at 12:23 PM, Joseph Jira wrote:

Hello:

Since I now have a working Mapnik installation on my Mac, I'd like to try to use nik2img-2_4. 
My installation uses python 2.6 via macports. 

Did you do?

cd nik2img2_4
sudo python setup.py install


I installed nik2img, but when trying to test my installation ($ which nik2img.py)
I got the error: -bash: nik2img.py: command not found.


That likely means that either your python setuptools/distutils setup put the command line script of nik2img in a location that is not on your PATH or the script did not install because you forgot to type 'sudo'.

How do I get my macports python 2.6 to recognize nik2img?


It should work as long as you follow the above instructions (using easy_install can be trickier because usually non-macports versions hanging around can cause problems).

My apologies for the simple questions, but I am new to this and have difficulties understanding how things connect from program to program.


If re-installing does not fix things, can you paste the output of the 'sudo python setup.py install' command in a reply email?

Dane

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users