I am using pycharm (v4.5.3) and the pyramid web framework (v1.5.7).
I created a simple project, but I got an error when I tried to access the welcome page (that is in my case 0.0.0.0:6543).
Here are the steps I followed:
Installed python 3.4.3 and pycharm 4.5.3 (professional edition)
Created a project with pycharm (without creating an env because of the pro edition)
Selected scaffold "starter" and no template language because I read that could cause an error
Using pycharm GUI I ran "setup.py develop". The server starts at 0.0.0.0:6543 but the connection does not work. According to a video I watched on Youtube, a welcome page should appear. Indeed it appears only if I type "localhost:6543"; however my server is listening on 0.0.0.0:6543.
Can anyone help me?
0.0.0.0 is a "meta address" which tells the server to listen on all available local interfaces. This address is non-routable, so you can't access the server by specifying this address - you need a real IP of one of your machine's network interfaces
Related
We have a Linux server with Jupyterhub installed and can be accessed by users over browser, similarly we are able to access Rstudio.
Is it possible to install Spyder on the Linux server and provide access via web browser. Multiple users will be accessing it simultaneously. We are not looking for remote desktop or SSH solution.
Thanks
(Spyder maintainer here) Spyder can't work inside a web browser because it's a pure desktop application, sorry.
How about broadening your search space to include VS Code Server as an alternative? It closely resembles the classic Windows (GUI) version, but it has client-server architecture, so your code resides and runs on the server, but the user interface is rendered locally in the browser, so no graphical desktop needs to be installed on the server.
I would really appreciate some help here, basically I'm learning to use tensorflow, I've decided that the easiest way to go about this would be to install ubuntu on either VMware and/or Virtualbox and then access the ipython notebook (came with anaconda) through the browser on the host computer.
I have successfully installed both vmware and virtualbox, I downloaded a ubuntu image and also successfully installed anaconda on both, I get it to work without a problem on both VMs and even installed tensorflow.
Some research online on how to expose the ipython to the host machine suggested port forwarding or ssh tunneling, none of these have worked (very likely I'm doing it wrong). Can someone please help? think of me as a newbie.
Generally you must edit the jupyter configuration file to allow network access to the notebook server. See this link: http://jupyter-notebook.readthedocs.org/en/latest/public_server.html for details. (Even if it is not a "public" server, you still intend to access the notebook server living in the VM from the host machine via a network connection...)
Here is a quotation from the linked documentation that indicates by default, you can only access the notebook via the localhost.
By default, a notebook server runs locally at 127.0.0.1:8888 and is accessible only from localhost. You may access the notebook server from the browser using http://127.0.0.1:8888.
I am going through the Django tutorial and am running into problems when trying to view my webpage. I am at the very beginning of the tutorial when I first run the command python manage.py runserver xxx.xxx.xxx.xxx:8000 (replace the x's with my remote server's IP). When I try to navigate to http://xxx.xxx.xxx.xxx:8000 on my local machine, Chrome gives me the error ERR_CONNECTION_REFUSED. I have also tried running the server on 0.0.0.0:8000 and the same issue persists. The port is definitely open and there are no firewalls blocking it - when I plug in my IP and 8000 into this site it claims it is open: http://ping.eu/port-chk/.
I get no error messages on my console from the Django side of things. What could be causing this error? I really don't know much about servers or ports. Thanks in advance.
I am on a virtual Linux server running CentOS 6.4. My local machine is running Mac OS 10.9.5
EDIT:
When I run netstat --listen, port 8000 doesn't show up in the Local Address column, even though my Django dev server claims to be running. Someone mentioned to me that this means my application is not listening on this port. What does this mean and how do I remedy it?
EDIT:
I can access the page through my phone's internet with no issues. What gives?
If you're running Django inside a VM but accessing it from the host Mac, you'll need to forward the port. See the settings in Virtualbox/VMWare/whatever.
Note however that Django runs perfectly well directly on a Mac, so if you're just learning it may be simpler to just install it there.
Don't issue no IP, runserver will tell you where you can connect to when launching it.
Since you're launching it from your VM, you might supply the IP.
Ensure system level routing is okay.
Add your host local IP to the ALLOWED_HOSTS setting.
I have created a Bottle Py website and deployed it to Azure Websites, but now I have made some changes and when I published it Site again, the site gave an internal error. When I tried to attach debugger received below error
"Existing connection is forcefully closed by remote host"
Update: I posted the same in PTVS Discussions and got the answer there, possibly this might get fixed in RTM.
https://pytools.codeplex.com/discussions/551920
Did you enable web sockets for your website in Azure management console?
I have just installed GAE launcher and am trying to run a sample application to make sure it works and I am getting the below error.
raise BindError('Unable to bind %s:%s' % self.bind_addr)
google.appengine.tools.devappserver2.wsgi_server.BindError: Unable to bind localhost:8000
2014-03-24 10:54:54 (Process exited with code 1)
I am trying to run the python version of the app with python 2.7 and am using windows 8.1 operating system. I did not create any files for the app, I just created a new application and am trying to run it in localhost.
Can someone please tell me what this error means and how to fix it?
The app server starts two servers: one for your application, the other for development console.
Change the ip address for the development console with:
dev_appserver.py --admin_port=9000
Another process is already bound to port 8000. Use netstat -an or netstat -anb or similar to investigate. It may be another instance of your development server.
Edit: If port 8000 is really occupied, Command-line arguments in the The Python Development Server says you can append --admin_port to change the 8000 to another free port.
For me, I have to use both --admin-port and --port
dev_appserver.py --admin_port=9000 --port=9999 app.yaml
I hope it might help others using PyCharm to understand where to set the admin port to something different than 8000.
Go to your "Run/Debug configurations" and in the configuration tab, add the following into "additional options":
--admin_port=9000