You are not logged in.
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
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
Did you get any errors in the build output?
Offline
Did you get any errors in the build output?
No package builds good too
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
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
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
Why are you recompiling the Python package? What are you changing in the PKGBUILD?
Offline
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
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
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
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
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
If you are wanting python3, there is the python3 package in [community].
Offline
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
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
That's stange I installed Python package from repos and os module works and my not (I don't touched PKGBUILD)
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline