miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trouble with miniupnpc 1.4 on Linux system that had 1.3

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
derekcate



Joined: 19 Mar 2010
Posts: 4

PostPosted: Mon Mar 22, 2010 9:23 pm    Post subject: Trouble with miniupnpc 1.4 on Linux system that had 1.3 Reply with quote

On Ubuntu 9.10 if that matters. So I had miniupnpc 1.3 installed, but didn't uninstall before installing 1.4. I can run "upnpc-shared" (and "upnpc-static") and it works, but when I try "python pymoduletest.py", it doesn't detect the upnp router. I was wondering if there was something I was missing. So I downloaded 1.3, did a "make clean" and "python setup.py clean" for 1.3. Then I went to my 1.4 install folder, did a make, make install, make pythonmodule, and make installpythonmodule.

Code:
/tmp/miniupnpc-1.4$ python pymoduletest.py
inital(default) values :
 discoverdelay 0
 lanaddr
 multicastif None
 minissdpdsocket None
Discovering... delay=200ms
0 device(s) detected
Exception : No UPnP device discovered
derek@derek-laptop:/tmp/miniupnpc-1.4$ python
Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import miniupnpc
>>> u = miniupnpc.UPnP()
>>> u.lanaddr
''
>>> u.discover()
0
>>>


Am I running into some situation where something from 1.3 is still installed somewhere and won't go away and is causing problems for 1.4? Is there something more I should do to diagnose this? I can do a make clean and python setup.py clean and then install 1.3 again and things work, but ... seems like I should be using the latest and greatest. Smile

Sorry for any ignorance displayed, I'm still learning.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1477

PostPosted: Tue Mar 23, 2010 4:29 pm    Post subject: Reply with quote

maybe it was using the old python module (build with 1.3) ?
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
derekcate



Joined: 19 Mar 2010
Posts: 4

PostPosted: Wed Mar 24, 2010 12:43 am    Post subject: Reply with quote

miniupnp wrote:
maybe it was using the old python module (build with 1.3) ?


So I made two directories, one with the 1.3 and one with 1.4. So I can do the "make installpythonmodule" in the 1.4 directory

Quote:
derek@derek-laptop:/tmp/miniupnpc-1.4$ sudo make installpythonmodule
python setup.py install
running install
running build
running build_ext
running install_lib
copying build/lib.linux-i686-2.6/miniupnpc.so -> /usr/local/lib/python2.6/dist-packages
running install_egg_info
Removing /usr/local/lib/python2.6/dist-packages/miniupnpc-1.4.egg-info
Writing /usr/local/lib/python2.6/dist-packages/miniupnpc-1.4.egg-info

derek@derek-laptop:/tmp/miniupnpc-1.4$ python pymoduletest.py
inital(default) values :
discoverdelay 0
lanaddr
multicastif None
minissdpdsocket None
Discovering... delay=200ms
0 device(s) detected
Exception : No UPnP device discovered


Is there anything I should be checking to make sure all pieces of the 1.3 install is gone? In the 1.4 directory, I can run "upnpc-shared -l" and it finds the UPnP device just fine.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1477

PostPosted: Thu Mar 25, 2010 2:59 pm    Post subject: Reply with quote

find /usr/local/lib/python2.6/dist-packages -name \*upnp\*
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
derekcate



Joined: 19 Mar 2010
Posts: 4

PostPosted: Fri Mar 26, 2010 3:01 pm    Post subject: Reply with quote

miniupnp wrote:
find /usr/local/lib/python2.6/dist-packages -name \*upnp\*


Quote:
derek@derek-laptop:~$ find /usr/local/lib/python2.6/dist-packages/ -name \*upnp\*
/usr/local/lib/python2.6/dist-packages/miniupnpc-1.4.egg-info
/usr/local/lib/python2.6/dist-packages/miniupnpc.so
derek@derek-laptop:~$

derek@derek-laptop:/tmp/miniupnpc-1.4$ python pymoduletest.py
inital(default) values :
discoverdelay 0
lanaddr
multicastif None
minissdpdsocket None
Discovering... delay=200ms
0 device(s) detected
Exception : No UPnP device discovered
derek@derek-laptop:/tmp/miniupnpc-1.4$
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.