I WANT TO install 4.3 version ... but the MSI file is giving a DLL error ..
what should I do :/
please use REPLY ALL .. so that I get the mail to my gmail inbox--
https://mail.python.org/mailman/listinfo/python-list
(and fix up the surrounding code with an absolute path) then it runs.
But then it won't work properly for other users.
Interestingly enough, when I moved this to a Mac so I could post to
Usenet, I discovered it works fine on the Mac. Only Windows seems to be
the problem. Windows 7.
Any thoughts or suggestions?
--
https://mail.python.org/mailman/listinfo/python-list
In article ,
MRAB wrote:
> On 2015-07-10 15:27, Mark Storkamp via Python-list wrote:
> > I'm just learning Python, and I've run into trouble trying to change
> > directory to the windows My Documents directory. There's likely a better
> > way to do this
that is Python syntax.
> Maybe it is an inbuilt feature of Python's to discourage copy and pasting.
>
Absolutely not. As noted above, this is the way Python is defined to work.
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
ng!".
In addition to using print(), in some places I like using input() instead, as
in:
input('x={}, y={} --> '.format(x, y))
Then the program stops at that point so you can study it.
To continue just press , or Ctrl-C to abort.
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
On 07/15/2015 08:11 PM, Chris Angelico wrote:
On Thu, Jul 16, 2015 at 1:01 PM, Larry Hudson via Python-list
wrote:
On 07/15/2015 05:11 AM, Chris Angelico wrote:
[snip]
In addition to using print(), in some places I like using input() instead,
as in:
input('x={}, y={} -->
uniquely determined is your fundamental problem. I do not have an answer for
that. But I thought this might be a clearer description of what I think you are really looking for.
I hope I'm right. ;-) Good luck.
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
This is what I saw as the OP's underlying problem, but as I also said in my message, my
interpretation certainly could be wrong.:-)
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
mns. This large indent is annoying. The editor
mode can be set for smaller indents but the interactive mode can't -- at least I haven't found
how if it is possible.
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
form everything from collecting and analyzing data to building software and publishing
your results.
I don't know if a book is relevant to your needs, but I thought it was worth
mentioning.
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
has been called with value hello
[call(), call().test1(), call().test2('hello')]
('', (), {})
('().test1', (), {})
('().test2', ('hello',), {})
--
https://mail.python.org/mailman/listinfo/python-list
: mocked_object.test1.assert_called_with("hello")
# but this does work:
assert call().test1("hello") in mocked_object.mock_calls
I don't wanna patch each individual method. Is there no other way?
--
https://mail.python.org/mailman/listinfo/python-list
nd up against TTIP and ISDS !
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 08 Sep 2015 23:35:33 +0100, Mark Lawrence wrote:
> On 08/09/2015 20:14, Laszlo Lebrun via Python-list wrote:
>>
>> Dear group,
>> I do use Windows 7 and have a user name with diacritics.
>>
>> Whenever I am querying an extension with pip, it will fail sinc
On Wed, 09 Sep 2015 09:13:41 +0100, Tim Golden wrote:
> On 09/09/2015 08:59, Laszlo Lebrun via Python-list wrote:
>> On Tue, 08 Sep 2015 23:35:33 +0100, Mark Lawrence wrote:
>>
>>> On 08/09/2015 20:14, Laszlo Lebrun via Python-list wrote:
>>>>
>>>>
On Wed, 09 Sep 2015 00:22:31 -0700, wxjmfauth wrote:
> Yes, I know how to fix all these problems.
I know as well: have a user, which name is just plain ASCII.
But it sucks to rebuild everything...
--
Stand up against TTIP and ISDS !
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 09 Sep 2015 17:21:59 +0100, Tim Golden wrote:
> On 09/09/2015 17:16, Wolfgang Maier wrote:
>> On 09.09.2015 10:23, Chris Angelico wrote:
>>> On Wed, Sep 9, 2015 at 5:59 PM, Laszlo Lebrun via Python-list
>>> wrote:
>>>> Whenever I start PIP, I get:
&
quot;wrapper"""
> > s = f(*args, **kwargs)
> > print s
> >return str2print_wrap
> >
> > def hello(s):
> > """ Return "Hello $s" """
> > return "%s %s" % ("Hello", s)
> >
> > Questions :
> >
> > 1. Decorate the method 'hello' with 'str2printf' and write the
> > corresponding code.
> > 2. What is the effect of the decorator on a call to the new method 'hello' ?
> > 3. What is the return value of hello.__doc__
>
> Pretty sure this guy is asking us to do his homework. :-P
See Not that Easy Dude...Simple Questions are sometimes the Toughest!! KISS😜
--
https://mail.python.org/mailman/listinfo/python-list
, you are not giving one. And it does NOT need the
second (miles) parameter that you originally wrote. What you want is:
convert_kilo(kilo)
I hope you can make sense out of my explanations.
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
ilman/listinfo/python-list
write that file _without_ the line numbers, I hope.
Line numbers are sometimes used in text to discuss a Python program, but they are _NOT_ used in
an actual program.
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
running Norton, and disabled it, but still IDLE will not run. Any
suggestions?
Thank you...
Terry Alexander709-745-2953
--
https://mail.python.org/mailman/listinfo/python-list
--- On Fri, 10/23/15, Richard Hinerfeld wrote:
> From: Richard Hinerfeld
> Subject: Python 3.5.0 (32-bit) won't install to Windows XP
> To: "[email protected]"
> Date: Friday, October 23, 2015, 9:10 PM
> I am
> sending you the log with all the
Hi,I am doing an online training course to learn python but when I enter
'python' in Microsoft PowerShell as I am supposed to do I always get an error
message.
Best regards,Josephine--
https://mail.python.org/mailman/listinfo/python-list
tinfo/python-list
that time (but that was a
looonnng time ago!)
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
On 11/06/2015 05:25 AM, William Ray Wing wrote:
On Nov 5, 2015, at 10:36 PM, Larry Hudson via Python-list
wrote:
[snip]
You’re not REALLY an old timer unless you’ve used TECO.
-Bill
Agreed. I'm not really and old-timer, just old (I'm 78).
My first exposure to computers wa
ely different things.
Sorry that I'm not more specific on the 'how' to use binary files, but the subject is more
complex than a simple explanation can properly give.
-- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
On 11/10/2015 12:14 PM, Dennis Lee Bieber wrote:
On Mon, 9 Nov 2015 22:20:25 -0800, Larry Hudson via Python-list
declaimed the following:
Of course it can. The only difference a text file and a binary file is the way
it's opened.
Text files are opened with 'r' or 'w'
://mail.python.org/mailman/listinfo/python-list
ed to hours.
More confusing perhaps, but definitely shorter.
As I said above, use it if you want or ignore it if it's too confusing.
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
ng about a group that ignores posts by people who don't use real names! :-)
I generally ignore his posts as well.
-=- Larry -=- <-- My real name, which is NOT Lawrence (or anything
similar)!
--
https://mail.python.org/mailman/listinfo/python-list
a bit hard to find. Why are you
putting the 32-bit version out front and center, and not offering an option for
the 64-bit right next to it?
Best wishes,
Robert Z.
P.S. I'm running Vista, so my PC is a bit old, but it is in fact 64-bit, and
Python 3.2 still runs fine on it.
--
https://mail.python.org/mailman/listinfo/python-list
, methods);
}
setup_cmethod.py =======
from distutils.core import setup, Extension
module1 = Extension('cmethod', sources = ['cmethod.c'])
setup (name = 'cmethod',
version = '0.1',
description = 'struggling to implement a class method in C',
ext_modules = [module1])
robert
--
https://mail.python.org/mailman/listinfo/python-list
great list of tutorials there!
https://wiki.python.org/moin/BeginnersGuide/Programmers
--
https://mail.python.org/mailman/listinfo/python-list
print ("Your name is ", myname)
Your name is John
...you can find code samples in the *quick tutorial listed here:
https://wiki.python.org/moin/BeginnersGuide/Programmers
*http://hetland.org/writing/instant-python.html
--
https://mail.python.org/mailman/listinfo/python-list
leave them out and directly use 0 and 1 in those final print()s.
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
[...] += 1 increments the appropriate counter value.
Broken down that way it’s not too hard to understand, is it? :-)
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
Thank you, with your help, we have added events on the t-shirt.
Now, Could you just add them on python.org/events ?
Have a nice day,
Stephane
On 9 Jan 2017, at 10:54, Stephane Wirtel via Python-list wrote:
Dear Community,
For the PythonFOSDEM [1] on 4th and 5th February in Belgium, I would
thing I find annoying about an editor set to expand
tabs to spaces is that it takes one keypress to indent but four (or whatever) to unindent.
--
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
/listinfo/python-list
4', 'cyta.gr')
How should i write the cursor.execute in order to be parsed properly?
As i have it now %s does not get substituted.
You don't get the substitution because you're missing a %.
Change:
... LIKE "%s"''', (pID, ...
To:
... LIKE "%s"''' % (pID, ...
--
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
Can anyone explain please.
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
I tried the following codes:
import urllib2response =
urllib2.urlopen('http://cordis.europa.eu/search/result_en?q=uk&format=csv')myCSV
= response.read()
myFile = pd.read_csv(myCSV)
but, it did not work well.
Can any one help?
Regards.
David
--
https://mail.python.org/mailman/l
there a way to capture the file?
Regards.
David
On Wednesday, 5 April 2017, 17:19, Skip Montanaro
wrote:
I'm not positive, but try passing response to read_csv() instead of reading
the bytes yourself.
Skip
On Apr 5, 2017 10:38 AM, "David Shi via Python-list"
wrote:
I was using IPython notebooks. All the sudden, it asks for password or token.
I did not set any password or token.
How do I get back to use my IPython notebooks?
Looking forward to hearing from you.
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
Is there a Python solution for turning a web page into Pandas DataFrame table?
Looking forward to hearing from you.
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
encode character u'\xa3' in position 0:
ordinal not in range(128)
Can anyone help?
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
What is the best way to convert XML document into a pandas dataframe?
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
Have a look at this example.
http://www.ebi.ac.uk/ena/data/warehouse/search?query=%22geo_circ(-0.587,-90.5713,170)%22&result=sequence_release&display=text
How to pd.read_csv into a DataFrame with multiple seperators?
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
Dear All,
Can anyone help to read a text file into a Pandas DataFrame Table?
Please see the link below.
http://www.ebi.ac.uk/ena/data/warehouse/search?query=%22geo_circ(-0.587,-90.5713,170)%22&result=sequence_release&display=text
Regards.
David
--
https://mail.python.org/mailman/listinf
be made?
Looking forward to hearing from you.
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
forward to hearing from you.
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
Which VCF reader has been well tested and proven to be robust?
Looking forward to hearing from you.
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
Any way to do that?
The link to a sample dataset is as follows:
http://www.ebi.ac.uk/ena/data/warehouse/search?query=%22geo_circ(-0.587,-90.5713,170)%22&result=sequence_release&display=text
Looking forward to hearing from you.
Regards.
David
--
https://mail.python.org/mailman/listinf
/listinfo/python-list
t.right(180)
turtle.bye()
Thank you, Harshi
--
https://mail.python.org/mailman/listinfo/python-list
n Saturday, April 22, 2017 3:56 AM, Peter Otten <[email protected]> wrote:
Harshika Varadhan via Python-list wrote:
> I am creating a game where the user inputs a coordinate to place their
> piece on a chess board. My code then draws the chess board with a turtle
> and fills in
default of "Spam" and then click "Submit report". Hopefully,
sooner or later if enough people do this Google Groups will automatically
filter out these posts. (The posts are already filtered out of the official
comp.lang.python list, but they can't do this for the Google Groups version.)
--
https://mail.python.org/mailman/listinfo/python-list
python path
install in the default location.
Any idea about that?
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
https://pypi.python.org/pypi/distlib/0.2.5
[2] https://goo.gl/M3kQzR
[3] https://bitbucket.org/pypa/distlib/issues/new
--
https://mail.python.org/mailman/listinfo/python-list
libraries and create a self
running package? Something like building exe file with static libraries.
Therefore, the user won't install any thing manually.
Please let me know if there is such procedure.
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
graph\modulegraph.py",
line 2731, in get_operation_arg_name
return module_code_object.co_names[co_names_index]
IndexError: tuple index out of range
D:\ThinkPad\Documents\NetBeansProjects\ExcelTest>
Regards,
Mahmood
On Monday, May 8, 2017 5:07 PM, Lutz Horn wrote:
> Is there any way to pack my .py with all required libraries and create a self
> running package?
Take a look at PyInstaller:
* http://www.pyinstaller.org/
* https://pyinstaller.readthedocs.io/en/stable/
Lutz
--
https://mail.python.org/mailman/listinfo/python-list
] for j in p.rows])
How can I fix that? I have stuck at this problem. For medium sized files (16K
rows and 50 columns) it is fine.
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
, May 10, 2017 7:25 PM, Peter Otten <[email protected]> wrote:
Mahmood Naderan via Python-list wrote:
> Hello,
>
> The following code which uses openpyxl and numpy, fails to read large
> Excel (xlsx) files. The file si 20Mb which contains 100K rows and 50
> colu
rows. Mine is
about 100k. Currently, the task manager shows about 4GB of ram usage while
working with numpy.
Regards,
Mahmood
On Wed, 5/10/17, Peter Otten <[email protected]> wrote:
Subject: Re: Out of memory while reading excel file
To: pytho
On Wed, 5/10/17, Peter Otten <[email protected]> wrote:
Subject: Re: Out of memory while reading excel file
To: [email protected]
Date: Wednesday, May 10, 2017, 6:30 PM
Mahmood Naderan via Python-list wrote:
> Well actually cells are treated as
strings and not integer
Hi,
I am confused with that. If you say that numpy is not suitable for my case and
may have large overhead, what is the alternative then? Do you mean that numpy
is a good choice here while we can reduce its overhead?
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
, column=c)
arr[r, c] = d.value
However, the operation is very slow. I printed row number to see how things are
going. It took 2 minutes to add 200 rows and about 10 minutes to add the next
200 rows.
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
the number of columns in my excel
file (p.max_column)
The excel file looks like
CHR1 11,202,100 NM_198576.3 PASS 3.08932G|B|C -.
. .
Note that in each row, some cells are '-' or '.' only. I want to read all cells
as string. Then I will write the matrix in a file and my main code (java) will
process that. I chose openpyxl for reading excel files, because Apache POI (a
java package for manipulating excel files) consumes huge memory even for medium
files.
So my python script only transforms an xlsx file to a txt file keeping the cell
positions and formats.
Any suggestion?
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
The ? is indeed for variable substitution, but AFAIK only for field values, not
for table names, which is why your first example doesn't work and your second
and third examples do work.
--
https://mail.python.org/mailman/listinfo/python-list
0][1] = 11,232,445
And both are strings. Is that possible?
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
second line is empty ("\n") and the third line is the
second row of the excel file.
Any thought?
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
Thanks a lot for suggestions. It is now solved.
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
is can make things hard for people coming to Python on Windows. I guess the
best that can be done for now is to recommend Annaconda or a similar distro
with lots of prebuilt stuff.
--
https://mail.python.org/mailman/listinfo/python-list
could parse 16
pages at a time. That change would require a bit more work but it would
fix some problems that's been nagging me for a while about the parser class.
Thank you,
Chris Reimer
--
https://mail.python.org/mailman/listinfo/python-list
gards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
ould possibly need.
>xxx_chunk_01 sorts less than xxx_chunk_10.
So, if I write
import glob;
for f in glob.glob('*chunk*'):
print(f)
it will print in order. Is that really sorted or it is not guaranteed?
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
hen writing them to the output until there are no
more files. Or, if a list of matching files is obtained, the length of
the list will also give you the last filename.
(But this won't work if there are gaps in the sequence or the numeric
format is variable.)
--
bartc
--
https://
ith('chunk') and right.isdigit():
filenames[int(right)] = filename
sorted_filenames = [ filenames[k] for k in sorted(filenames.keys()) ]
It seems that 'filename' should be 'right'.
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
. So 'right' is just the numeric suffix - you need 'name' for the
open() call.
Cheers,
Cameron Simpson
--
https://mail.python.org/mailman/listinfo/python-list
html
--
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
hmood
--
https://mail.python.org/mailman/listinfo/python-list
No idea?...
Regards,
Mahmood
On Tuesday, May 30, 2017 1:06 AM, Mahmood Naderan via Python-list
wrote:
Hello,
How it is possible to embed a package in my project? I mean, in my python
script I have written
import openpyxl
So, the user may not have installed that package and doesn
y 30 12:26 requires.txt
-rw-r--r-- 1 root root 5224 May 30 12:26 SOURCES.txt
-rw-r--r-- 1 root root 9 May 30 12:26 top_level.txt
Any idea to fix that?
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
AM, Mahmood Naderan via Python-list
> wrote:
>
>
>
> Hello,
>
> How it is possible to embed a package in my project? I mean, in my python
> script I have written
>
>
> import openpyxl
>
>
> So, the user may not have installed that packag
On Tuesday, May 30, 2017 2:09 PM, Wolfgang Maier
wrote:
--
https://mail.python.org/mailman/listinfo/python-list
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named openpyxl
But
$ find /opt -name openpyxl
/opt/rocks/lib/python2.6/site-packages/openpyxl
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
multiple versions of python and it seems that the search
location of pip and python are different. I will try to modify the path to see
what is what.
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
How to make sure the result of Pandas.to_csv does not have non-ASCII code?
Regards,
David
--
https://mail.python.org/mailman/listinfo/python-list
oint out that a 'character' is NOT a data type in
Python, in the same sense as it is in other languages.
--
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
ps://mail.python.org/mailman/listinfo/python-list
ps://mail.python.org/mailman/listinfo/python-list
Maybe... But specifically in my case, the excel file is exported from a web
page. I think there should be a way to read the content as a pure text.
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
to formatting.
Regards,
Mahmood
--
https://mail.python.org/mailman/listinfo/python-list
OK thank you very much. As you said, it seems that it is too late for my python
script.
Regards,
Mahmood
On Monday, June 5, 2017 10:41 PM, Dennis Lee Bieber
wrote:
On Mon, 5 Jun 2017 14:46:18 + (UTC), Mahmood Naderan via Python-list
declaimed the following:
>>if the cell
;
I did a fresh installation of both versions separately (almost all the
combinations) but nothing concluded.
It's pissing me off since 2 days. Please help me out!!
Thank you!
--
https://mail.python.org/mailman/listinfo/python-list
dule is useful, personally, I've
switched to using APSW which I've found to be extremely reliable and gives much
more access to SQLite functionality: https://rogerbinns.github.io/apsw/
--
https://mail.python.org/mailman/listinfo/python-list
qlite part of the standard lib? Shouldn't this just work?
Try:
>>> import sqlite3 # no leading underscore
--
https://mail.python.org/mailman/listinfo/python-list
4901 - 5000 of 5869 matches
Mail list logo