Tribler / tribler

Privacy enhanced BitTorrent client with P2P content discovery
https://www.tribler.org
GNU General Public License v3.0
4.84k stars 449 forks source link

6.4.0 doesn't start on Ubuntu 12.04 #1096

Closed pedrobrs closed 9 years ago

pedrobrs commented 9 years ago

I'm having the same problem as described here: http://forum.tribler.org/viewtopic.php?p=10878

whirm commented 9 years ago

It also seems to happen in 14.04?

Pasting traceback for quick reference:

Traceback (most recent call last):
  File "Tribler/Main/tribler.py", line 28, in <module>
    run()
  File "Tribler/Main/tribler.py", line 24, in run
    from Tribler.Main.tribler_main import run as run_main
  File "/usr/share/tribler/Tribler/Main/tribler_main.py", line 62, in <module>
    from Tribler.Main.vwxGUI.MainFrame import FileDropTarget
  File "/usr/share/tribler/Tribler/Main/vwxGUI/MainFrame.py", line 45, in <module>
    from Tribler.Main.Dialogs.ConfirmationDialog import ConfirmationDialog
  File "/usr/share/tribler/Tribler/Main/Dialogs/ConfirmationDialog.py", line 2, in <module>
    from Tribler.Main.vwxGUI.widgets import _set_font
  File "/usr/share/tribler/Tribler/Main/vwxGUI/widgets.py", line 15, in <module>
    from Tribler.Main.vwxGUI.GuiUtility import GUIUtility
  File "/usr/share/tribler/Tribler/Main/vwxGUI/GuiUtility.py", line 25, in <module>
    from Tribler.Main.vwxGUI.SearchGridManager import TorrentManager, ChannelManager, LibraryManager
  File "/usr/share/tribler/Tribler/Main/vwxGUI/SearchGridManager.py", line 36, in <module>
    from Tribler.TrackerChecking.TorrentChecking import TorrentChecking
  File "/usr/share/tribler/Tribler/TrackerChecking/TorrentChecking.py", line 17, in <module>
    from Tribler.Core.Session import Session
  File "/usr/share/tribler/Tribler/Core/Session.py", line 15, in <module>
    from Tribler.Core.APIImplementation.LaunchManyCore import TriblerLaunchMany
  File "/usr/share/tribler/Tribler/Core/APIImplementation/LaunchManyCore.py", line 26, in <module>
    from Tribler.community.privatesemantic.crypto.elgamalcrypto import ElgamalCrypto
  File "/usr/share/tribler/Tribler/community/privatesemantic/crypto/elgamalcrypto.py", line 2, in <module>
    from Tribler.community.privatesemantic.crypto.ecutils import OpenSSLCurves
  File "/usr/share/tribler/Tribler/community/privatesemantic/crypto/ecutils.py", line 141, in <module>
    class PubECParameters(univ.Choice):
  File "/usr/share/tribler/Tribler/community/privatesemantic/crypto/ecutils.py", line 145, in PubECParameters
    namedtype.NamedType('specifiedCurv', univ.Any()))
AttributeError: 'module' object has no attribute 'Any'
LipuFei commented 9 years ago

@whirm 3 communities in Tribler are gone in next:

  1. privatesearch
  2. privatesemantic
  3. privatesocial

This issue seems to be related to the crypto modules in privatesemantic, so I think we can close this one because we cannot reproduce it any more.

LipuFei commented 9 years ago

@Pedroyev could you check the version of your python-pyasn1 package?

LipuFei commented 9 years ago

Found a similar issue: https://github.com/scrapy/scrapy/issues/783

Looks like it's the python-pyasn1 package being too old. My version is 0.1.7-1ubuntu2 and it works fine. @Pedroyev Could you try to update your pyasn1 to see if it works?

whirm commented 9 years ago

@Pedroyev we are closing this one as it should be fixed in 6.4.2 If it still happens with the next release, please reopen this issue.

pedrobrs commented 9 years ago

Hi, The version of that package in ubuntu repositories is very old: $ apt-cache policy python-pyasn1 python-pyasn1: Installed: 0.0.11a-1ubuntu1 Candidate: 0.0.11a-1ubuntu1

I upgrade the package following the recomendations in the link provided by @LipuFei, with pip install -U pyasn1 ... And Tribler UI showed up. The log file contains some errors, but that is another history.

 pymdht: use_cache ON!! 
CRITICAL 1419950806.83     minitwisted:100   run 
>>>len(self._unstable_ip_port) == 5000, num_addrs: 40 
ERROR   1419950806.83   LibtorrentMgr:131   LibtorrentMgr: could not restore dht state, starting from scratch
GUI started
GUI ready
CRITICAL 1419950831.71     minitwisted:105   MINITWISTED CRASHED
ERROR   1419950831.71     minitwisted:106   MINITWISTED CRASHED
Traceback (most recent call last):
  File "/usr/share/tribler/Tribler/Core/DecentralizedTracking/pymdht/core/minitwisted.py", line 103, in run2
    self.run_one_step()
  File "/usr/share/tribler/Tribler/Core/DecentralizedTracking/pymdht/core/minitwisted.py", line 179, in run_one_step
    datagram_received)
  File "/usr/share/tribler/Tribler/Core/DecentralizedTracking/pymdht/core/controller.py", line 291, in on_datagram_received
    ) = related_query.lookup_obj.on_error_received(msg, addr)
  File "/usr/share/tribler/Tribler/Core/DecentralizedTracking/pymdht/plugins/lookup_a4.py", line 255, in on_error_received
    logger.debug('Got error from node addr: %r' % node_addr)
TypeError: not all arguments converted during string formatting
MINITWISTED CRASHED (see logs)
ERROR   1419950836.18       community:617   Could not remove relay 1013813406 no activity
ERROR   1419950841.18       community:617   Could not remove relay 3904625918 no activity
ERROR   1419950861.18       community:617   Could not remove relay 3498584346 no activity
ERROR   1419950866.18       community:617   Could not remove relay 124639030 no activity
ERROR   1419950866.18       community:617   Could not remove relay 201867512 no activity
ERROR   1419950871.19       community:617   Could not remove relay 3094667541 no activity
pymdht: use_cache ON!!
ERROR   1419950886.20       community:617   Could not remove relay 2114078909 no activity
ERROR   1419950901.18       community:617   Could not remove relay 232451934 no activity
ERROR   1419950906.30       MainFrame:635   Switching from hidden services to exit nodes
ERROR   1419950909.09       community:853   Don't know how to decrypt incoming message for circuit_id 2925125524
ERROR   1419950916.18       community:617   Could not remove relay 3857937461 no activity
ERROR   1419950917.59       community:853   Don't know how to decrypt incoming message for circuit_id 2925125524
ERROR   1419950923.54       community:853   Don't know how to decrypt incoming message for circuit_id 4057689822
ERROR   1419950931.18       community:617   Could not remove relay 2580404253 no activity
ERROR   1419950936.18       community:617   Could not remove relay 3132896822 no activity
ERROR   1419950951.18       community:617   Could not remove relay 838095801 no activity
ERROR   1419950956.19       community:617   Could not remove relay 2228400805 no activity
ERROR   1419950971.18       community:617   Could not remove relay 802297799 no activity
ERROR   1419950976.18       community:617   Could not remove relay 3736004472 no activity
ERROR   1419950976.18       community:617   Could not remove relay 1751801087 no activity
ERROR   1419950986.19       community:617   Could not remove relay 3901990975 no activity
ERROR   1419950986.19       community:617   Could not remove relay 2503636839 no activity

I will try with latest version and perhaps uninstall python-pyasn1 pip version, taking into account the warnings from @dangra . Thank you guys. This is a very important project for the web nowadays. I wish someday I'll have time and knowledges to collaborate.

LipuFei commented 9 years ago

Hi @Pedroyev, I've also got this MINITWISTED CRASHED today (see #1102). I don't think the MINITWISTED CRASHED is related to this issue. Hope it works for you!

whirm commented 9 years ago

@LipuFei we need to add the minimal version in debian/control

LipuFei commented 9 years ago

@whirm Done. https://github.com/Tribler/tribler/pull/1104