srsudar / eg

Useful examples at the command line.
MIT License
1.82k stars 99 forks source link

Cannot install it on Archlinux with pip #6

Closed StatelessCat closed 9 years ago

StatelessCat commented 9 years ago

The script is runned under python3.4, and fails

StatelessCat commented 9 years ago

Just found a workaround:

mkdir eg-build
cd eg-build
pip2arch -p python2 eg
makepkg
sudo pacman -U eg-*-any.pkg.tar.xz
srsudar commented 9 years ago

Does it work with python 3.4? I've never tried running it on 3.x.

StatelessCat commented 9 years ago

It doesn't :(

srsudar commented 9 years ago

Can you open an issue for working with python 3? I should probably bite the bullet and use 3 eventually. If you can give me some error output there that would be awesome as well.

In the meantime, if you have 2.x on your machine as python27 or something like that, you could try altering the #! line of bin/eg to #! /path/to/python26 and see if that gets it working for now.

StatelessCat commented 9 years ago

Unfortunatly it can't just work to edit the eg #!. If I edit the #!/usr/bin/python to #!/usr/bin/python2.7, eg is launched under python2.7, but I got :

Traceback (most recent call last):
  File "/usr/bin/eg", line 3, in <module>
    from eg import eg_exec
ImportError: No module named eg

I'm not a Python developper, I assume pip, by default on the lastest stable version is doing installation of librairies for python3.x.

I'm not sur if it can help you, but i know many Python devs that are using virtualenv to handle python version issues like this.

srsudar commented 9 years ago

Ah right, right, good point. I'll ruminate on it.

StatelessCat commented 9 years ago

:) Le 26 avr. 2015 3:51 AM, "Sam Sudar" notifications@github.com a écrit :

Ah right, right, good point. I'll ruminate on it.

— Reply to this email directly or view it on GitHub https://github.com/srsudar/eg/issues/6#issuecomment-96307912.