Tag Info

New answers tagged

0

My url for the staticfiles was broken. I add the code below to my urlpatterns. url(r'^site_media/static/(?P<path>.*)$', 'django.views.static.serve', { 'document_root': settings.STATIC_ROOT, })


0

pyOpenSSL is not included with python26 from EPEL. It has to be installed manually. Fortunately this can be done easily with the easy_install python module (included with setuptools), but that will need to be installed manually first. Install the required packages for building pyOpenSSL and setuptools: yum install gcc gcc-c++ libffi-devel openssl-devel ...


0

Sadly there doesn't seem to be pip integrated in python3.4 in the FreeBSD ports. So I had to install pip like discribed here


0

I have found the solution, it is quite easy: data = {'upload': ''} I needed to pass the upload string in that way and voilà!


0

Python 3.4+ contains pip by default and need no additional packages to be installed.


0

This is how you can configure mod_wsgi to use Python2.7 I happened to face this same issue. And I was looking at the option on uninstalling mod_wsgi and re-installing it with appropriate configs. Reading one of the articles I realized there was no need to un-install my current mod_wsgi and I could just go ahead and re-install mod_wsgi3.4 (earlier i had ...


0

This is how you can configure mod_wsgi to use Python2.7 I happened to face this same issue. And I was looking at the option on uninstalling mod_wsgi and re-installing it with appropriate configs. Reading one of the articles I realized there was no need to un-install my current mod_wsgi and I could just go ahead and re-install mod_wsgi3.4 (earlier i had ...


1

You can use prebuilt Xpra application: https://www.xpra.org/dists/osx/x86/Xpra.dmg It is mentioned on the main page: https://www.xpra.org To launch client from the command line you can use wrapper shell script: #!/bin/bash cd /Applications/Xpra.app/Contents/MacOS/ ./Xpra "$@"


0

You must find out what device is the bottleneck. So far we know that it isn't the CPU, which means that increasing the core count should do very little or have a slight negative effect because most higher core cpus use lower clock rates. I like to use iotop to monitor disk usage, iftop to monitor network load, and htop to monitor cpu and ram usage. If ...


0

I think I found the solution. I was confused about which file to download in the site that has windows binaries for mod_wsgi.so. This is how the file name is structured (this is what I wasn't understanding): mod_wsgi[WSGI version]+ap[Apache version]vc[Visual C++ Redistributable version that was used to compile Apache]‑cp[Python ...


0

Latest didn't help. This worked -- Run - pip uninstall mysql-python YAML - libraries: - name: MySQLdb version: "1.2.4" Settings - 'default': { 'ENGINE':'django.db.backends.mysql', 'HOST':'/cloudsql/ProjectName:DBName', 'NAME': 'my_database', 'USER': 'root', 'PASSWORD': '********', }


2

This is a combination of a bad server setup together with missing support for SNI (Server Name Indication) in python 2.7.6. SNI is needed to support multiple certificates on the same IP address. SNI support is in python3 and was added in version 2.7.9 too, but is not in version 2.7.6. If you connect to the server without SNI you get only the certificate, ...


1

Seems your ipython command requires to be run in bash - you should check the ENTRYPOINT of your Dockerfile, running ipython directly is not working for you. Pass /bin/bash to the docker run command as so to test: docker run -p 9000:9000 username/image /bin/bash -c 'ipython notebook --port=9000 --ip="*"'


0

Have you considered defering the decision to the end user at runtime, through a configuration parameter ? This is a standard practice for this problem. The reason is there is no systematic foolproof way to figure "the" local IP address (a host may be multihomed, may be running a v4/v6 dual stack, a VPN, etc..). Runtime configuration will make the sysadmin's ...


0

Currently Google App Engine SDK 1.9.18 supports the third-party library MySQLdb version 1.2.4. Therefore you should have MySQL-python 1.2.4 installed for the proper execution of your application in your local dev environment. You may edit your app.yaml file to always use the latest version of MySQLdb supported by App Engine by changing the line of code ...


0

Finally, I made it work. Thanks to @DhirajThakur for his comment, which helped me to look into the right direction. /etc/init/uwsgi_myproject.conf: description "uWSGI starter for myproject" start on (local-filesystems and runlevel [2345]) stop on runlevel [016] respawn exec /usr/local/bin/uwsgi /etc/init/myproject.ini /etc/init/myproject.ini: [uwsgi] ...


1

If you installed MySQL-Python via pip it probably failed at building '_mysql' extension, which is the C extension and requires MSVC++ 9.0 to build: building '_mysql' extension error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27 On Windows your best solution is to just use a binary installer for ...


0

declare -x didnt work.This worked for me. [root@host ~]# unset LD_LIBRARY_PATH If any variable is defined in /etc/ld.so.conf then remove it and run # ldconfig command to recreate ld cache. [root@host ~]# ldconfig Confirm that the Python library now links to the correct /lib64/libexpat.so.1 library. [root@host ~]# ldd ...



Top 50 recent answers are included