It is currently Thu Jul 04, 2024 4:18 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: python file ?
PostPosted: Wed Sep 14, 2011 5:19 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Sep 12, 2011
Posts: 377
Location: UK
GIMP Version: 2.6.11
Operating System: Windows
OS Version: Windows 7 (64-bit)
GIMP Experience: Beginner Level



Sorry for so many questions on smc's i need to make that i have out them in the right places.

I have 2 py files but not sure where to put them, there is no smc with them just file. Ant ideas where to put them please


Last edited by Lorri on Wed Sep 14, 2011 5:25 am, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: python life ?
PostPosted: Wed Sep 14, 2011 5:20 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Is it a .py extension?

_________________
Image


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 5:25 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 12, 2011
Posts: 377
Location: UK
no i just says python file nothing else


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 6:28 am  (#4) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2438
the files should have a .py extension, Windows by default does not generally show extensions.

Dangerous, especially in Win to dabble with unknown files, but if they are python plugins open one with notepad - they are text files - and the first line should be.
#!/usr/bin/env python

where do they go, your local gimp plugins directory as per

http://i.imgur.com/FcMPI.png

edit: Just a thought, you do have python installed?

_________________
Image


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 6:52 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Sep 12, 2011
Posts: 377
Location: UK
I've tried to opn them but a flash black screen comes up then it goes it only last a less of a second. I've just right clicked it to open it some where else and the name file color_balance_2wp_quick_py is that any help to ya

Yes I do but I haven't got plug-ins listed on the left of the menu as same as you. I did plug-ins some where but can't remember where it is


Last edited by Lorri on Wed Sep 14, 2011 6:59 am, edited 1 time in total.

Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 6:59 am  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
If you go to your folder options, check the general tab > Hidden files and folders > show hidden files, folders, and drives. This should be checked with a dot beside it.

_________________
Image


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 7:04 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 12, 2011
Posts: 377
Location: UK
the plug-ins is in 2.0 list just found it


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 8:04 am  (#8) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
@ Lorri

if you don't want get crazy (not only when using gimp )better you change Explorer options:

humm i 'm using the laptop here and run with 7, to check exctly how to do with XP i must go back to my home desktop
i just give a generic hint now, ...if not sufficent ask in case i will add details later

1 From Explorer (FILE explorer not I.E.) or from Search, search in the menu "option"
there search "option for file and folder"

OK if you are there
1) UNcheck "hide extension for commune file" (or "commune file format" or "commune format" not sure of exact english spelling, but you can't mistake ,only 1 option has that meaning)
2) CHECK show hidden and system files

about 2 :
see hidden or system files can't do any harm, (only harm may come to EDIT or DELETE such Files, BUT systems files are displayed in a different colors, usually blue
On the other hand XP tend to hide to yourself some of you own files making search a nightmare

about 1

Hide extension is pure idiocy and even dangerous (i.e. you may click on a crapware installer thinking that is a image or a test

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 8:10 am  (#9) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
About open py file, the humble MS notepad may do it , but nothing will happen just clicking on the file
You should go in Windows/All programs/Accessories/ Notepad , start the notepad, and from notepad file/open...

But , again to make your life easier grab this http://notepad-plus-plus.org/
once installed you should be able to automatically open the file just clicking on it, and will display the file in a much more readable way

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 8:11 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Sep 12, 2011
Posts: 377
Location: UK
I haven't got xp I've got win7 I've typed in the program area and clicked on python plugins a black screen came up then it went again that went in a flash


Last edited by Lorri on Wed Sep 14, 2011 8:29 am, edited 1 time in total.

Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 8:27 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Lorri, maybe you should change the info in the help post, You have windows XP listed there as your OS, where you should have Windows 7 (64-bit). There is a difference to where you install things.

_________________
Image


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 8:33 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Sep 12, 2011
Posts: 377
Location: UK
where do i change that Molly please


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 8:43 am  (#13) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
you can edit your own posts, I think you can change it by clicking edit, and changing it from there.

_________________
Image


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 8:47 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Sep 12, 2011
Posts: 377
Location: UK
No you can't but I'll have a look on the new topic bit


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 9:54 am  (#15) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Hy wait a second i am just replying to your previous question

for 7 i may help now
But again may be no strictly needed if you install Notepad++ (link in my previous) message ,
Don't worry if NOtepad++ may look complex, you don't need to dig in the complexity but just use it as you will use ythe most simple text editor

Anyway and this will help not only to run python script:

go to Start/Control Panel/Folder options

Attachment:
control panel.jpg
control panel.jpg [ 103.46 KiB | Viewed 1100 times ]


there click "View" tab

Attachment:
control Panel2.jpg
control Panel2.jpg [ 102.64 KiB | Viewed 1100 times ]


almost at beginning you will see "Hidden Files and Folder" and below "Don't display hidden files and folder " UNMark that box

very last, scroll down a bit

Attachment:
control panel3.jpg
control panel3.jpg [ 105.06 KiB | Viewed 1100 times ]


Uncheck "hide System files" (Ignore the warning that will pop out, you WISH that)
And even more important the option just below "hide file extension"

CLICK APPLY and then OK to exit

Now you will be able to know what the heck is in your computer, if a file is .py , .scm. jpg. or a exe or whatelse

And you will discover if the file is py, or as happen usually for Py plugin downloaded from the plugin registry (for a nasty bug in the side) it become .py.txt...in case just remove ".txt" , ignore any warning (=YES you want change file extension).

About opening py still i have no bclear why you wish open it, if you place in the right place is Gimp that will RUN the file once you click the right menu entry

Anyway as i wrote if you have Notepad ++ installed you should be able to open the file just clicking on it

If not open the more cheap MS notepad (aka block note) , and open the file from the file menu
NOTE WELL i wrote notepad NOT WORD !!

###########################################
About last question
that say that your firewell may block a component of python even if that component will not do anything dangerous, so will be better for you put Python in the Firewall WHITE-list

But if i remember well you may not care less about the warning, because that component should not be required to use python script from gimp

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 10:39 am  (#16) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2438
This is a 5 min video I made for someone else, the first 2 mins is about installing python in win7 (and its out of date) so just ignore that bit, the last 3 mins might be some use to you.

http://www.youtube.com/watch?v=P5G3U1hKlxo

_________________
Image


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 11:06 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
That screen is showing you which version of Python you have installed.
The rest is telling you you are connected to Python in idle mode.

That is the good news command (DOS) screen telling you Python 2.6.4 is installed, and available.
Now it is just waiting for a command.For instance mine looks like this. (it doesn't have the firewall info as i do not have one operating at the moment).
Image

By the way i sent you a PM. :)

Have fun with all the cool python filters!
may i suggest LayerFX and bevel-2.1 for starters. ;)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: python file ?
PostPosted: Wed Sep 14, 2011 12:16 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Sep 12, 2011
Posts: 377
Location: UK
ok thanks I sort that out later Rod


Top
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Python occasional "Unexpected error: [Errno 9] Bad file descriptor"

3

No new posts Convert GIMP plugin from Python 2 to Python 3

4

No new posts "New"file replacing "open" file?

2

No new posts Difference between "Python-Fu" and "Python" plugin

6

No new posts Attachment(s) FROM GBR FILE TO ABR FILE

7



* Login  



Powered by phpBB3 © phpBB Group