POV-Ray : Newsgroups : povray.unix : Pyvon 1.2 Server Time
31 Oct 2024 05:59:48 EDT (-0400)
  Pyvon 1.2 (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: fabien Henon
Subject: Pyvon 1.2
Date: 5 Jan 2003 16:30:03
Message: <3E18B1B8.7040906@caramail.com>
I have fixed the remaining bugs left (as far as I know)
- Multilinecomments highlights works as on POVWin the /* and */.
- When there is an error in a file, pyvon switch to that file if it is 
in the file selector or display a message if not.
- Fixed a stupid mistake I left with the user rights


Added automatic word expansion :
For example, just type 'hy' or 'hei' in pyvon, and it will automatically 
puts 'hypercomplex' or 'height_field' instead.
The Ctrl+<space> key combination ( for the other keywords) still works 
of course.



http://pyvon.sourceforge.net


As always, comments, suggestions, flames, congratulations are welcome



Fabien HENON


Post a reply to this message

From: Peter
Subject: Re: Pyvon 1.2
Date: 5 Jan 2003 22:45:46
Message: <3e18fbe9@news.povray.org>
this quote from fabien Henon of Monday 06 Jan 2003 11:29 am:
> 
> As always, comments, suggestions, flames, congratulations are welcome

Hi
thanks for an update to the package.
Unfortunately, I'm still getting the same problem.
This is with Mandrake 9, python 2.2.1, KDE 3.0.3

I tried installing with the script in the .gz file, and with the rpm file 
(rpm -e followed by rpm -i).  The rpm install gave many many warnings that 
user Fabien does not exist.

In each case, the symptom is that running pyvon brings up the black streams 
box but then everything disappears.  This command
$python /usr/local/pyvon/d35.py
gives error message

$ python /usr/local/pyvon/d35.py
Traceback (most recent call last):
  File "/usr/local/pyvon/d35.py", line 2252, in ?
    menu1.add_command(label=x[:-4],command= lambda nom=longname : 
insert_example(nom),font=police)
NameError: name 'menu1' is not defined
$



Any suggestions much appreciated.

TIA

Peter


Post a reply to this message

From: HENON fabien
Subject: Re: Pyvon 1.2
Date: 6 Jan 2003 05:05:04
Message: <web.3e19549d84d5eda27ff7c9e30@news.povray.org>
Peter wrote:
>this quote from fabien Henon of Monday 06 Jan 2003 11:29 am:
>>
>> As always, comments, suggestions, flames, congratulations are welcome

Could you tell me what you have in the Insert directory (just the first 10
items will be enough). It might be because of the way your files are sorted
in your directory.


Something else : edit the file d35.py, goto line 2252 and replace

menu1.add_command(label=x.......


with :

menu.add_command(label=x.......


Tell me if it works better.


Fabien H

>
>Hi
>thanks for an update to the package.
>Unfortunately, I'm still getting the same problem.
>This is with Mandrake 9, python 2.2.1, KDE 3.0.3
>
>I tried installing with the script in the .gz file, and with the rpm file
>(rpm -e followed by rpm -i).  The rpm install gave many many warnings that
>user Fabien does not exist.
>
>In each case, the symptom is that running pyvon brings up the black streams
>box but then everything disappears.  This command
>$python /usr/local/pyvon/d35.py
>gives error message
>
>$ python /usr/local/pyvon/d35.py
>Traceback (most recent call last):
>  File "/usr/local/pyvon/d35.py", line 2252, in ?
>    menu1.add_command(label=x[:-4],command= lambda nom=longname :
>insert_example(nom),font=police)
>NameError: name 'menu1' is not defined
>$
>
>
>
>Any suggestions much appreciated.
>
>TIA
>
>Peter
>


Post a reply to this message

From: Peter
Subject: Re: Pyvon 1.2
Date: 6 Jan 2003 18:53:50
Message: <3e1a170d@news.povray.org>
this quote from HENON fabien of Monday 06 Jan 2003 11:04 pm:

> Could you tell me what you have in the Insert directory (just the first 10
> items will be enough). It might be because of the way your files are
> sorted in your directory.
$ls -l
 total 980
drwxrwxrwx    2 root     root         4096 Jan  6 16:37 00 - Scene 
templates/
-rw-rw-rw-    1 root     root           82 Sep 20  2001 10 - background.txt
-rw-rw-rw-    1 root     root         1156 Aug 16  2001 10 - Basic scene.txt
-rw-rw-rw-    1 root     root          265 Aug 30  1998 10 - clock.txt
-rw-rw-rw-    1 root     root          524 Apr 27  2001 10 - Fog 
definition.txt
drwxrwxrwx    2 root     root         4096 Jan  6 16:37 10 - Headers/
-rw-rw-rw-    1 root     root           67 Aug 30  1998 10 - rgb.txt
-rw-rw-rw-    1 root     root          121 Apr 25  2001 10 - Scene File 
Header.txt
-rw-rw-rw-    1 root     root          477 Apr 27  2001 10 - waveform 
attribute.txt
-rw-rw-rw-    1 root     root          456 Apr 27  2001 20 - additional 
animation variables.txt
-rw-rw-rw-    1 root     root           57 Sep 26  2001 20 - Ambient fog.txt
-rw-rw-rw-    1 root     root          111 Apr 27  2001 20 - frequency 
attribute.txt
-rw-rw-rw-    1 root     root          106 Sep 20  2001 20 - 
global_settings.txt
drwxrwxrwx   26 root     root         4096 Jan  6 16:37 20 - Include files/
-rw-rw-rw-    1 root     root          926 Jul 19  2001 20 - Orthographic 
scene.txt
---snip---------
 
> Something else : edit the file d35.py, goto line 2252 and replace
> 
> menu1.add_command(label=x.......
> 
> with :
> 
> menu.add_command(label=x.......

ok tried that, but no change.  Just the black streams box comes up for a 
second or so, then all disappears.  When I try running d35 direct with 
python, it gives a similar error to previous ... 

$ python /usr/local/pyvon/d35.py
Traceback (most recent call last):
  File "/usr/local/pyvon/d35.py", line 2252, in ?
    menu.add_command(label=x[:-4],command= lambda nom=longname : 
insert_example(nom),font=police)
NameError: name 'menu' is not defined



anything else I can try?
thanks

Peter


Post a reply to this message

From: Warp
Subject: Re: Pyvon 1.2
Date: 7 Jan 2003 06:19:29
Message: <3e1ab7c1@news.povray.org>
One thing:

  The installation instructions say: "log as root : su"

  Problem: Not every unix user (such as myself) is a sysadmin, ie. has root
access.

  I have not yet tried to install the Pyvon package for myself here, but
I'm going to try it now. It's just that when I read the installation
instructions I knew that it would not be as simple as depicted.

  Suggestion: Either add support for local installation to the installation
script (to a user-specified directory or optionally to a default directory
in the home directory of the user) and document this option in the
installation instructions, or if there's an easy way of using the program
locally without running the installation script, describe this in the
instructions.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Warp
Subject: Re: Pyvon 1.2
Date: 7 Jan 2003 06:30:43
Message: <3e1aba63@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
>   I have not yet tried to install the Pyvon package for myself here, but
> I'm going to try it now.

  I "installed" the package in the same way as the install.sh script does,
but to another directory.
  The first problem was that the 'pyvon' script assumes that it has been
installed in /usr/local/pyvon.
  Fixing that didn't help: When I run it, it opens a small window which
immediately closes and the program terminates. No error messages, nothing.
It just immediately terminates and that's it.
  What could be the problem? Perhaps more places which assume that the
program is installed under /usr/local/pyvon?

  (And no, I don't have access to /usr/local nor I can install anything
there. I'm no root.)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: HENON fabien
Subject: Re: Pyvon 1.2
Date: 7 Jan 2003 09:15:08
Message: <web.3e1addfc84d5eda27ff7c9e30@news.povray.org>
Peter wrote:
>this quote from HENON fabien of Monday 06 Jan 2003 11:04 pm:
>
This is getting interesting...

I downloaded the rpm file from the pyvon web site and installed it after
removing the previous installation with a 'rpm -e pyvon'

And it worked fine.


Things you might try :

- Run pyvon as root

- Check you reading permissions on the Insert directory

- Move all your folders and files from the Insert directory to a backup
directory ( just leave the 'Insert' with nothing in it), run pyvon

- Move all your folders and files from the Insert directory to a backup
directory except for one folder and all its files, run pyvon

- Move all your folders and files from the Insert directory to a backup
directory except for one *.pov file located in the Insert directory, run
pyvon



One more thing near line 2252 :

Replace this
----snip----------
for x in listeobjets :
        longname = os.path.join(InsertDir,x)
        if os.path.isdir(longname) :
            menu1 = Menu(menu_insert_popup,tearoff=0,font=police)
            menu_insert_popup.add_cascade(label=x,menu=menu1)
            importedir(longname,menu1)
        if os.path.isfile(longname) :
            if x[-3:] == 'txt' or  x[-3:] == 'pov' :
                menu1.add_command(label=x.............
------snap --------------

with this :

----snip----------
for x in listeobjets :
        longname = os.path.join(InsertDir,x)
        menu1 = Menu(menu_insert_popup,tearoff=0,font=police)
        if os.path.isdir(longname) :
            menu_insert_popup.add_cascade(label=x,menu=menu1)
            importedir(longname,menu1)
        if os.path.isfile(longname) :
            if x[-3:] == 'txt' or  x[-3:] == 'pov' :
                menu1.add_command(label=x.............
------snap --------------

Please pay attention to the indentation (very important in Python)


Tell me which one works (at least one should) to understand what's going on.


Thanks

Fabien H


>> Could you tell me what you have in the Insert directory (just the first 10
>> items will be enough). It might be because of the way your files are
>> sorted in your directory.
>$ls -l
> total 980
>drwxrwxrwx    2 root     root         4096 Jan  6 16:37 00 - Scene
>templates/
>-rw-rw-rw-    1 root     root           82 Sep 20  2001 10 - background.txt
>-rw-rw-rw-    1 root     root         1156 Aug 16  2001 10 - Basic scene.txt
>-rw-rw-rw-    1 root     root          265 Aug 30  1998 10 - clock.txt
>-rw-rw-rw-    1 root     root          524 Apr 27  2001 10 - Fog
>definition.txt
>drwxrwxrwx    2 root     root         4096 Jan  6 16:37 10 - Headers/
>-rw-rw-rw-    1 root     root           67 Aug 30  1998 10 - rgb.txt
>-rw-rw-rw-    1 root     root          121 Apr 25  2001 10 - Scene File
>Header.txt
>-rw-rw-rw-    1 root     root          477 Apr 27  2001 10 - waveform
>attribute.txt
>-rw-rw-rw-    1 root     root          456 Apr 27  2001 20 - additional
>animation variables.txt
>-rw-rw-rw-    1 root     root           57 Sep 26  2001 20 - Ambient fog.txt
>-rw-rw-rw-    1 root     root          111 Apr 27  2001 20 - frequency
>attribute.txt
>-rw-rw-rw-    1 root     root          106 Sep 20  2001 20 -
>global_settings.txt
>drwxrwxrwx   26 root     root         4096 Jan  6 16:37 20 - Include files/
>-rw-rw-rw-    1 root     root          926 Jul 19  2001 20 - Orthographic
>scene.txt
>
>> Something else : edit the file d35.py, goto line 2252 and replace
>>
>> menu1.add_command(label=x.......
>>
>> with :
>>
>> menu.add_command(label=x.......
>
>ok tried that, but no change.  Just the black streams box comes up for a
>second or so, then all disappears.  When I try running d35 direct with
>python, it gives a similar error to previous ...
>
>$ python /usr/local/pyvon/d35.py
>Traceback (most recent call last):
>  File "/usr/local/pyvon/d35.py", line 2252, in ?
>    menu.add_command(label=x[:-4],command= lambda nom=longname :
>insert_example(nom),font=police)
>NameError: name 'menu' is not defined
>
>
>
>anything else I can try?
>thanks
>
>Peter
>


Post a reply to this message

From: fabien Henon
Subject: Re: Pyvon 1.2
Date: 7 Jan 2003 14:05:23
Message: <3E1B32C0.2040101@caramail.com>

> Warp <war### [at] tagpovrayorg> wrote:
> 
>>  I have not yet tried to install the Pyvon package for myself here, but
>>I'm going to try it now.
> 
> 
>   I "installed" the package in the same way as the install.sh script does,
> but to another directory.
>   The first problem was that the 'pyvon' script assumes that it has been
> installed in /usr/local/pyvon.
>   Fixing that didn't help: When I run it, it opens a small window which
> immediately closes and the program terminates. No error messages, nothing.
> It just immediately terminates and that's it.
>   What could be the problem? Perhaps more places which assume that the
> program is installed under /usr/local/pyvon?
> 
>   (And no, I don't have access to /usr/local nor I can install anything
> there. I'm no root.)
> 


I have updated the installation page and made a safer version ( with a 
few modifications in the Insert directory).


For those who got stuck, tell me if it's better now.



Fabien


Post a reply to this message

From: fabien Henon
Subject: Re: Pyvon 1.2
Date: 7 Jan 2003 14:19:03
Message: <3E1B3603.9010305@caramail.com>

> Warp <war### [at] tagpovrayorg> wrote:
> 
>>  I have not yet tried to install the Pyvon package for myself here, but
>>I'm going to try it now.
> 
> 
>   I "installed" the package in the same way as the install.sh script does,
> but to another directory.
>   The first problem was that the 'pyvon' script assumes that it has been
> installed in /usr/local/pyvon.
>   Fixing that didn't help: When I run it, it opens a small window which
> immediately closes and the program terminates. No error messages, nothing.
> It just immediately terminates and that's it.
>   What could be the problem? Perhaps more places which assume that the
> program is installed under /usr/local/pyvon?
> 
>   (And no, I don't have access to /usr/local nor I can install anything
> there. I'm no root.)
> 


I guess you untarred the d35.tgz file in you home directory.


I used /usr/local because that's the directory used by POV-RAY when 
using the install.sh script contained in the povlinux.tgz archive.

What message do you get when you type python d35.py in the pyvon directory?

Fabien H


Post a reply to this message

From: Peter
Subject: Re: Pyvon 1.2
Date: 8 Jan 2003 04:33:37
Message: <3e1bf06d@news.povray.org>
this quote from HENON fabien of Wednesday 08 Jan 2003 3:10 am:

> This is getting interesting...
> 
> I downloaded the rpm file from the pyvon web site and installed it after
> removing the previous installation with a 'rpm -e pyvon'
> 
> And it worked fine.
 
I don't know.  I tried rpm -e pyvon when Daniel suggested it for pyvon 1.1.  
Also tried it with pyvon 1.2.  But no luck.
 
> Things you might try :
I'll try these out in the morning.  (10:30pm so a bit late for me to start 
now.) 

> 
> One more thing near line 2252 :
> 
> Replace this
> ----snip----------
> ------snap --------------
> 
> with this :
> 
> ----snip----------
> for x in listeobjets :
>         longname = os.path.join(InsertDir,x)
>         menu1 = Menu(menu_insert_popup,tearoff=0,font=police)
>         if os.path.isdir(longname) :
>             menu_insert_popup.add_cascade(label=x,menu=menu1)
>             importedir(longname,menu1)
>         if os.path.isfile(longname) :
>             if x[-3:] == 'txt' or  x[-3:] == 'pov' :
>                 menu1.add_command(label=x.............
> ------snap --------------
 
Yes, move the menu1= line to above the if statement.  I tried that earlier 
with 1.1 and recently with 1.2, and it lets pyvon start (and it appears to 
function ok).  Except the insert pull down menu in pyvon doesn't function 
properly - it flashes up and disappears as soon as I let go of the mouse 
button.  Other menus stay up after one click so you can select a menu item.
(I tried looking through an earlier pyvon for how menus are handled, but it 
was too different for me to make sense of it.)


cheers

Peter


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.