Putting Py 3.4.1 to work.

W

wxjmfauth

Experimented users have certainly noticed a lot of
things have changed.

Short. I installed Py3.4.1, it overwrites c:\Python34 which
contained eg. PySide in ...\site-packages.

So far, so good. I can launch Python, IDLE and my interactive
interpreter I wrote with tkinter via a cmd in dos, .bat, ...

Now the questions. It seems all packages in \site-packages
are no more recognized.
What am I doing wrong? Why is "site-packages" no more
recognized, "forcing" sys.path does not seem to help.

From my interactive interpreter:
import PySide
Traceback (most recent call last):
sys.path
['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip',
'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs',
'C:\\Python34\\DLLs\\lib\\site-packages']sys.path
['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip',
'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs',
'C:\\Python34\\DLLs\\lib\\site-packages', 'C:\\Python34\\Lib\\site-packages\\PySide']import PySide
Traceback (most recent call last):
sys.version
'3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)]'
jmf
 
J

John Gordon

In said:
sys.path
['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip',
'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs',
'C:\\Python34\\DLLs\\lib\\site-packages', 'C:\\Python34\\Lib\\site-packages\\PySide']import PySide
Traceback (most recent call last):
File "<smid last command>", line 1, in <module>
ImportError: No module named 'PySide'

Is there a file named __init__.py in the PySide directory?
Did 'import PySide' used to work on Python 3.4.0?
 
I

Ian Kelly

In said:
sys.path
['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip',
'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs',
'C:\\Python34\\DLLs\\lib\\site-packages', 'C:\\Python34\\Lib\\site-packages\\PySide']
import PySide
Traceback (most recent call last):
File "<smid last command>", line 1, in <module>
ImportError: No module named 'PySide'

Is there a file named __init__.py in the PySide directory?
Did 'import PySide' used to work on Python 3.4.0?

Or maybe some .pth file got clobbered.

I always reinstall packages after upgrading Python on Windows. I
don't know whether the scenario of reinstalling Python on top of an
existing site-packages directory is supposed to work or not.
 
V

Vincent Vande Vyvre

Le 20/05/2014 19:38, Ian Kelly a écrit :
In said:
sys.path
['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip',
'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs',
'C:\\Python34\\DLLs\\lib\\site-packages', 'C:\\Python34\\Lib\\site-packages\\PySide']
---
import PySide
Traceback (most recent call last):
File "<smid last command>", line 1, in <module>
ImportError: No module named 'PySide'
Is there a file named __init__.py in the PySide directory?
Did 'import PySide' used to work on Python 3.4.0?
Or maybe some .pth file got clobbered.

I always reinstall packages after upgrading Python on Windows. I
don't know whether the scenario of reinstalling Python on top of an
existing site-packages directory is supposed to work or not.
What about:

from pyside import QtCore, QtGui

?
 
M

Mark Lawrence

In said:
sys.path
['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip',
'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs',
'C:\\Python34\\DLLs\\lib\\site-packages', 'C:\\Python34\\Lib\\site-packages\\PySide']
---
import PySide
Traceback (most recent call last):
File "<smid last command>", line 1, in <module>
ImportError: No module named 'PySide'

Is there a file named __init__.py in the PySide directory?
Did 'import PySide' used to work on Python 3.4.0?

Or maybe some .pth file got clobbered.

I always reinstall packages after upgrading Python on Windows. I
don't know whether the scenario of reinstalling Python on top of an
existing site-packages directory is supposed to work or not.

I've never bothered to reinstall packages after upgrading Python on
Windows and I've never had a problem. I can't see how Python can do
anything with site-packages as it knows nothing about it, other than
that it exists, so it strikes me that it has to work, or am I missing
something?
 
V

Vincent Vande Vyvre

Le 20/05/2014 20:12, Chris Angelico a écrit :
Is it pyside or PySide? There seems to be some inconsistency here.

ChrisA
Yes PySide, off course. Sorry.
 
W

wxjmfauth

-----

Complete (re)Fresh install Stop Python34, PySide ok Stop
cx_freeze 4.3.3 for py34 seems to suffer, again, from the same
desease as with cx_freeze 4.3.2, Py 3.4.0 leading to a Py crash
Stop Python, PySide, cx_freeze, Windows issue? No idea Stop
Have some idea about the guilty msi installer Stop.

jmf
 
Z

Zachary Ware

Experimented users have certainly noticed a lot of
things have changed.

Short. I installed Py3.4.1, it overwrites c:\Python34 which
contained eg. PySide in ...\site-packages.

So far, so good. I can launch Python, IDLE and my interactive
interpreter I wrote with tkinter via a cmd in dos, .bat, ...

Now the questions. It seems all packages in \site-packages
are no more recognized.
What am I doing wrong? Why is "site-packages" no more
recognized, "forcing" sys.path does not seem to help.

From my interactive interpreter:
import PySide
Traceback (most recent call last):
sys.path
['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip',
'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs',
'C:\\Python34\\DLLs\\lib\\site-packages']

This looks like something went weird in your installation, like you
installed to 'C:\Python34\DLLs' instead of 'C:\Python34'. What path
does sys.executable give? The usual location for site-packages is
C:\Python34\Lib\site-packages, which is not listed.
 
T

Terry Reedy

I installed 3.4.1 on top of 3.4.0, Win 7, both 64-bit versions.

The installer is careful to only overwrite or delete files it installed.
The only problem one will have is if you modify a file Python installed
or add a new file where Python subsequently adds one (but that is
unlikely in bug-fix releases anyway).
So far, so good. I can launch Python, IDLE and my interactive
interpreter I wrote with tkinter via a cmd in dos, .bat, ...

Now the questions. It seems all packages in \site-packages
are no more recognized.
What am I doing wrong? Why is "site-packages" no more
recognized, "forcing" sys.path does not seem to help.

From my interactive interpreter:
import PySide
Traceback (most recent call last):
File said:
sys.path
['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip',
'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs',
'C:\\Python34\\DLLs\\lib\\site-packages']
['', 'C:\\Programs\\Python34\\Lib\\idlelib',
'C:\\Windows\\system32\\python34.zip', 'C:\\Programs\\Python34\\DLLs',
'C:\\Programs\\Python34\\lib', 'C:\\Programs\\Python34',
'C:\\Users\\Terry\\AppData\\Roaming\\Python\\Python34\\site-packages',
'C:\\Programs\\Python34\\lib\\site-packages', 'F:\\Python'

Delete \Programs to match what you should have.
This looks like something went weird in your installation, like you
installed to 'C:\Python34\DLLs' instead of 'C:\Python34'.

I suspect you nailed it.
What path does sys.executable give?
'C:\\Programs\\Python34\\pythonw.exe' (from Idle)
The usual location for site-packages is
C:\Python34\Lib\site-packages, which is not listed.

whereas the new 'C:\\Programs\\Python34\\lib\\site-packages' will be empty.
 
W

wxjmfauth

Le mercredi 21 mai 2014 00:19:37 UTC+2, Terry Reedy a écrit :
I suspect you nailed it.

Sorry, *I* did not install, the *msi* installer
did it. I had a complete mismatch, python*.exe, in DLLs
and py*.exe in c:\python34 !

Usualy, I removed then I reinstall, I did no do it
this time.

I'm very aware about all this stuff, all my apps
are running on any wins from an usb strick, including
my interactive interpreters.

I have however some more serious concerns about
cx_freeze, will spend some time soon.

FYI:
On win7, "Program Files" does no more exist. The name
is a "fake" "Programs" (without any space (finally))
which carries the name of the "linguistic" win version,
in my case c:\Programmes (French).

jmf
 
W

wxjmfauth

I really expected I worked to quickly and I did a mistake
in freezing applications. But, no. cx_freeze just re-became
problematic, __file__, bootstap, importlib and so on.

My take on the subject.
Since the introduction of this uncecessary __pycache__ mess,
I'm experimenting a lot of problems (I'm not alone).
It was too simple, logical, let's make complicate. Pure Python
development style.

jmf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top