[Tutor] install issues - third party modules

2016-08-11 Thread N Woodruff
Hello:

 

I need some help with python installation, please.

 

I have downloaded python 3.5.2, and installed it without issues on windows
7.

 

Now I cannot get Third-party modules to install.  I want to use openpyxl.

 

I get the following errors:



 



 

 

Can you give me some advice about correcting this and getting pip to install
openpyxl

 

Thank you.

 

Norm

nlwd...@gmail.com

 

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] install issues - third party modules

2016-08-11 Thread Alan Gauld via Tutor
On 11/08/16 01:16, N Woodruff wrote:

> I have downloaded python 3.5.2, and installed it without issues on windows
> 7.
> 
> Now I cannot get Third-party modules to install.  I want to use openpyxl.

How are you running pip?
It should be run from a Windows CMD prompt, NOT from
the Python >>> prompt. That's the most common mistake.

Send the exact command that you are typing.

> 
> I get the following errors:
> 
> 
> 
>  
> 
> 
> 

Unfortunately we can't see them. Can you resend.
Please make sure you are using plain text email rather
than HTML since that might be the cause of the
missing text.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Where is win32print in Windows 10 Pro

2016-08-11 Thread Ken G.
Currently in my Windows 10 Pro, 64-bit operating system, x64-bit based 
processor,


using Python-2.7.12.amd64, I have for the first few lines:

```

import os, sys

import win32print

`

and get the following error message:

`

import win32print

ImportError: No module named win32print



I have searched high and low within my Windows computer and have been 
unable to find 'win32print'. Any idea of where it is located or where I 
can obtain same. Thanks.


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Where is win32print in Windows 10 Pro

2016-08-11 Thread Steven D'Aprano
On Thu, Aug 11, 2016 at 10:28:44AM -0400, Ken G. wrote:

> import win32print
> 
> ImportError: No module named win32print
> 
> 
> 
> I have searched high and low within my Windows computer and have been 
> unable to find 'win32print'. Any idea of where it is located or where I 
> can obtain same. Thanks.

Have you searched the Internet?

https://duckduckgo.com/html/?q=win32print+python

I'm not really familiar with this specific library, but I think it may 
be part of PyWin32:

https://pypi.python.org/pypi/pywin32


which means if you have pip installed, this *may* work:

# run this from your operating system shell (command.com, cmd.exe, Powershell?)
pip install pywin32


I'm not an expert on Windows, but I hope this helps.



-- 
Steve
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Where is win32print in Windows 10 Pro [RESOLVED]

2016-08-11 Thread Ken G.


On 08/11/2016 11:34 AM, Steven D'Aprano wrote:

On Thu, Aug 11, 2016 at 10:28:44AM -0400, Ken G. wrote:


import win32print

ImportError: No module named win32print



I have searched high and low within my Windows computer and have been
unable to find 'win32print'. Any idea of where it is located or where I
can obtain same. Thanks.

Have you searched the Internet?

https://duckduckgo.com/html/?q=win32print+python

I'm not really familiar with this specific library, but I think it may
be part of PyWin32:

https://pypi.python.org/pypi/pywin32


which means if you have pip installed, this *may* work:

# run this from your operating system shell (command.com, cmd.exe, Powershell?)
pip install pywin32


I'm not an expert on Windows, but I hope this helps.
Thanks for the help so far seen here. I already installed pywin32 and no 
error is encounter in running pywin32 in the python program. 
Unfortunately, no printing is done yet. Still working on it. Your 
reference to duckduckgo.com provided a list of useful pywin32 attibutes 
but no examples was provided. Will keep looking. Thanks.


Ken

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] install issues - third party modules

2016-08-11 Thread Joaquin Alzola
> I get the following errors:
You need to put the text error not the snapshot.
This email is confidential and may be subject to privilege. If you are not the 
intended recipient, please do not copy or disclose its content but contact the 
sender immediately upon receipt.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Where is win32print in Windows 10 Pro [RESOLVED]

2016-08-11 Thread Alan Gauld via Tutor
On 11/08/16 17:14, Ken G. wrote:

> Unfortunately, no printing is done yet. Still working on it. Your 
> reference to duckduckgo.com provided a list of useful pywin32 attibutes 
> but no examples was provided. Will keep looking. Thanks.

PyWin32 is a very thin layer on top of the Win32/COM API.
You probably need to be familiar with printing in Win32 to
use PyWin to print, and that's not trivial.

If you are already familiar with printing from C/C++ it
will be straightforward but otherwise you may be better
looking at other options.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] need help

2016-08-11 Thread Pallab Amway
Respected sir

 Myself pallab kumar seal from India I am using  python2.7
in my window 7 but while  I am using python to compile my program I am
getting following  error

Programe1

age = 21

if age < 12:

print( "You ' re still a child!" )

elif age < 18:

print( "You are a teenager!" )

elif age < 30:

print( "You ' re pretty young!" )

elif age < 50:

print( "Wisening up, are we?" )

else:

print( "Aren ' t the years weighing heavy?" )

answer


expected an indented block


programe 2

x = 41

if x%7 == 0:

# --- Here starts a nested block of code ---

if x%11 == 0:

print( x, "is dividable by both 7 and 11." )

else:

print( x, "is dividable by 7, but not by 11." )

# --- Here ends the nested block of code ---

elif x%11 == 0:

print( x, "is dividable by 11, but not by 7." )

else:

print( x, "is dividable by neither 7 nor 11." )

answer

expected an indented block

yours faithfully

pallab kumar seal
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Where is win32print in Windows 10 Pro [RESOLVED]

2016-08-11 Thread Ken G.


On 08/11/2016 01:19 PM, Alan Gauld via Tutor wrote:

On 11/08/16 17:14, Ken G. wrote:
Unfortunately, no printing is done yet. Still working on it. Your 
reference to duckduckgo.com provided a list of useful pywin32 
attibutes but no examples was provided. Will keep looking. Thanks.
PyWin32 is a very thin layer on top of the Win32/COM API. You probably 
need to be familiar with printing in Win32 to use PyWin to print, and 
that's not trivial. If you are already familiar with printing from 
C/C++ it will be straightforward but otherwise you may be better 
looking at other options.
Finally got it printing. Gosh, it is a whole new ball game in a new 
whole ball park stadium. Loading up on soda pops and popcorns. Yep, you 
got it right, absolutely NOT trivial. GRRR.


Thanks to all for providing guidance of where to go and look.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] need help

2016-08-11 Thread boB Stepp
On Aug 11, 2016 12:15 PM, "Pallab Amway"  wrote:
>
> Respected sir
>
>  Myself pallab kumar seal from India I am using
python2.7
> in my window 7 but while  I am using python to compile my program I am
> getting following  error
>
> Programe1
>
> age = 21
>
> if age < 12:
>
> print( "You ' re still a child!" )
>
> elif age < 18:
>
> print( "You are a teenager!" )
>
> elif age < 30:
>
> print( "You ' re pretty young!" )
>
> elif age < 50:
>
> print( "Wisening up, are we?" )
>
> else:
>
> print( "Aren ' t the years weighing heavy?" )
>
> answer
>
>
> expected an indented block
>

Do you understand how Python uses consistent indentation to delineate
blocks of code?  If not, then you need to research this.

Also, you say you're using Python 2.7.  Python 2.x uses print *statements*
=> no parentheses, while Python 3.x uses print *functions*.  Something else
to read up on.

Hope this gives you enough hints to work through your current problems!

And I hope sending from my phone results in a plain text format!

boB

P.S.:. Do you have a good book or online tutorial to use?  If not, there
are plenty of such resources online.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] need help

2016-08-11 Thread Michael Selik
On Thu, Aug 11, 2016 at 1:15 PM Pallab Amway  wrote:

> expected an indented block
>

if-statements must have an indented block of code. For example:
```
if age < 12:
print('You are a child')
```
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor