You are not logged in.

#1 2009-10-09 15:54:33

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Whats wrong with my Python package?

Hello.
I rebuilde new version of python package from abs (I use PKGBUILD provided by abs tree).
When I run all script that imported os module I have:

ImportError: No module named os

Thanks for help wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#2 2009-10-09 16:21:12

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,414
Website

Re: Whats wrong with my Python package?

Did you get any errors in the build output?

Offline

#3 2009-10-09 16:21:47

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: Whats wrong with my Python package?

Allan wrote:

Did you get any errors in the build output?

No package builds good too neutral


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#4 2009-10-11 15:18:43

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: Whats wrong with my Python package?

Anyone know what to do?
Maybe I will switch to Python3?
When I will download program that work with Python I will covert it for Python3 smile


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#5 2009-10-11 15:53:03

linkmaster03
Member
Registered: 2008-12-27
Posts: 269

Re: Whats wrong with my Python package?

Why are you recompiling the Python package? What are you changing in the PKGBUILD?

Offline

#6 2009-10-11 16:01:29

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: Whats wrong with my Python package?

linkmaster03 wrote:

Why are you recompiling the Python package? What are you changing in the PKGBUILD?

I optimizing it for my processor.
I don't change anything in PKGBUILD wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#7 2009-10-11 16:55:27

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: Whats wrong with my Python package?

SpeedVin wrote:

When I run all script that imported os module I have:

ImportError: No module named os

Check that it's in your package:

pacman -Ql python | grep /os.py

When check if it's in your python path:

python -c 'import sys; print(sys.path)'

Offline

#8 2009-10-11 17:11:05

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: Whats wrong with my Python package?

N30N wrote:
SpeedVin wrote:

When I run all script that imported os module I have:

ImportError: No module named os

Check that it's in your package:

pacman -Ql python | grep /os.py

When check if it's in your python path:

python -c 'import sys; print(sys.path)'

1.
There is no output for that.
2.

Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
['', '/usr/lib/python26.zip', '/usr/lib/python2.6/', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload']

And my $PYTHONHOME is clean how to change it?

Last edited by SpeedVin (2009-10-11 17:11:26)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#9 2009-10-12 19:58:00

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: Whats wrong with my Python package?

Hello.
Ok Python3 have os module but I got errors about utf9.encoding module.
And now I see when I'm compiling Python I got one error at the end (Package builds fine).

ln: Creating a symlink `/home/user/abs/python/pkg/usr/lib/python2.6/config/libpython2.6.so': No Such file or directory

Last edited by SpeedVin (2009-10-12 20:00:23)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#10 2009-10-13 00:08:36

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,414
Website

Re: Whats wrong with my Python package?

If you are wanting python3, there is the python3 package in [community].

Offline

#11 2009-10-13 12:07:37

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: Whats wrong with my Python package?

Allan wrote:

If you are wanting python3, there is the python3 package in [community].

Thanks I know that I Builded it but I got error about utf8.encoding when I try to run example program smile


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#12 2009-10-13 18:11:27

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: Whats wrong with my Python package?

That's stange I installed Python package from repos and os module works and my not (I don't touched PKGBUILD) sad


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

Board footer

Powered by FluxBB