python-tornado dependency

168 megtekintés
Ugrás az első olvasatlan üzenetre

Tiago Freitas Pereira

olvasatlan,
2013. aug. 14. 22:31:382013. 08. 14.
– bob-...@googlegroups.com
Hello,

It seems the python tornado is one of the dependencies of bob 1.2.0.

This dependency should be updated here:
http://www.idiap.ch/software/bob/docs/releases/last/sphinx/html/Dependencies.html

For MAC OS:
  sudo port install py27-tornado
 or
  sudo port install py26-tornado

For Ubuntu:
 sudo apt-get install python-tornado


Cheers

--
Tiago

André Anjos

olvasatlan,
2013. aug. 15. 3:03:202013. 08. 15.
– bob-...@googlegroups.com
Hello, I think Python Tornado is a new direct dependence for IPython, not Bob. Did you get problems running Bob after an upgrade? Could you detail it a bit more? Thanks, A 

Tiago Freitas Pereira

olvasatlan,
2013. aug. 15. 8:22:412013. 08. 15.
– bob-...@googlegroups.com
Hello, 

humm

I just updated bob using macports and when I tried to run a regular script that imports bob:


Traceback (most recent call last):
  File "tests.py", line 1, in <module>
    import bob
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bob/__init__.py", line 15, in <module>
    version = __import__('pkg_resources').require('bob')[0].version
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: tornado


Importing bob using IPython:

n [1]: import bob
---------------------------------------------------------------------------
DistributionNotFound                      Traceback (most recent call last)
<ipython-input-1-7326b7cfcb08> in <module>()
----> 1 import bob

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bob/__init__.py in <module>()
     13 from . import trainer
     14 
---> 15 version = __import__('pkg_resources').require('bob')[0].version
     16 
     17 __all__ = [k for k in dir() if not k.startswith('_')]

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.pyc in require(self, *requirements)
    726         included, even if they were already activated in this working set.
    727         """
--> 728         needed = self.resolve(parse_requirements(requirements))
    729 
    730         for dist in needed:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.pyc in resolve(self, requirements, env, installer)
    624                         # unfortunately, zc.buildout uses a str(err)
    625                         # to get the name of the distribution here..
--> 626                         raise DistributionNotFound(req)
    627                 to_activate.append(dist)
    628             if dist not in req:

DistributionNotFound: tornado



I just installed the python tornado on my laptop (mac os) and everything worked fine.











On Thu, Aug 15, 2013 at 4:03 AM, André Anjos <andre.d...@gmail.com> wrote:
Hello, I think Python Tornado is a new direct dependence for IPython, not Bob. Did you get problems running Bob after an upgrade? Could you detail it a bit more? Thanks, A 

--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Tiago

Tiago Freitas Pereira

olvasatlan,
2013. aug. 15. 12:33:342013. 08. 15.
– bob-...@googlegroups.com
I updated bob 1.2.0 on my ubuntu (VM) and everything worked fine. 
--
Tiago

André Anjos

olvasatlan,
2013. aug. 15. 13:28:122013. 08. 15.
– bob-...@googlegroups.com
Ok, I understand the problem:

Matplotlib depends on tornado, not Ipython. Bob depends on Matplotlib.

If you do:

$ python
...
>>> import pkg_resources
>>> pkg_resources.require('matplotlib')

You will see where the problem is really coming from. The bottom line is that they updated the package but forgot to update the dependence on MacPorts. I have filed a ticket:


No need to modify anything on our side. Thanks for reporting though, A
Dr. André Anjos
Idiap Research Institute
Centre du Parc - rue Marconi 19
CH-1920 Martigny, Suisse
Phone: +41 27 721 7763
Fax: +41 27 721 7712
http://andreanjos.org

Elie Khoury

olvasatlan,
2013. nov. 8. 2:24:262013. 11. 08.
– bob-...@googlegroups.com
Hello,

I'm having the same trouble after upgrading bob (1.2.2)
Only installing py27-tornado solves the problem, as tiago suggested.

sudo port install py27-tornado

Cheers,
Elie

André Anjos

olvasatlan,
2013. nov. 8. 2:32:382013. 11. 08.
– bob-...@googlegroups.com
Hello, Elie could u find out why that happens? We don't depend on that package, so it must be an indirect dependence! Thanks a lot in advance, A

Elie Khoury

olvasatlan,
2013. nov. 8. 5:28:422013. 11. 08.
– bob-...@googlegroups.com
Hello,

Just for the record, the problem comes from matlplotlib. The packaging bug that  Andre reported (https://trac.macports.org/ticket/40134) is still not solved.

For the time being, we found a workaround:
sudo port install py27-matplotlib +webagg
The corresponding documentation is also updated (https://github.com/idiap/bob/wiki/Packages) accordingly.

Thanks,
Elie
-- 
-------------------
Dr. Elie Khoury
Post Doctorant
Biometric Person Recognition Group
IDIAP Research Institute (Switzerland)
Tel : +41 27 721 77 23

André Anjos

olvasatlan,
2013. nov. 8. 5:31:562013. 11. 08.
– bob-...@googlegroups.com
Thanks for confirming this. A
Válasz mindenkinek
Válasz a szerzőnek
Továbbítás
0 új üzenet