Posts by fredsilva • 358 points
9 posts
-
0
votes0
answers53
viewsQ: Python Losing Class Reference
I need help with a class reference problem. My class is losing the reference in the middle of a While and I’m not getting to figure out why. Gives the following message: Erroinstance '' has been…
-
4
votes1
answer334
viewsQ: Problems importing cx_oracle in python 3.4 64 bits
I have a problem with cx_oracle in 64 bit python. I installed this version of cx_oracle: cx_Oracle-5.2.1-11g. win-amd64-py3.4. But when importing in python import cx_Oracle, the following error…
-
1
votes2
answers2514
viewsA: Unicodedecorror: 'utf-8'
I managed to fix it. Grabbing the hook from @Rui Lima’s reply. Replace the line: fileOriginal = open(os.path.join(url,file), encoding = "utf8") for: fileOriginal = open(url+file,encoding = "utf-8")…
-
5
votes2
answers2514
viewsQ: Unicodedecorror: 'utf-8'
I’m having problems with Unicodedecodeerror: 'utf-8' in a python file and I’m not being able to solve it. That is the mistake: Traceback (most recent call last): File "file.py", line 448, in…
-
4
votes2
answers22077
viewsA: Git does not send commits to server. Error: Everything up-to-date
I decided here as follows: git reset --hard [sua branch] git add . git commit -m "...blablabla" git push origin [sua branch] Thank you all for your help! Hug!
-
5
votes2
answers22077
viewsQ: Git does not send commits to server. Error: Everything up-to-date
When giving the command: git push origin master git does not send the information and gives the following error: Everything up-to-date I realized that the master of my local repository is not…
-
0
votes2
answers119
viewsA: Attribute name referring to secondary key in a model in Django
You don’t need to create the id_city field. Django already creates it for you. Your model gets cleaner and you can access it more easily like this: city.id city.state.id You won’t be able to access…
-
2
votes1
answer1197
viewsQ: Check runtime with timeit
I need to check the running time of a function using the module timeit of Python 3, but it does not accept that I pass the value inside the function by a variable. If I replace the line: tempo =…
-
2
votes2
answers10525
viewsA: How do I remotely connect to Git
Alexander, I assume you already have a Github account... So here’s the thing: First manage ssh key pair: ssh-keygen -t rsa PS: If you don’t have the ssh, must install You create a repository on…