Skip to main content
1 vote
1 answer
497 views

I keep getting an error on python path when I open terminal

I recently updated python on my mac and since then, whenever I open terminal there's the following error shown: File "/opt/homebrew/share/man/man1/python3.1", line 1 .TH PYTHON "1&...
Shayan's user avatar
  • 27
-2 votes
2 answers
2k views

Python - Add time zone to timestamp

I use chrome timestamp and convert it do readable date but time isn't right timestamp_formated = str(datetime.datetime(1601, 1, 1) + datetime.timedelta(microseconds=last_visit_time)) Seems to be ...
None's user avatar
  • 63
1 vote
0 answers
1k views

Pip for Python 3.1

I have been trying to install pip on my Python 3.1, in order to be able to convert .py files to .exe files. I have been searching around the internet, finding stuff like sudo, some bootstrap links and ...
Nikola Milun's user avatar
0 votes
0 answers
16 views

Conditional formatting levels

I am teaching myself python and I know formatting is critical for but I can' figure out how to make the formatting work for a conditional statement. When using an if statement I can't get the else to ...
Greg's user avatar
  • 1
1 vote
0 answers
218 views

How do I connect to a Sybase Server using Python 3.1 in Windows 7?

I have thoroughly researched into this topic and I cannot get anything to work. I have tried to run modules I downloaded from this webpage: http://python-sybase.sourceforge.net/download.html The ...
programmer_with_questions's user avatar
1 vote
3 answers
579 views

not working Morse Code Decryptor in Python

I'm making a program where the Morse Code is decrypted into English. However, when the program is running and I put the Morse Code in (ex. *- which should result in the program printing out A) the ...
user avatar
5 votes
7 answers
1k views

On Raspbian run multiple python Versions simultaniously

I have some old programs from back in the times when python 3.1 came out. In the program I often used the Callable() to pass a function and it's parameters like this to my TKinter application: tvf....
monamona's user avatar
  • 1,246
0 votes
0 answers
392 views

Use importlib instead imp for non .py file

I want to import a file as python module with importlib. This file has no .py but .cfg extension. It contains python code. [GCC 4.9.1] on linux Type "help", "copyright", "credits" or "license" for ...
bux's user avatar
  • 7,711
0 votes
1 answer
75 views

My while statement is going wacky and I'm not sure what is wrong [duplicate]

My code is not working, and I'm not sure what is going on. The problem is when I input "Y" the first time, it still says "Please enter a valid input" and I need to re-enter a second time for it to ...
Luke Schwab's user avatar
1 vote
0 answers
1k views

Trying to send command between to machines Server to Client

I have two machines one is set up as a Client the other as Server. The Client is setup to receive commands from the Server and then respond. I know ... backwards. I tried using Putty but kept ...
purza95's user avatar
  • 59
1 vote
2 answers
97 views

Operators from list is still showing quotation marks when printed (Python 3.1)

When I'm coding, I choose a random value from a list and print it alongside two numbers to make a sum. However, the value from the list still shows the quotation marks and I don't understand why. The ...
Daisy Bradbury's user avatar
2 votes
2 answers
140 views

Chess Engine TypeError: unhashable type: 'list'

board = [["bRook", "bKnight", "bBishop", "bQueen", "bKing", "bBishop", "bKnight", "bRook"], ["bPawn", "bPawn", "bPawn", "bPawn", "bPawn", "bPawn", "bPawn", "bPawn"], ["", ...
RichardDawkinsFTW's user avatar
0 votes
0 answers
27 views

Custmizing Django formwizard interface

How to Customize Django form wizard interface,how to impliment our methods inside session wizard interface class
vinodsesetti's user avatar
-2 votes
1 answer
247 views

Python - Why is my else statement being ignored in this piece of code? [duplicate]

seats = 3 rating = 12 print('Hello and welcome to Daisy\'s cinema.') while seats > 0: name = input('What is your name?') print('Hello',name,'\n') print('We are currently showing ...
Daisy Bradbury's user avatar
0 votes
0 answers
484 views

"TypeError: 'str' object is not callable" when creating virtualenv with Python 3.1

This commands on Ubuntu 14.10: sudo add-apt-repository ppa:fkrull/deadsnakes -y sudo apt-get update sudo apt-get install python3.1 python3.1-dev sudo pip install virtualenv==12.1.1 virtualenv -...
Gill Bates's user avatar
  • 15.5k

15 30 50 per page