snowyu / libtorrent

Automatically exported from code.google.com/p/libtorrent
Other
1 stars 0 forks source link

Python bindings are broken again #685

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile revision svn r10378 from RC_1_0 or RC_0_16 branch
2. Try to import libtorrent python module
3. It fails-ImportError: File not found

What is the expected output?
Successfully imported.

What do you see instead?
root@NSA310:~# python -c "import libtorrent as lt; print lt.version"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: File not found

root@NSA310:~# python
Python 2.7.5 (default, Oct 15 2013, 12:52:54)
[GCC 4.5.1 20111110 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtorrent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: File not found
>>>

What version of the product are you using? On what operating system?
Linux NSA310 2.6.31.8 #2 armv5tel GNU/Linux
Zyxel NSA310-network attached storage.
Python 2.7.5 

Please provide any additional information below.
svn revision r10286 doesn't has this issue and libtorrent module is working 
(tested with deluge). I am expert, just guessing that is related with changes 
in r10289-r10291 (What steps will reproduce the problem?
1. Compile revision svn r10378 from RC_1_0 or RC_0_16 branch
2. Try to import libtorrent python module
3. It fails-ImportError: File not found

What is the expected output?
Successfully imported.

What do you see instead?
root@NSA310:~# python -c "import libtorrent as lt; print lt.version"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: File not found

root@NSA310:~# python
Python 2.7.5 (default, Oct 15 2013, 12:52:54)
[GCC 4.5.1 20111110 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtorrent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: File not found
>>>

What version of the product are you using? On what operating system?
Linux NSA310 2.6.31.8 #2 armv5tel GNU/Linux
Zyxel NSA310-network attached storage.
Python 2.7.5 

Please provide any additional information below.
svn revision r10286 doesn't has this issue. I am not expert, just guessing, 
that is related with changes in (r10289-r10290). Fixing python 3 might broken 
python 2. 

Original issue reported on code.google.com by libtorre...@gmail.com on 14 Oct 2014 at 6:24

GoogleCodeExporter commented 9 years ago
Funny copy-paste thing in my browser :)
One more. 
svn revision r10286 doesn't has this issue. I am not expert, just guessing, 
that is related with changes in (r10289-r10290). Fixing python 3 might broken 
python 2. 

Original comment by libtorre...@gmail.com on 14 Oct 2014 at 7:37