You are not logged in.

#1 2010-11-05 23:14:09

binskipy2u
Banned
Registered: 2009-09-14
Posts: 212

minor python issue... a program wont work anymore.. strange error

i know this forum's not for 3rd party apps..but the info i need affects other apps from what i've read on here..
so if anyone can direct me in how to make a program work with new python, i would appreciate the help..
here's the problem and details:

I use Zinc for yahoo.. cosole based chat client..
to invoke it, i just typed zinc in console.. and captcha then voila, i was in a chatroom..
it's python based.. 

ever since the python 3 update.. when i invoke zinc on console, it says "you can not run zinc as root"
I'm not root.. but it seems to think that i'm in root now..

I've contacted the developer, no response in a week..

but i was wondering, if anyone else has had python issues iwth programs.. how to get the program to use the new python? ive read the forums, and threads.. I can't seem to ascertain, how to do this..
any help would be most appreciated..
thanks

Last edited by binskipy2u (2010-11-08 03:41:05)


"Sometimes you comfort the afflicted, other times you AFFLICT the COMFORTABLE"

Offline

#2 2012-04-02 22:58:20

cyberpunkarch
Banned
From: New Brunswick, Canada
Registered: 2012-03-16
Posts: 36
Website

Re: minor python issue... a program wont work anymore.. strange error

yeah dude i had the same problem and been trying to get this sorted for awhile .... i don't think anyone gonna help us!


WM: Awesome
DM: GDM3
OS: Arch Linux 64bit vanilla
PC: ASUSTek M2A-VM [AMD] 8GB of Memory Cooler-Master Elite 330

Offline

#3 2012-04-02 23:45:24

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: minor python issue... a program wont work anymore.. strange error

Surely you can search the .py files for that string and delete the line that is exiting. But I agree that a proper fix would be better.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#4 2012-04-03 00:28:04

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: minor python issue... a program wont work anymore.. strange error

Like many many many python programs since python3 release...
in zinc file, change #!/usr/bin/env/python for #!/usr/bin/env/python2
There might by other files too to modify,  I did not check as I don't use zinc.

Offline

#5 2012-04-03 07:09:23

ro
Member
From: Baltimore
Registered: 2011-06-13
Posts: 5
Website

Re: minor python issue... a program wont work anymore.. strange error

marxav wrote:

Like many many many python programs since python3 release...
in zinc file, change #!/usr/bin/env/python for #!/usr/bin/env/python2
There might by other files too to modify,  I did not check as I don't use zinc.


And you, good fellow, just fixed all of my python problems.   Ever since the python update, everything I write in python exits with errors of incorrect syntax, and I couldn't figure out why.   I've been using "Python the Hard Way" to learn it as my first programming language, so I was baffled when even the earliest lessons were giving the same error.  Apparently Python 3 includes some new syntax for quotes that I am unaware of, but pointing my scripts to Python2 fixes the problem.


Laptop [2.20Ghz Celeron, 4GB RAM, Intel HD4500, Arch Linux 2011.08.19]
Desktop [2.90Ghz Athlon II X2, 2GB RAM, XFX Force AMD Radeon HD4670, Arch Linux 2011.08.19]
Server [2x2.80Ghz Xeon, 512MB RAM, Intel 915G, CentOS 6]

Offline

#6 2012-04-03 08:01:12

kamirao
Member
Registered: 2012-03-20
Posts: 16
Website

Re: minor python issue... a program wont work anymore.. strange error

There are many syntax differences in python3. For example, the very first programming lesson of python2:

print 'Hello World!'

won't work in python 3. It has to be

print('Hello World!')

But you can keep both python2 and python3 in archlinux. Just remember python means python3 and python2 means of course python2. Many python based applications still rely on python2 because many known good libraries from python2 are not yet implemented in python3 (thats a shame by the way). However python3 will be the ultimate choice in future.

Offline

#7 2012-04-03 14:05:45

cyberpunkarch
Banned
From: New Brunswick, Canada
Registered: 2012-03-16
Posts: 36
Website

Re: minor python issue... a program wont work anymore.. strange error

i never program in python but been sort of reading up on it and very interested with the python C++ language.. i've been programming with LUA with Awesome / Conky alot and DWM with C language, back in the 90's i program in VisualBasic 6 and stuff yup but my fav. language is C and i really like LUA very simular to C ... C++ / python is a big challenge, but if u all go to ur Terminal and type yaourt zinc.. look for zinc the console yahoo client and just select it i think its "3" and you will notice eh that it won't even let you install... the source.... i got the source should i try something like this ?  #!/usr/bin/env/python2 add the "2" at the end and that shall work eh ? ? ? is that in the make file ? ? look im sort of new to this python error and itself and all so just please a bit more info... would be nice... and this is how we learn right... im not ashamed im just not to great with python errors or with python at all.. i just use to used zinc on BSD systems and it work out pretty damn good ... just wonder why arch is having problems .. and i saw this guy forum which is a few months back eh... and just thought i reply to it .... so yeah im surprise i got some replys and 2 canadian users, and thats nice to see in the linux community smile


WM: Awesome
DM: GDM3
OS: Arch Linux 64bit vanilla
PC: ASUSTek M2A-VM [AMD] 8GB of Memory Cooler-Master Elite 330

Offline

#8 2012-04-03 19:28:56

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: minor python issue... a program wont work anymore.. strange error

Zinc uses a pretty antiquated PKGBUILD so you'll have to modify it rather than using yaourt. Specifically change "which python" to "which python2" in install.sh and change "env python" to "env python2" in scripts/pygetopt. Then installation should work.

And don't give up so easily. Python may be new to you but fixing errors in python programs was designed to be much easier than C. Once you've fixed a few programs to use "python2" instead of "python" you'll get the hang of it.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

Board footer

Powered by FluxBB