Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aptana Error-pydev: Port not bound (found port -1)?

I just updated my Aptana Studio3. When I open my python file it says that it can not find map, range and filter and some other methods. but when I run my code, it'll run without any problem. my code completion doesn't work any more. The error for code completion when I use CTRL+SPACE is

   Port not bound (found port -1). Is there an enabled firewall?  

I don't know where the problem is ?!! I searched but I couldn't find a proper solution. I'm using windows 7.

like image 260
Hadi Avatar asked Jan 11 '14 17:01

Hadi


2 Answers

It seems that this is solved on PyDev and the problem is you can't upgrade PyDev on Aptana 3.6.0. Version 3.6.1 takes out the integration with PyDev and lets you upgrade PyDev. So I installed Aptana 3.6.1 through Beta repository and then installed the latest PyDev.

Aptana Beta link to add to "Available Software Sites" on Aptana: http://preview.appcelerator.com/aptana/studio3/standalone/update/beta/

Upgrade to Aptana 3.6.1. This will uninstall PyDev.

PyDev link to add to "Available Software Sites" on Aptana: http://pydev.org/updates

Install PyDev.

And then, "Port not bound" will be solved.

like image 107
daigorocub Avatar answered Sep 20 '22 13:09

daigorocub


I did trace the differrence between Aptana 3.4 and 3.5, found a forked process to start pycompletionserver at specific ports:

/usr/bin/python2.7 -u /home/khaled/Downloads/Aptana_Studio_3/plugins/org.python.pydev_2.7.0.2013032300/pysrc/pycompletionserver.py 48914 48082

In 3.5, this process is not found at all, the version of pydev also changed.

I managed to start the completion server with the same old ports, still Port not bound error occur.

/usr/bin/python2.7 -u /home/khaled/Downloads/Aptana_Studio_3/plugins/org.python.pydev_3.0.0.1388187472/pysrc/pycompletionserver.py 48914 48082 & [1] 6752

-

khaled:~/Downloads$ pycompletionserver will start pycompletionserver creating socket pycompletionserver waiting for connection on 127.0.0.1 (48914)

Perhaps Aptana has changed the port numbers....

I'm sorry to revert back to 3.4 :-(

like image 42
kholioeg Avatar answered Sep 18 '22 13:09

kholioeg