eclipse

AttributeError: module 'odbc' has no attribute 'connect' – python with pydev

AttributeError: module 'odbc' has no attribute 'connect' – python with pydev Question: I am very new to python and I just can’t seem to find an answer to this error. When I run the code below I get the error AttributeError: module ‘odbc’ has no attribute ‘connect’ However, the error only shows in eclipse. There’s …

Total answers: 5

Eclipse Organize Imports Shortcut (Ctrl+Shift+O) is not working

Eclipse Organize Imports Shortcut (Ctrl+Shift+O) is not working Question: Eclipse used to import missing packages when I press Ctrl+Shift+O. The shortcut key has stopped working when used in Java files but the same shortcut is working in Python files (importing missing packages). Any thoughts on how to fix the issue. Below are couple of snapshots …

Total answers: 6

Older pydev version for eclipse

Older pydev version for eclipse Question: I am getting started with eclipse pydev and python generally.! I want to try a code which is compatible with python 2. That means I should download an older version of pydev? I have both installed python 2.7 and python 3 in my computer. Asked By: elli || Source …

Total answers: 2

Unable to create Superuser account on Python-Django using Eclipse IDE?

Unable to create Superuser account on Python-Django using Eclipse IDE? Question: I am using Eclipse IDE to work on Python 3.4 and Django 1.8 on Windows XP. My problem is while creating superuser following error occurs. Superuser creation skipped due to not running in a TTY. You can run manage.py createsuperuser in your project to …

Total answers: 2

Eclipse/PyDev: Sync System PYTHONPATH runs continuously

Eclipse/PyDev: Sync System PYTHONPATH runs continuously Question: When Eclipse/PyDev is open I see an operation running in the background, over and over (as if stuck in an infinite loop), in the lower right status area telling me “Sync System PYTHONPATH (100%)”. I have a single Python interpreter configured, everything runs fine, but I wonder if …

Total answers: 1

Problems using psycopg2 on Mac OS (Yosemite)

Problems using psycopg2 on Mac OS (Yosemite) Question: Currently I am installing psycopg2 for work within eclipse with python. I am finding a lot of problems: The first problem sudo pip3.4 install psycopg2 is not working and it is showing the following message Error: pg_config executable not found. FIXED WITH:export PATH=/Library/PostgreSQL/9.4/bin/:”$PATH” When I import psycopg2 …

Total answers: 8

Pymysql Insert Into not working

Pymysql Insert Into not working Question: I’m running this from PyDev in Eclipse… import pymysql conn = pymysql.connect(host=’localhost’, port=3306, user=’userid’, passwd=’password’, db=’fan’) cur = conn.cursor() print “writing to db” cur.execute(“INSERT INTO cbs_transactions(leagueID) VALUES (‘test val’)”) print “wrote to db” The result is, at the top of the Console it says C:…test.py, and in the Console: …

Total answers: 3

Pydev Perspective Not Showing After Install For Eclipse

Pydev Perspective Not Showing After Install For Eclipse Question: After installing the latest version of Pydev on eclipse it is not showing under the list of available perspectives. Eclipse does however list pydev as being installed which seems weird to me. I would also like to add that I installed pydev through the standard method …

Total answers: 18

pep8 warning on regex string in Python, Eclipse

pep8 warning on regex string in Python, Eclipse Question: Why is pep8 complaining on the next string in the code? import re re.compile(“d{3}”) The warning I receive: ID:W1401 Anomalous backslash in string: ‘d’. String constant might be missing an r prefix. Can you explain what is the meaning of the message? What do I need …

Total answers: 2

Eclipse and Google App Engine: ImportError: No module named _sysconfigdata_nd; unrecognized arguments: –high_replication

Eclipse and Google App Engine: ImportError: No module named _sysconfigdata_nd; unrecognized arguments: –high_replication Question: Just upgraded to Ubuntu 13.04 and Eclipse complained with the following 2 errors: 1. ImportError: No module named _sysconfigdata_nd ERROR 2013-03-25 07:26:43,559 http_runtime.py:221] unexpected port response from runtime [”]; exiting the development server ERROR 2013-03-25 07:26:43,561 server.py:576] Request to ‘/_ah/warmup’ failed …

Total answers: 2