Debian / Python SSL Error?

I have just installed Debian "jessie" as well as Python 2.7.9. I have all the OpenSSL packages and I thought everything was working fine until I tried to hit the server using a browser (Chrome) and https://; Once I did that I got this error message on the server end, and ideas on how to resolve this would be great.

Incoming web connection from ('192.168.15.177', 53202)
error: uncaptured python exception, closing channel <main.AlarmServer listening :8111 at 0x75ea7b48> (:certfile must be specified for server-side operations [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|443] [./alarmserver.py|handle_accept|456] [/usr/lib/python2.7/ssl.py|wrap_socket|891] [/usr/lib/python2.7/ssl.py|init|498])


Similar Content



Python FTP Send Command

hello Experts!
need some help here with python FTP. so what i'm trying to do is, from a linux machine, ill be sending over a python script to a windows machine via python ftp. that works fine with no problem. now, i want to execute that python script i sent remotely. im having trouble with that. here's my code to just execute the script:

p.s : please dont suggest other options such as python paramiko due to many network security reasons

Code:
ftp = ftplib.FTP("windows machine name")
ftp.login("username", "password")
ftp.cwd("where\\python\\script\\is kept\\")

ftp.sendcmd("python myscript.py")

but looks like it doesn't recognize that command. how do i accomplish this please?

Kdenlive In Debian 8 Not Installing?

I previously installed kdenlive in previous Debian versions with the suggested command:

apt-get install kdenlive frei0r-plugins dvgrab recordmydesktop dvdauthor genisoimage

but it gives error messages in debian 8 saying packages not available

maybe my sources.list is wrong?

# deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 DVD Binary-1 20150425-12:54]/ jessie contrib main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

deb-src http://ftp.fr.debian.org/debian/ jessie-updates main contrib non-free
deb http://ftp.fr.debian.org/debian/ jessie-updates main contrib non-free

deb http://www.debian-multimedia.org jessie main

# jessie-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ jessie-updates main contrib
# deb-src http://ftp.debian.org/debian/ jessie-updates main contrib

What should I do?

I Am Trying To Create A Fedora Live USB Using Ubuntu 14.04 But It's Not So Easy

Unetbootin does not do it and nor does startup disk creator. I the forums are described other ways but too complicated for me. I did find this, with simple instructions


https://ifireball.wordpress.com/2011...tor-on-ubuntu/


sudo aptitude install python-parted isomd5sum python-pyisomd5sum python-urlgrabber extlinux python-qt4 python-qt4-dbus tar


That command should install these packages but all I get is sudo: aptitude: command not found.

isomd5sum
python-parted
python-pyisomd5sum
python-urlgrabber
extlinux
python-qt4
python-qt4-dbus
tar



Does anybody know a simple way to make a Fedora live USB using ubuntu. I was planing to try their Fedora Workstation 22

VPN Mullvad Client Won't Install Proper -dependency Problems(?)-

Hello all

I'm having trouble with installing the Mullvad VPN client on my computer. The configuration files work fine and there is a connection but the client just won't work (there is a icon in the applications but when clicking on it, password is asked and then nothing happens). Using Debian Wheezy 7.
I'm in contact with Mullvad but we haven't made any progress yet, and it's weekend now.

I tried a couple of thing but this is where i'm now:

- Fresh installed system.

→ Going to Downloads map in terminal
→ login as root
→ trying to install Mullvad by dpkg -i mullvad_48-1_all.deb
→ seeing error installing Mullvad
→ apt-get install -f
→ installing “mullvad depends on packages”
apt-get install pytho
apt-get install python-wxgtk2.8
apt-get install python-appindicator
→ trying to install Mullvad by dpkg -i mullvad_48-1_all.deb
→ seeing problem(?)
“ dpkg: dependency problems prevent configuration of mullvad:
mullvad depends on python:any (>= 2.7.1-0ubuntu2).

dpkg: error processing mullvad (--install):
dependency problems - leaving unconfigured “ (what is this?)
→ trying to install python_2.7.3-4+deb7u1_all.deb by dpkg -i python_2.7.3-4+deb7u1_all.deb
→ then: apt-get install -f
→ trying to install Mullvad: dpkg -i mullvad_48-1_all.deb
→ still not working

Code:
userone@debianuser:~$ cd ~/Downloads
userone@debianuser:~/Downloads$ su
Password: 
root@debianuser:/home/userone/Downloads# dpkg -i mullvad_48-1_all.deb
Selecting previously unselected package mullvad.
(Reading database ... 139936 files and directories currently installed.)
Unpacking mullvad (from mullvad_48-1_all.deb) ...
dpkg: dependency problems prevent configuration of mullvad:
 mullvad depends on python:any (>= 2.7.1-0ubuntu2).
 mullvad depends on python-wxgtk2.8; however:
  Package python-wxgtk2.8 is not installed.
 mullvad depends on python-appindicator; however:
  Package python-appindicator is not installed.

dpkg: error processing mullvad (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 mullvad
root@debianuser:/home/userone/Downloads# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  mullvad
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 627 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 139987 files and directories currently installed.)
Removing mullvad ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
root@debianuser:/home/userone/Downloads# apt-get install python
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debianuser:/home/userone/Downloads# apt-get install python-wxgtk2.8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libwxbase2.8-0 libwxgtk2.8-0 python-wxversion
Suggested packages:
  libgnomeprintui2.2-0 wx2.8-doc wx2.8-examples editra
The following NEW packages will be installed:
  libwxbase2.8-0 libwxgtk2.8-0 python-wxgtk2.8 python-wxversion
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.8 MB of archives.
After this operation, 46.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.us.debian.org/debian/ wheezy/main libwxbase2.8-0 amd64 2.8.12.1-12 [678 kB]
Get:2 http://ftp.us.debian.org/debian/ wheezy/main libwxgtk2.8-0 amd64 2.8.12.1-12 [3,411 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main python-wxversion all 2.8.12.1-12 [91.8 kB]
Get:4 http://ftp.us.debian.org/debian/ wheezy/main python-wxgtk2.8 amd64 2.8.12.1-12 [8,579 kB]
Fetched 12.8 MB in 20s (608 kB/s)                                              
Selecting previously unselected package libwxbase2.8-0:amd64.
(Reading database ... 139936 files and directories currently installed.)
Unpacking libwxbase2.8-0:amd64 (from .../libwxbase2.8-0_2.8.12.1-12_amd64.deb) ...
Selecting previously unselected package libwxgtk2.8-0:amd64.
Unpacking libwxgtk2.8-0:amd64 (from .../libwxgtk2.8-0_2.8.12.1-12_amd64.deb) ...
Selecting previously unselected package python-wxversion.
Unpacking python-wxversion (from .../python-wxversion_2.8.12.1-12_all.deb) ...
Selecting previously unselected package python-wxgtk2.8.
Unpacking python-wxgtk2.8 (from .../python-wxgtk2.8_2.8.12.1-12_amd64.deb) ...
Setting up libwxbase2.8-0:amd64 (2.8.12.1-12) ...
Setting up libwxgtk2.8-0:amd64 (2.8.12.1-12) ...
Setting up python-wxversion (2.8.12.1-12) ...
Setting up python-wxgtk2.8 (2.8.12.1-12) ...
update-alternatives: using /usr/lib/wx/python/wx2.8.pth to provide /usr/lib/wx/python/wx.pth (wx.pth) in auto mode
root@debianuser:/home/userone/Downloads# apt-get install python-appindicator
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  indicator-application libappindicator1 libappindicator3-1 libdbusmenu-glib4
  libdbusmenu-gtk3-4 libdbusmenu-gtk4 libindicator3-7 libindicator7
The following NEW packages will be installed:
  indicator-application libappindicator1 libappindicator3-1 libdbusmenu-glib4
  libdbusmenu-gtk3-4 libdbusmenu-gtk4 libindicator3-7 libindicator7
  python-appindicator
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 632 kB of archives.
After this operation, 1,392 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.us.debian.org/debian/ wheezy/main libdbusmenu-glib4 amd64 0.6.2-1 [109 kB]
Get:2 http://ftp.us.debian.org/debian/ wheezy/main libdbusmenu-gtk3-4 amd64 0.6.2-1 [95.0 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main libdbusmenu-gtk4 amd64 0.6.2-1 [95.0 kB]
Get:4 http://ftp.us.debian.org/debian/ wheezy/main libindicator3-7 amd64 0.5.0-1 [56.6 kB]
Get:5 http://ftp.us.debian.org/debian/ wheezy/main libappindicator3-1 amd64 0.4.92-2 [56.1 kB]
Get:6 http://ftp.us.debian.org/debian/ wheezy/main indicator-application amd64 0.5.0-1 [62.4 kB]
Get:7 http://ftp.us.debian.org/debian/ wheezy/main libindicator7 amd64 0.5.0-1 [56.6 kB]
Get:8 http://ftp.us.debian.org/debian/ wheezy/main libappindicator1 amd64 0.4.92-2 [56.1 kB]
Get:9 http://ftp.us.debian.org/debian/ wheezy/main python-appindicator amd64 0.4.92-2 [45.3 kB]
Fetched 632 kB in 2s (216 kB/s)               
Selecting previously unselected package libdbusmenu-glib4:amd64.
(Reading database ... 141598 files and directories currently installed.)
Unpacking libdbusmenu-glib4:amd64 (from .../libdbusmenu-glib4_0.6.2-1_amd64.deb) ...
Selecting previously unselected package libdbusmenu-gtk3-4:amd64.
Unpacking libdbusmenu-gtk3-4:amd64 (from .../libdbusmenu-gtk3-4_0.6.2-1_amd64.deb) ...
Selecting previously unselected package libdbusmenu-gtk4:amd64.
Unpacking libdbusmenu-gtk4:amd64 (from .../libdbusmenu-gtk4_0.6.2-1_amd64.deb) ...
Selecting previously unselected package libindicator3-7.
Unpacking libindicator3-7 (from .../libindicator3-7_0.5.0-1_amd64.deb) ...
Selecting previously unselected package libappindicator3-1.
Unpacking libappindicator3-1 (from .../libappindicator3-1_0.4.92-2_amd64.deb) ...
Selecting previously unselected package indicator-application.
Unpacking indicator-application (from .../indicator-application_0.5.0-1_amd64.deb) ...
Selecting previously unselected package libindicator7.
Unpacking libindicator7 (from .../libindicator7_0.5.0-1_amd64.deb) ...
Selecting previously unselected package libappindicator1.
Unpacking libappindicator1 (from .../libappindicator1_0.4.92-2_amd64.deb) ...
Selecting previously unselected package python-appindicator.
Unpacking python-appindicator (from .../python-appindicator_0.4.92-2_amd64.deb) ...
Setting up libdbusmenu-glib4:amd64 (0.6.2-1) ...
Setting up libdbusmenu-gtk3-4:amd64 (0.6.2-1) ...
Setting up libdbusmenu-gtk4:amd64 (0.6.2-1) ...
Setting up libindicator3-7 (0.5.0-1) ...
Setting up libappindicator3-1 (0.4.92-2) ...
Setting up indicator-application (0.5.0-1) ...
Setting up libindicator7 (0.5.0-1) ...
Setting up libappindicator1 (0.4.92-2) ...
Setting up python-appindicator (0.4.92-2) ...
root@debianuser:/home/userone/Downloads# dpkg -i mullvad_48-1_all.deb
Selecting previously unselected package mullvad.
(Reading database ... 141685 files and directories currently installed.)
Unpacking mullvad (from mullvad_48-1_all.deb) ...
dpkg: dependency problems prevent configuration of mullvad:
 mullvad depends on python:any (>= 2.7.1-0ubuntu2).

dpkg: error processing mullvad (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 mullvad

root@debianuser:/home/userone/Downloads# dpkg -i python_2.7.3-4+deb7u1_all.deb
(Reading database ... 141737 files and directories currently installed.)
Preparing to replace python 2.7.3-4+deb7u1 (using python_2.7.3-4+deb7u1_all.deb) ...
Unpacking replacement python ...
Setting up python (2.7.3-4+deb7u1) ...
Processing triggers for man-db ...
root@debianuser:/home/userone/Downloads# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  mullvad
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 627 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 141736 files and directories currently installed.)
Removing mullvad ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
root@debianuser:/home/userone/Downloads# dpkg -i mullvad_48-1_all.deb 
Selecting previously unselected package mullvad.
(Reading database ... 141685 files and directories currently installed.)
Unpacking mullvad (from mullvad_48-1_all.deb) ...
dpkg: dependency problems prevent configuration of mullvad:
 mullvad depends on python:any (>= 2.7.1-0ubuntu2).

dpkg: error processing mullvad (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 mullvad
root@debianuser:/home/userone/Downloads#


I found this link about "Package has a Depends on python:any (>= 2.7.1-0ubuntu2)" https://qa.debian.org/debcheck.php?dist ... thon-gdata
It says : Package has a Depends on python:any (>= 2.7.1-0ubuntu2) which cannot be satisfied on amd64.
What does this mean for me?

I checked command # python -V The output is:
Code:
Python 2.7.3

Getting And Installing Python 3.5 Help

One week user of Ubuntu v15 and I have tried to install the file Python-3.5.0a1.tar gz but without success. The following points have arisen.
1). The file was downloaded. OK
2). The file was extracted to the Desktop as Python-3.5.0a1
3). Using sudu apt-get install Python-3.5.0a1, the message 'file not found'. Why not!
4). Looking into the extracted files it seems that this is a source package and therefore cannot be installed as is?
5). Finally, using the bash command 'find' it could not find the above file either.
Can someone kindly sort this out for me.
Thanks.

Multiple Applications Using Different Ports Not Running In Flask

I am working on a project including text chat, video chat, and file transfer parallely using different ports in python. I am able to achieve this simply using threads in python and making a window with tkinter. But now, I want to put all this on a webpage. I am using flask for that. The problem here is:- flask uses a single port to run an application. How to host all the applications with different ports on a single webpage(threading gives me "address already defined error" error)?

Python Ftplib

hello all,

please help me with python ftplib. i was trying to copy files from my linux machine to a windows server using ftplib. everything was working good. but i'm only able to copy files from the same directory the script is. how do i copy files from a different directory? i always get "file not found error message". here's my code :

Code:
tester_name = str (socket.gethostname())
def upload(ftp, file):
    ext = os.path.splitext(file)[1]
    if ext in (".txt", ".htm", ".html"):
        ftp.storlines("STOR " + file, open(file))
    else:
        ftp.storbinary("STOR " + file, open(file, "rb"), 1024)



parse_source_path = ('/path/to/where/i/go/')
parse_source_file_list = os.listdir(parse_source_path)

ftp = ftplib.FTP("server_IP")
ftp.login("username", "pass")

folder_list = []

ftp.dir(folder_list.append)

if str(tester_name) not in str(folder_list) :
    ftp.mkd("%s"%tester_name)
    ftp.cwd("%s"%tester_name)
    for files in parse_source_file_list :
        print files
        upload(ftp, files)


else :
    print "later"

Wifi Working In Wheezy But Not Jessie

I just installed on my Sony Vaio "Jessie" and my wifi doesn't work.
When I was using "wheezy" after installation I did the following:

add line to Sources.list:
deb http://http/debian.net/debian/ wheezy main contrib non-free

do followwing commands:
# apt-get update && apt-get install firmware-iwlwifi
# modprobe -r iwl4965
# modprobe iwl4965
# aptitude update
# aptitude install plasma-widget-networkmanagement

I tried to do the same in "Jessie"

add line to Sources.list:
deb http://http/debian.net/debian/ jessie main contrib non-free

but it didn't work. Any ideas?

Make Python Highly Available In RHEL 6.4

I have configured RHEL cluster by installing ricci and luci server. I have successfully tested it for httpd service. Now my target is to achive the HA of python. Can anyone help me with it?

What's Wrong With My /etc/apt/sources.list - Jessie.

Hi all,
This is my /etc/apt/sources.list of jessie, what's wrong as I am getting the following error output .

error :-

Code:
Err http://http.debian.net jesssie/main Sources
  404  Not Found [IP: 54.192.190.154 80]
Err http://http.debian.net jesssie/contrib Sources
  404  Not Found [IP: 54.192.190.154 80]
Err http://http.debian.net jesssie/non-free Sources                                                                                            
  404  Not Found [IP: 54.192.190.154 80]
Fetched 7,819 B in 25s (307 B/s)                                                                                                               
W: The repository 'http://http.debian.net jesssie Release' does not have a Release file. This is deprecated, please contact the owner of the repository.
W: Failed to fetch http://http.debian.net/debian/dists/jesssie/main/source/Sources  404  Not Found [IP: 54.192.190.154 80]

W: Failed to fetch http://http.debian.net/debian/dists/jesssie/contrib/source/Sources  404  Not Found [IP: 54.192.190.154 80]

W: Failed to fetch http://http.debian.net/debian/dists/jesssie/non-free/source/Sources  404  Not Found [IP: 54.192.190.154 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

This is my /etc/apt/sources.list :-

Code:
[$] cat /etc/apt/sources.list                                                                                                       [2:23:45]
#### testing  #########
deb http://http.debian.net/debian jessie main contrib non-free
deb-src http://http.debian.net/debian jesssie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

# testing-updates, previously known as 'volatile'
#deb http://http.debian.net/debian jessie-updates main contrib non-free
#deb-src http://http.debian.net/debian jessie-updates main contrib non-free

Now I am guessing one or more of the entries above are wrong, as probably all of testing-updates would probably come into play once jessie is released, right ?

This was generated via http://debgen.simplylinux.ch/ for lack of better places to generate sources.list from.