Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29822 - [pypy] Does not run

Attached to Project: Community Packages
Opened by Felix Yan (felixonmars) - Wednesday, 09 May 2012, 22:04 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 11 May 2012, 22:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I am getting this when run /usr/bin/pypy:

$ pypy
'import site' failed
Python 2.7.2 (2346207d99463f299f09f3e151c9d5fa9158f71b, May 09 2012, 13:41:18)
[PyPy 1.8.0 with GCC 4.7.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
debug: OperationError:
debug: operror-type: AttributeError
debug: operror-value: 'module' object has no attribute 'warn'

I tried the package in repo and a self-compiled one (from ABS PKGBUILD), both results in the same.


Additional info:
* package version(s)
$ yaourt -Q pypy
community/pypy 1.8-1
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Friday, 11 May 2012, 22:44 GMT
Reason for closing:  None
Additional comments about closing:  Seems to work now.
Comment by Daniel Wallace (gtmanfred) - Wednesday, 09 May 2012, 22:19 GMT
make sure you actually have these files
pypy /opt/pypy/lib-python/2.7/site-packages/
pypy /opt/pypy/lib-python/2.7/site-packages/README
pypy /opt/pypy/lib-python/2.7/site.py
pypy /opt/pypy/lib-python/2.7/test/test_site.py
pypy /opt/pypy/lib-python/modified-2.7/site.py
pypy /opt/pypy/lib-python/modified-2.7/test/test_site.py

also pacman -Q pypy makes you look like you know what you are doing

pacman -Syu pypy works fine for me
Comment by Felix Yan (felixonmars) - Wednesday, 09 May 2012, 22:27 GMT
Hi,
I've checked all of files above, they are all there.

and pacman -Q pypy shows
pypy 1.8-1
too :)
Comment by Felix Yan (felixonmars) - Wednesday, 09 May 2012, 22:41 GMT
Finally I found it out myself.
It's libreoffice who set my $PYTHONPATH to ":/usr/lib/libreoffice/program:/usr/lib/libreoffice/program".
after an unset pypy works well.

Should this be a bug report to libreoffice's or the pypy package?
Comment by Felix Yan (felixonmars) - Wednesday, 09 May 2012, 22:42 GMT
FYI

$ cat /etc/profile.d/libreoffice-common.sh
export PYTHONPATH="$PYTHONPATH:/usr/lib/libreoffice/program"

$ pacman -Qo /etc/profile.d/libreoffice-common.sh
/etc/profile.d/libreoffice-common.sh is owned by libreoffice-common 3.5.2-1
Comment by Daniel Wallace (gtmanfred) - Wednesday, 09 May 2012, 22:45 GMT
just saying, if you are posting to bugs, maybe you should use the actual tool, pacman, instead of an unsupported helper, yaourt
Comment by Felix Yan (felixonmars) - Wednesday, 09 May 2012, 22:47 GMT
@Daniel
Thanks, I'll be careful next time.

Loading...