virtualenv problem
Hi there.
Im using windows 7 64bit
I have installed python 3.3.2 in C:\Python33
and then easy_install , pip, and virtualenv.
But i do not know if the virtualenv installation is correct as i cant seem to
be able to create any virtual enviroment yet.
How can i check if everything is correct? What exactly should i do to create a
virtual enviroment into my new_project folder located here: in C:\new_project ?
I think there is something wrong with the installation because when i run
through idle the virtual-env scripts located in "C:\Python33\Scripts" then i
get the following..
Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit
(AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> RESTART
>>>
You must provide a DEST_DIR
Usage: virtualenv-3.3-script.py [OPTIONS] DEST_DIR
Options:
--version show program's version number and exit
-h, --helpshow this help message and exit
-v, --verbose Increase verbosity
-q, --quiet Decrease verbosity
-p PYTHON_EXE, --python=PYTHON_EXE
The Python interpreter to use, e.g.,
--python=python2.5 will use the python2.5 interpreter
to create the new environment. The default is the
interpreter that virtualenv was installed with
(C:\Python33\pythonw.exe)
--clear Clear out the non-root install and start from scratch
--no-site-packagesDon't give access to the global site-packages dir to
the virtual environment (default)
--system-site-packages
Give access to the global site-packages dir to the
virtual environment
--always-copy Always copy files rather than symlinking
--unzip-setuptoolsUnzip Setuptools when installing it
--relocatable Make an EXISTING virtualenv environment relocatable.
This fixes up scripts and makes all .pth files
relative
--no-setuptools Do not install setuptools (or pip) in the new
virtualenv.
--no-pip Do not install pip in the new virtualenv.
--extra-search-dir=SEARCH_DIRS
Directory to look for setuptools/pip distributions in.
You can add any number of additional --extra-search-
dir paths.
--never-download Never download anything from the network. This is now
always the case. The option is only retained for
backward compatibility, and does nothing. Virtualenv
will fail if local distributions of setuptools/pip are
not present.
--prompt=PROMPT Provides an alternative prompt prefix for this
environment
--setuptools Backward compatibility. Does nothing.
--distribute Backward compatibility. Does nothing.
Traceback (most recent call last):
File "C:\Python33\Scripts\virtualenv-3.3-script.py", line 9, in
load_entry_point('virtualenv==1.10', 'console_scripts', 'virtualenv-3.3')()
File "C:\Python33\lib\site-packages\virtualenv.py", line 786, in main
sys.exit(2)
SystemExit: 2
plz any help appreciated
--
http://mail.python.org/mailman/listinfo/python-list
Re: virtualenv problem
Yeah trying to run virtualenv under IDLE was a desperate move as i couldnt make anything work under cmd. Apparently my problem was that i did not have correctly setup the new path.. Solution for me was the following from "http://forums.udacity.com/questions/100064678/pip-installation-instructions"; -- ..We want to add that directory to your Path environment variable. Path is a list of directories where your OS looks for executable files. You will need to change the directory if you installed Python in a non-default location. a. go to Control Panel » System » Advanced » Environment Variables, make sure Path is selected under "user variables for user", and click edit. b. Add ;C:\Python33\Scripts\ and ;C:\Python33\ (no spaces after the previous entry, ';' is the delimiter) to the end of variable value, then click ok. You should not be erasing anything, just adding to what's already there. This just makes it so we don't have to type the full path name whenever we want to run pip or other programs in those directories. "C:\Python33\Scripts\" is the one we want now, but "C:\Python33\" might be useful for you in the future. Restart your computer. -- I realised that even if i didn't do the above, i could still have got things rolling just by cd-ing from the cmd, to the script folder of my Python installation. But hey - learning is a good thing -- http://mail.python.org/mailman/listinfo/python-list
PyQt5 and virtualenv problem
I tried to install SIP and PyQt5 using the pip install command but it didnt work on both cases (i was getting errors), so i finally installed them using the windows installers provided in riverbankcomputing website. My problem though here is that whenever i try to create a new virtualenv enviroment, those packages are not included and i cant import them. How can i add PyQt5 to my new virt enviroment? What is the logic behind this problem so i understand whats going on here? Thx in advance -- http://mail.python.org/mailman/listinfo/python-list
Re: PyQt5 and virtualenv problem
Answer here: http://stackoverflow.com/questions/1961997/is-it-possible-to-add-pyqt4-pyside-packages-on-a-virtualenv-sandbox -- http://mail.python.org/mailman/listinfo/python-list
Re: PyQt5 and virtualenv problem
Could you help me install PyQt5 properly in my Virtualenv folder and not only globally? I tried installing PyQt5 and sip with the use of pip but i was getting errors all the time (Why is that? Are there any known pip issues along with PyQt5 and sip?), so in the end i had to install it with the installer provided from the official riverbank website. However now, everytime i create a virtual enviroment, PyQT5 or sip package is not included there and i dont know how to solve this problem either. I tried applying this fix: http://stackoverflow.com/questions/1961997/is-it-possible-to-add-pyqt4-pyside-packages-on-a-virtualenv-sandbox , but i do not know if i have done things right. I can import PyQt5 and pip packages from within python console without any errors being showed (both globaly and inside my virtuall enviroment), so i could assume i did all ok. But should this confirmation be enough for me or is there any other way i could confirm that everything is indeed properly installed? I noticed that in start menu - programs, a new folder named "PyQt GPL v5.0 for Python v3.3 (x64)" had been created after the installation, where someone can find view PyQt examples and a PyQT Examples module which starts an application. Big question now.. Everytime i run PyQt Examples module from within global IDLE, everything works ok and then again when i close the application, this appears: Traceback (most recent call last): File "C:\Python33\Lib\site-packages\PyQt5\examples\qtdemo\qtdemo.pyw", line 91, in sys.exit(app.exec_()) SystemExit: 0 However, everytime i run PyQt Examples module from within virtual env IDLE, nothing happends. So as you can undertand, this is why i believe i have not installed properly PyQt5 or sip **(I start virtual env IDLE using this shortcut ""..path..\Python\Python Projects\PriceTAG Grabber\env\Scripts\pythonw.exe" C:\Python33\Lib\idlelib\idle.pyw") I know i may have asked too many questions in just a single topic, but all im trying to achieve here is to be sure that PyQt5 and virtual env are working fine. Thx for your time in advance -- http://mail.python.org/mailman/listinfo/python-list
Examples of modern GUI python programms
Id like to ask.. do you know any modern looking GUI examples of windows software written in python? Something like this maybe: http://techreport.com/r.x/asus-x79deluxe/software-oc.jpg (or hopefully something like this android look: http://chromloop.com/wp-content/uploads/2013/07/Skype-4.0-Android-screenshot.jpg). What i need is to develop an android looking program (entirelly in python) for windows, but dunno if this is possible (most propably is), and which tool between those would help me most: tkinter - wxpython - pyqt - pygtk . Any examples and suggestions are most welcome. -- https://mail.python.org/mailman/listinfo/python-list
Re: PyQt5 and virtualenv problem
Any advice?Plz? -- http://mail.python.org/mailman/listinfo/python-list
paramiko installation problem
Im having problems using paramiko after installation on my Win7 64bit system. I can see both paramiko and pycrypto being "there" installed via pip list: I have tried so many different ways but in the end im always getting the same error when trying to import paramiko: (i can import Crypto with no problems) Traceback (most recent call last): File "", line 1, in import paramiko File "C:\Python33\lib\site-packages\paramiko\__init__.py", line 64, in from transport import SecurityOptions, Transport ImportError: No module named 'transport' Please can you help? thx -- http://mail.python.org/mailman/listinfo/python-list
Re: paramiko installation problem
>>> import sys
>>> print (sys.path)
returns:
['C:\\Python33\\Lib\\idlelib',
'C:\\Python33\\lib\\site-packages\\pip-1.4-py3.3.egg',
'C:\\Windows\\system32\\python33.zip', 'C:\\Python33\\DLLs',
'C:\\Python33\\lib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packages']
then if i type:
>>> sys.path.append('C:\\Python33\\Lib\\site-packages\\paramiko')
and then again..
>>> print (sys.path)
returns:
['C:\\Python33\\Lib\\idlelib',
'C:\\Python33\\lib\\site-packages\\pip-1.4-py3.3.egg',
'C:\\Windows\\system32\\python33.zip', 'C:\\Python33\\DLLs',
'C:\\Python33\\lib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packages',
'C:\\Python33\\Lib\\site-packages\\paramiko']
then if i type:
>>> import paramiko
i get this:
Traceback (most recent call last):
File "", line 1, in
import paramiko
File "C:\Python33\lib\site-packages\paramiko\__init__.py", line 64, in
from transport import SecurityOptions, Transport
File "C:\Python33\Lib\site-packages\paramiko\transport.py", line 296
except socket.error, e:
^
SyntaxError: invalid syntax
--
when i close and reopen IDLE, then 'C:\\Python33\\Lib\\site-packages\\paramiko'
is getting deleted.
If my problem from the first post above has to do something with the path, then
what exactly should i do?
I would also like to ask here something extra.. :)
in system enviroment variables my path contains the following things:
C:\Python33\Lib\site-packages\PyQt5;C:\Python33\Scripts\;C:\Python33\;C:\Program
Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common
Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common
Files\Microsoft Shared\Windows
Live;C:\Python33\Lib\site-packages\paramiko;C:\Program Files (x86)\Intel\iCLS
Client\;C:\Program Files\Intel\iCLS
Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL
SDK\2.0\bin\x64;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program
Files\NEST;C:\Program Files (x86)\Windows Live\Shared
so what exactly is the difference between this path and the above.?
A huge THANKS for the one who will find the courage to answer to this newbie !
--
http://mail.python.org/mailman/listinfo/python-list
Re: paramiko installation problem
Wow thats bad news. Any workaround? What im trying to succeed here is create one SSH tunnel, so that i can connect from a python script running on my pc, to a remote MySQL database running on my Host and id like to stick with Python 3.3 . Any thoughts? -- http://mail.python.org/mailman/listinfo/python-list
Python 3 and SSH Tunnel
HOWTO anyone? What im trying to succeed here is create one SSH tunnel, so that i can connect from a python script running on my pc, to a remote MySQL database running on my Host and id like to stick with Python 3.3 . I contacted my host and he informed me that this is the only way. I tried pycrypto + paramiko but from what i have noticed, paramiko is not Python 3.3 ready. Any thoughts? -- http://mail.python.org/mailman/listinfo/python-list
Re: Python 3 and SSH Tunnel
> > HOWTO anyone? > > > > > > What im trying to succeed here is create one SSH tunnel, so that i can > > connect from a python script running on my pc, to a remote MySQL database > > running on my Host and id like to stick with Python 3.3 . > > > > > > I contacted my host and he informed me that this is the only way. > > > > > > I tried pycrypto + paramiko but from what i have noticed, paramiko is not > > Python 3.3 ready. > > > > I'm not sure what exactly is going on here, but why not simply > > establish a tunnel using ssh(1) and then invoke your Python script > > separately? You simply point your script at a database on localhost, > > after establishing a tunnel from local 3306 to remote localhost:3306. > > No need to play with Python crypto. > > > > Alternatively, can you use PostgreSQL instead? :) > > > > ChrisA Yes you are right. I've played with putty to achieve this but to be honest i'd like something more efficient. Opening putty everytime and making all the connection settings etc, and then running the programm, is kinda messy. Id like this to be done in an automatic way from the program so that things roll easy. I thought maybe i should find a way how to call and run a batch file from inside my python program or a powershell command, but i do not know even if that could work for the ssh tunneling. any ideas? -- http://mail.python.org/mailman/listinfo/python-list
Re: Python 3 and SSH Tunnel
> Alternatively, can you use PostgreSQL instead? :) Yes there is such an option to be honest. Would that be helpfull instead of MySQL? -- http://mail.python.org/mailman/listinfo/python-list
Re: Python 3 and SSH Tunnel
What about the security though? To be specific, i need to create an application (python 3.3 strictly) where users will save/load their settings online to a remote hosted database. I do not wish to change the database from listening to any other thing than localhost for security reasons, so i assume the best solution for me would be to make the program create some ssh tunnels before the saving/loading happens. But would this policy make my database (or the rest of the databases that im running on that machine) unsecure? Is there any workaround this? How would you do that online saving/loading? -- http://mail.python.org/mailman/listinfo/python-list
Python 3.3 + QtSql + ssh tunnel - Connection problem
Im using python 3.3 on win7 64bit and trying to connect to a MySQL database on
a remote server through a putty ssh tunnel.
Running the script below im getting "Physical connection to the database did
not activate!". What im i doing wrong?! I tried to find a working example but
couldnt find one. thx in advance guys
from PyQt5 import QtSql
def main():
db = QtSql.QSqlDatabase.addDatabase("QMYSQL")
db.setHostName("127.0.0.1")
db.setPort(3306)
db.setDatabaseName("username_databasename")
db.setUserName(username)
db.setPassword(userpassword)
ok = db.open()
if ok:
print ("Physical connection to the database activated")
else:
print ("Physical connection to the database did not activate!")
return
create_table(db)
db.close()
main()
--
http://mail.python.org/mailman/listinfo/python-list
log incoming ip/porrt connections
Hi there. I have a script-service running on a remote server, listening on a specific port. What i need here is to make this also maintain a log file of ALL incoming connections. Could someone suggest to me a simple codefunction example to implement that on my main running service? THX!! -- http://mail.python.org/mailman/listinfo/python-list
Re: log incoming ip/porrt connections
Or point me the right way in case this is not that simple to do. -- http://mail.python.org/mailman/listinfo/python-list
Re: log incoming ip/porrt connections
This monitors also ip/port of incoming udp packets? Or just tcp after a connection has been enstablished? If i dont make any sense, plz correct me. Not much experience with networking here :) -- http://mail.python.org/mailman/listinfo/python-list
What does sys.stdout.flush() do?
Somewhere i read.. sys.stdout.flush(): Flush on a file object pushes out all the data that has been buffered to that point. Can someone post here a script example with sys.stdout.flush(), where in case i commented that i could understand what the difference really would be? Whenever i try to remove that line (in scripts that i find online), i cant find any differences. I've just noticed that it is usually called right after sys.stdout.write(..) thx -- http://mail.python.org/mailman/listinfo/python-list
HELP! How to return the returned value from a threaded function
Maybe this is pretty simple but seems I am stuck... def message_function(): return "HelloWorld!" def thread_maker(): """ call message_function() using a new thread and return it's "HelloWorld!" """ pass Could someone please complete above script so that: thread_maker() == "HelloWorld!" Please import the library you suggest too. I tried threading but I could not make it work. THX! -- https://mail.python.org/mailman/listinfo/python-list
Re: HELP! How to return the returned value from a threaded function
> This sounds like homework... what have you tried, and what happened? heheh naaah no cheating here. I just provided the example this way to make as clear as possible what I want to do. Return the returned value from a threaded function. apparently this does not work as I hoped: return Thread(target=message_function).start() > Have you looked at the docs of the threading module? Lost in there -- https://mail.python.org/mailman/listinfo/python-list
Re: HELP! How to return the returned value from a threaded function
This worked like a charm. http://code.activestate.com/recipes/84317-easy-threading-with-futures/ -- https://mail.python.org/mailman/listinfo/python-list
Re: pyqt4 & qt license
Please correct me if im wrong.. PySide is LGPL and is free and by using that someone can develop commercial (and non commercial) software, while being able at the same to choose between both close and open Source. PyQT4 Commercial Licence costs more than 300 Euro and by using that someone can develop commercial software while being again able to choose between both close and open Soruce. PyQT4 GPL Licence is free and by using that someone can develop only non-commercial software. What about the source here? Could that be both open and close? Can someone develop a closed source but NON-commercial software, by using PyQT4 GPL license? Τη Κυριακή, 10 Μαρτίου 2013 5:31:21 π.μ. UTC+2, ο χρήστης CM έγραψε: > Yes. PyQT is a wrapper for Python around QT, so you would need both. > > QT has, according to the site, > > both a GPL and LGPL version of their license. If someone used PySide, he should again use in addition one of those 2 above QT licences? Last question: Could someone just buy the PyQT4 commercial licence and use the LGPL licence of QT in his CLOSED source commercial software? (Which i believe is free :S) Or does LGPL mean that the source should be open? Or i should better ask, Does any of those 2 Licenses cost any money? Or they are free? Forgive me for all these questions im very interested in this topic too. THX 4 your time!! Tellidis your Greek? :) -- http://mail.python.org/mailman/listinfo/python-list
Help. HOW TO guide for PyQt installation
Hi there, Im searching for an installation guide for PyQt toolkit. To be honest im very confused about what steps should i follow for a complete and clean installation. Should i better choose to install the 32bit or the 64bit windows version? Or maybe both? Any chance one of them is more/less bug-crashy than the other? I know both are availiable on the website but just asking.. If i installed this package on windows 8, should i have any problems? From what i read PyQt supports only xp and win7. I was thinking about installing the newer version of PyQt along with the QT5. I have zero expirience on PyQt so either way, everything is going to be new to me, so i dont care that much about the learning curve diference between new and old PyQt - Qt version. I did not find any installer so i guess i should customly do everything. Any guide for this plz? Id also like to ask.. Commercial licence of PyQt can only be bought on riverbank's website? I think i noticed somewhere an other reseller "cheaper one" or maybe i didnt know what the hell i was reading :). Maybe something about Qt and not PyQt. Please help this noob, Regards -- http://mail.python.org/mailman/listinfo/python-list
Re: Help. HOW TO guide for PyQt installation
Τη Τετάρτη, 20 Μαρτίου 2013 2:55:22 π.μ. UTC+2, ο χρήστης Terry Reedy έγραψε: > On 3/19/2013 8:12 PM, D. Xenakis wrote: > > > Hi there, Im searching for an installation guide for PyQt toolkit. To > > > be honest im very confused about what steps should i follow for a > > > complete and clean installation. Should i better choose to install > > > the 32bit or the 64bit windows version? > > > > I am rather sure you should match your Python installation. > > > > > If i installed this > > > package on windows 8, should i have any problems? From what i read > > > PyQt supports only xp and win7. > > > > If the PyQT author(s) say nothing about Win8, I would presume that they > > have not tested it. Do you really want to be a guinea pig? > > > > > I was thinking about installing the > > > newer version of PyQt along with the QT5. > > > > Does PyQT 'say' that it works with QT5? If so, try it. > > > > -- > > Terry Jan Reedy http://www.riverbankcomputing.co.uk/news Yes from their news Yes i'll better stay same version as python. Im just asking as my new laptop has win8 on that and even though i got a linux partition on that, id rather not install a win7 partition too :D. I'll give it a try what the hek. maybe there is a win7 compability mode or win7image option inside win 7 anyway. I know i cant expect a guide how to as everything is quite new here, but .. im just searching for some guidelines here. I have download and installed already "PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x32-2.exe Windows 32 bit installer" out from this website http://www.riverbankcomputing.co.uk/software/pyqt/download , in my start menu there is a new folder named "PyQt GPL v4.10 for Python v3.3 (x32)" but when i run Designer and go to about tab it only says: Qt Assistant Version 5.0.1 Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). Would that be normal? Shouldn't i also see somewhere anything about PyQt.. :P And last but not least.. ive noticed in the Riverbank's website this notice "Before you can build PyQt you must have already built and installed SIP" I havent done that.. What exactly will happend now, that i have not installed that yet. What would the conflict be (im asking more so that i can understand how this helps). Thx 4 your time guys just by reading this! -- http://mail.python.org/mailman/listinfo/python-list
Help installing latest PyQT
Hi there im trying to install PyQT (version PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe) but i dont know how to make sure i have installed everything correctly. I tried to find documentation about this but most links were very dead.. So far so good.. i have: 1)Downloaded and installed "Python 3.3.0 Windows X86-64 MSI Installer" from http://www.python.org/download/ , here: "C:\Python33" (i have 64 bit Win7 pro Greek edition) 2)Downloaded and unzipped "sip-4.14.5.zip" from http://www.riverbankcomputing.com/software/sip/download , here: "D:\Downloads\sip-4.14.5" (other than that, haven't played with this folder any further, cause i dont know what exactly i should do with that so everything is get properly done..) I suppose after having it unzipped, i should then move that somewhere (maybe here "C:\Python33") and then maybe run some commands but.. help needed here so i dont do something wrong, as this link http://goo.gl/UuLjz doesnt make that clear to me what exact steps i should follow :( . 3)Downloaded and installed "PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe" from http://www.riverbankcomputing.com/software/pyqt/download , here: "C:\Python33" (It was the setup's default choice so i assumed it was also the right one). And thats it.. What should i do exactly now foks :) Thx in advance -- http://mail.python.org/mailman/listinfo/python-list
Re: Help installing latest PyQT
Τη Τρίτη, 2 Απριλίου 2013 6:39:07 μ.μ. UTC+3, ο χρήστης D. Xenakis έγραψε: > Hi there im trying to install PyQT (version > PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe) but i dont know how to make sure i > have installed everything correctly. I tried to find documentation about this > but most links were very dead.. > > > > So far so good.. i have: > > 1)Downloaded and installed "Python 3.3.0 Windows X86-64 MSI Installer" from > http://www.python.org/download/ , here: "C:\Python33" (i have 64 bit Win7 pro > Greek edition) > > > > 2)Downloaded and unzipped "sip-4.14.5.zip" from > http://www.riverbankcomputing.com/software/sip/download , here: > "D:\Downloads\sip-4.14.5" (other than that, haven't played with this folder > any further, cause i dont know what exactly i should do with that so > everything is get properly done..) I suppose after having it unzipped, i > should then move that somewhere (maybe here "C:\Python33") and then maybe run > some commands but.. help needed here so i dont do something wrong, as this > link http://goo.gl/UuLjz doesnt make that clear to me what exact steps i > should follow :( . > > > > 3)Downloaded and installed "PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe" from > http://www.riverbankcomputing.com/software/pyqt/download , here: > "C:\Python33" (It was the setup's default choice so i assumed it was also the > right one). > > > > And thats it.. > > > > What should i do exactly now foks :) > > Thx in advance -- http://mail.python.org/mailman/listinfo/python-list
Re: Help installing latest PyQT
I had also installed in the past python 2.7 . Now when im trying to run a .py, interpreter 2.7 is always being called.. (also when im right clicking and sellecting to run in IDLE, 2.7 is agai n starting instead of 3.3) so PyQt4 is crashing. Any tip to make 3.3 the default interpreter plz? -- http://mail.python.org/mailman/listinfo/python-list
Re: Help installing latest PyQT
Τη Τρίτη, 2 Απριλίου 2013 10:44:43 μ.μ. UTC+3, ο χρήστης Sibylle Koczian έγραψε: > Am 02.04.2013 18:10, schrieb David Robinow: > > > > > > 3)Downloaded and installed "PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe" > > > from http://www.riverbankcomputing.com/software/pyqt/download , > > > here: "C:\Python33" (It was the setup's default choice so i assumed > > > it was also the right one). > > > > > > Yes. > > > > > > > > > And thats it.. > > > > > > What should i do exactly now foks :) > > > > > > You should be done.Start an interactive python and enter: > > > >>>import PyQt4 > > > > > > If there's no traceback you're good to go. > > > > > > > I'd try one thing more from that interactive python prompt: > > > > from PyQt4 import QtCore > > from PyQt4 import QtGui > > > > Do you get tracebacks with this? (I do, that's why I ask.) > > > > The examples that come with the installation usually do both imports in > > one line, but for a first test this may be better: if you get an error, > > you see a little more. > > > > HTH > > Sibylle from PyQt4 import QtCore from PyQt4 import QtGui I get no error using those on IDLE 3.3 -- http://mail.python.org/mailman/listinfo/python-list
Make python 3.3 the default one and not 2.7
Hi there, i installed python 2.7 (windows 32bit version) from http://www.enthought.com/products/epd_free.php and after that i installed official 3.3 version too. So now i got two python folders like this.. c:/Python27 and c:/Python33 . My problem is that when im trying to execute a .py file, the 2.7 version interpreter launces. In addition if i right click and select Edit with IDLE, again version 2.7 interpreter opens. How can i make python 3.3 the default one, as i need this cause i have PyQt4 installed there and so it does not work with 2.7 . Thx in advance. -- http://mail.python.org/mailman/listinfo/python-list
Re: Make python 3.3 the default one and not 2.7
I tried to reinstall python 3.3 but there was not change :(. I selected to run all component from my PC. I'll give it a try with those registries. -- http://mail.python.org/mailman/listinfo/python-list
Re: Make python 3.3 the default one and not 2.7
Τη Τετάρτη, 3 Απριλίου 2013 12:43:43 μ.μ. UTC+3, ο χρήστης Wolfgang Maier έγραψε: > D. Xenakis hotmail.com> writes: > > > > > > > > Hi there, i installed python 2.7 (windows 32bit version) from > > > http://www.enthought.com/products/epd_free.php and after that i installed > > official 3.3 version > > > too. So now i got two python folders like this.. c:/Python27 and > > c:/Python33 . > > > My problem is that when im trying to execute a .py file, the 2.7 version > > interpreter launces. In addition if i > > > right click and select Edit with IDLE, again version 2.7 interpreter opens. > > How can i make python 3.3 the > > > default one, as i need this cause i have PyQt4 installed there and so it > > does > > not work with 2.7 . > > > Thx in advance. > > > > > > > Check out the post at > > http://stackoverflow.com/questions/4664646/how-to-change-default-python-version-on-windows-xp > > . > > Especially the part about changing the registry. The Python.File entry > mentioned > > there also has the information about the IDLE version to use. > > Best, > > Wolfgang I changed this too Python.CompiledFile to my 33 version. Should i not touch this key? -- http://mail.python.org/mailman/listinfo/python-list
Re: Make python 3.3 the default one and not 2.7
thx solved -- http://mail.python.org/mailman/listinfo/python-list
