toxygen-project / toxygen

Toxygen is pythonic Tox client
GNU General Public License v3.0
280 stars 46 forks source link

setup.py is broken #8

Closed progval closed 8 years ago

progval commented 8 years ago

Running python3 setup.py install --prefix=/tmp/foobar leads to this error:

running install_egg_info
Copying Toxygen.egg-info to /tmp/foobar/lib/python3.4/site-packages/Toxygen-0.2.3.0-py3.4.egg-info
running install_scripts
Installing toxygen script to /tmp/foobar/bin
error: [Errno 2] No such file or directory: 'toxygen'
Encrypt commented 8 years ago

@ingvar1995 / @xveduk : Note that this bug prevents Toxygen from being build on build.tox.chat right now (https://build.tox.chat/job/toxygen_pkg_linux_deb_shared_xenial_x86_stable_release/).

Once fixed, it will hopefully build!

IngvarX commented 8 years ago

1) /tmp/foobar/bin/ exists? 2) Is python module setuptools installed? (sudo apt-get install python3-setuptools) Unfortunately my laptop died so I can't test it. Anyway I use the same setup.py on pip3 and it works.

progval commented 8 years ago

On 21/07/2016 06:39, Ingvar wrote:

1) /tmp/foobar/bin/ exists?

Yes, it was created by setup.py

2) Is python module setuptools installed? (sudo apt-get install python3-setuptools)

Yes (otherwise the script would have failed with ImportError)

IngvarX commented 8 years ago

Can you attach full installation log? Try python3 -m trace -t setup.py install

progval commented 8 years ago
 progval@ion  /tmp/toxygen   master  rm -r /tmp/foobar -f                                                           
 progval@ion  /tmp/toxygen   master  mkdir /tmp/foobar/                                                             
 progval@ion  /tmp/toxygen   master  python3 -m trace -t setup.py install --prefix=/tmp/foobar > setup_logs.txt
warning: no files found matching 'toxygen/libs/libtox.dll'
warning: no files found matching 'toxygen/libs/libsodium.a'
warning: no files found matching 'toxygen/libs/libtox64.dll'
warning: no files found matching 'toxygen/libs/libsodium64.a'
 progval@ion  /tmp/toxygen   master  gzip setup_logs.txt 

Gives this log: https://static.progval.net/public/toxygen_setup_logs.txt.gz (Sorry I can't attach it, Github says it can't process that file.)

IngvarX commented 8 years ago

Try to comment lines 21-25 in setup.py

progval commented 8 years ago

It worked.

IngvarX commented 8 years ago

I think try ... except block will solve this issue. But it needs testing.

IngvarX commented 8 years ago

Fixed in develop