I encountered the problem. When i am trying to create new PyDev project, an error occurs:
Error:
Unable to load the repository http://pydev.org/updates
Unknown Host: http://pydev.org/updates/content.xml
When I open this link(http://pydev.org/updates) in my browser, it redirects me here - http://pydev.org/updates/content.xml
So i understand Eclipse cannot find the repository because there's nothing to look at this link... Does anybody know how to solve this problem?
Update:
I installed PyDev as described at PyDev Manual (Help-Install New software-and so on...)
If the url doesn't work directly, you may visit the update site in the browser (i.e.: http://www.pydev.org/updates/) and check the note to where it does redirect.
The current url it redirects to is http://dl.bintray.com/fabioz/pydev/5.8.0/ but it changes at each release, so, you may want to check the current release and update the version accordingly.
For older versions, it's possible to visit (in the browser) http://www.pydev.org/update_sites/ and check the existing update site urls (again, you may visit the update site url to see where it does redirect to and use that directly).
Notes:
the redirects are to https, but some users seem to experience issues with it, so, using http may be an option.
check your firewall to see if it's not blocking eclipse.
if you're under a vpn, you may want to check if it's blocking something (i.e.: maybe try without the vpn).
Now http://www.pydev.org/updates points to current version of Pyded: https://dl.bintray.com/fabioz/pydev/5.3.1/
But this link won't work unless you change the protocol to http instead of https. So, the working link is:
http://dl.bintray.com/fabioz/pydev/5.3.1/
i had the same problem. I was behind a proxy and once i set the proxy (as described here: http://www.mkyong.com/web-development/how-to-configure-proxy-settings-in-eclipse/) it worked.
Not sure if you have the same problem though.
Taken from this answer by Sukupa91:
Go to Window --> Preference --> General --> Network Connection -->
select Direct from drop down!
This worked for me.
i will advice to check if your are on VPN or not , i was getting the error because i was on office VPN
There is a problem in pydev site, because I have installed it multiple times and now facing problem to install it.
Related
Hello I have some questions..
I developed django website on Windows 10 and changed OS to ubuntu for publishing
On Windows, there were no problems but problems appeared on ubuntu
My website uses a remote access on EleasticSearch and also uses elasticsearch, elasticsearch_dsl python lib.
There was no error searching the document in index from an external connection, but an error occurs when adding update_by_query or a new document.
There are no other settings except for modifying network.host in elasticsearch.yml to 0.0.0.0
Do I need special permissions or other settings to modify or create documents from outside?
I am so stressed because of this.
If anyone knows, I'm sure you're busy, but please give me a detailed explanation or a link.
Thank you.
After getting Pycharm set up and watching some quick tutorials about connecting it with Github, I still can't find anywhere that is giving me the full information for how to connect PyCharm to GitHub. I think that I've managed to accomplish most of it, but there is one final step that I still haven't figured out.
Jetbrain documents how to sync with Github, which says to "Click this link and specify the remote name and URL in the dialog that opens." Unfortunately, as a beginner to coding, I have no idea was the remote URL is, and that page doesn't even say what a remote URL is. I can't find any information beyond what is on the Jetbrains website.
There is one question on StackOverflow from a few years ago that about setting up a remote, but the answers merely say that "You need to set up a remote" without saying how to do so. So, how do I set up a remote? How do I define remote? What URL should I use, and how to I go about finding it?
Most likely, by "remote" they mean the location of your repo on Github. You can get this by clicking the green "clone or download" on the repo's Github page.
I'm stepping into the Python world. First I learned a little Python. Then I learned the basics of Django, and on top of that I'm learning Wagtail (framework for template managing for Django)
To learn Django a went through a tutorial to build a site locally and test it in 127.0.0.1:8000.
At some point of the tutorial I configured the settings (because the tutorial said so) to redirect to 127.0.0.1:8000/catalog when browsing to 127.0.0.1:8000 alone.
Then I started the Wagtail tutorial, as a completely different project in another folder. Not sharing any code with the tutorial Django project.
I run the server and the console says it is now running in port 127.0.0.1:8000 and when I browse it, it redirects me to /catalog and of course shows a Page not found error since this project doesn't have one app catalog.
I workaround this by opening Chrome in Incognito Mode. But still I would like to know why this is happening and how to solve it to add to my knowledge of how Python works.
Some notes:
I'm on Windows
I killed all processes related to Python and actually this is still happening after turning my PC off and on
I know I could use a different port, please do not give me that answer. My goal is to learn.
Try clearing your browser cache.
The problem is most likely that your browser has cached a 301 Moved Permanently for 127.0.0.1:8000, thus never hit your development server when you enter the URL, but simply do the redirect based on the cache.
You will see the same result no matter what you're running behind port 8000, and it's as such not related to Django.
I have several django projects and they work well on my desktop. But when I run them on my laptop, they run ok for sometime. Then on a random occasion, opening a page won't work. The browser keeps trying to load the page (title tab keeps spinning, URL changes to the page its trying to open, and the page turns blank), while the development server (django on windows shell) says it has successfully served the page (200 status).
This behavior is consistent among Firefox, IE and Chrome. I tried changing ports, using machine IP instead of localhost, loading static files on external server, but nothing works. I tried opening the site (using laptop computer name) from desktop browsers and behaves the same. Another interesting thing is, even if I shutdown and restart the django server, I wont be able to open the page that have failed previously unless I close the loading page.
My laptop is running a basic Windows 8, while desktop is Windows 8 Pro. I think the windows version has something to do with it.
Does anyone know how to solve this? I hope I made myself clear. Thanks.
It is hard to tell whether the issue is related to Windows specifically, rather than compatibility issues with images/CSS/Javascript/plugins such as Flash. Are you running the latest versions of those browsers (or at least the same versions as on your desktop)? Do you have different security software/firewalls? Do other sites load inconsistently? Seems unlikely to be a Django issue (although you can try loading sites like djangoproject.com).
Thanks people for your comments and answer. I uninstalled from the laptop each application that is not present in the desktop and found which one is causing the problem. This app called NetWorx has a network filtering that I enabled and for some reason its blocking the django response. I disabled network filtering which is good enough for my need.
I have looked and I could not find this question before, and it surprises me.
I am reasonably proficient in Python, and I used Dreamhost for a number of years. Now I would like to learn Django. They are finally supporting it using Passenger. Which I do not know what is.
Following the instructions on Dreamhost I installed Django. Then I started following the tutorial 01. This went well, except that I could not start the server (this in the tutorial) since the code was live on dreamhost. At the time this did not seem to make any difference. Then when I went on the second part of the tutorial I had to access the admin site. And it worked well going to myurl/admin/ , as it should. But here the problems started. According to the tutorial (here) I have to add a file in the poll application and then restart the server. But I never started the server in the first place, my code is running live on the web... but when I add a file the website the admin acts as if it does not see it.
Probably dreamhost has started its own server, and I don't know how to restart it. But I assume this is going to be a common problem when you run django on dreamhost. Every time you add a file you will have to tell the server to consider it.
So what should I do to let the server know about it?
Thanks,
Pietro
Here's the relevant section of the Passenger user's guide for restarting Passenger:
http://www.modrails.com/documentation/Users%20guide.html#_redeploying_restarting_the_ruby_on_rails_application
Eventually I got the answer from the DH support service. They told me to
pkill python
I did it. I also checked with
ps -aux
what process I was running. And indeed I could see the python process starting when I went to the page, and being killed when I pkilled it.
Thanks for all that helped.
I had the same problem with Passenger not reloading the Django server.
According to Django wiki page on Dreamhost, you can touch a "restart.txt" file that Passenger watches. If the timestamp on the file changes, Passenger restarts Django.
If you modified your application and your changes do not seem to be reflected, you may need to notify Passenger about your change by creating or modifying ~/example.com/tmp/restart.txt:
touch /home/user/example.com/tmp/restart.txt
Source: http://wiki.dreamhost.com/Django#Hints
For the tutorial, you should be working on a local machine, not a web server.