tware or interest.
-Original Message-
From: Tutor On Behalf Of
Alan Gauld via Tutor
Sent: Tuesday, September 3, 2024 4:41 AM
To: tu...@python.org
Cc: python-list@python.org
Subject: Re: [Tutor] Getting a Process.start() error pickle.PicklingError:
Can't pickle : it's not found
On 9/2/24 11:36, Barry Scott wrote:
On 2 Sep 2024, at 15:00, marc nicole via Python-list
wrote:
I am using Python 2.7 on Windows 10
Why? Install Python 3.12 and it will be easier to get help and support.
If you have legacy that still needs porting then you can install 3.12 along side
the
at 2.7 is unsupported and has
> been for many years now. Its also inferior in most
> respects including its error reporting.
> If possible you should upgrade to 3.X
>
> > from multiprocessing import Process
> > def do_something(text):
> > print(text)
> > if __n
> On 2 Sep 2024, at 15:00, marc nicole via Python-list
> wrote:
>
> I am using Python 2.7 on Windows 10
Why? Install Python 3.12 and it will be easier to get help and support.
If you have legacy that still needs porting then you can install 3.12 along side
the unsupported 3.12.
Barry
--
):
print(text)
if __name__ == "__main__":
q = Process(target=do_something,args=("somecmd") )
q.start()
# following code should execute right after the q.start() call (not
until it returns)
.
But getting the error at the call of Process().start():
pickle.
On 8/28/2024 8:07 PM, dn via Python-list wrote:
On 29/08/24 10:32, Thomas Passin via Python-list wrote:
On 8/28/2024 5:09 PM, Daniel via Python-list wrote:
As you all have seen on my intro post, I am in a project using Python
(which I'm learning as I go) using the wikimedia API to pull data fro
On Wed, 28 Aug 2024 22:09:56 +0100, Daniel wrote:
> if definition:
> print(f"\n{word_type.capitalize()}\n")
> print("\n".join(definition))
> break
I don't know if that was intended but the 'break' kicks you out of
On 29/08/24 10:32, Thomas Passin via Python-list wrote:
On 8/28/2024 5:09 PM, Daniel via Python-list wrote:
As you all have seen on my intro post, I am in a project using Python
(which I'm learning as I go) using the wikimedia API to pull data from
wiktionary.org. I want to parse the json and ou
On 8/28/2024 5:09 PM, Daniel via Python-list wrote:
As you all have seen on my intro post, I am in a project using Python
(which I'm learning as I go) using the wikimedia API to pull data from
wiktionary.org. I want to parse the json and output, for now, just the
definition of the word.
Wiktiona
As you all have seen on my intro post, I am in a project using Python
(which I'm learning as I go) using the wikimedia API to pull data from
wiktionary.org. I want to parse the json and output, for now, just the
definition of the word.
Wiktionary is wikimedia's dictionary.
My requirements for v1
On Aug 13, 2024 15:29, Barry Scott via Python-list
wrote:
> Could not find file 'C:\Users\Charl\OneDrive\Documents\The Sims 4 Mod
Constructor\Projects\MetalMummysMods_Ehlers-DanlosMod\Python\__pycache__\MetalMummysMods_Ehlers-DanlosMod.cpython-37.pyc'.
> Element ID: (No Elem
> On 11 Aug 2024, at 13:06, Charlotte Plant via Python-list
> wrote:
>
> Hiya, I'm using the sims 4 mod constructor by Zerbu, and when saving I'm
> getting these error codes.
> I'm going around in circles trying to figure out what is causing it, and I&
Hiya, I'm using the sims 4 mod constructor by Zerbu, and when saving I'm
getting these error codes.
I'm going around in circles trying to figure out what is causing it, and I'm
stuck!
Can you help please?
Thank you.
Errors:
There was an error compiling the generated Pyt
On 5/29/2024 10:59 AM, MRAB via Python-list wrote:
On 2024-05-29 15:32, Thomas Passin via Python-list wrote:
On 5/29/2024 8:55 AM, Kevin M. Wilson wrote:
Please recall, I said the format for the email failed to retain the
proper indents.
I'll attach a picture of the code!
Purpose; to uppercase
On 2024-05-29, Mats Wichmann via Python-list wrote:
> On 5/29/24 08:02, Grant Edwards via Python-list wrote:
>> On 2024-05-29, Chris Angelico via Python-list wrote:
>>
>>> print(f"if block {name[index]=} {index=}")
>>
>> Holy cow! How did I not know about the f-string {=} thing?
>
> It's more
On 2024-05-29 15:32, Thomas Passin via Python-list wrote:
On 5/29/2024 8:55 AM, Kevin M. Wilson wrote:
Please recall, I said the format for the email failed to retain the
proper indents.
I'll attach a picture of the code!
Purpose; to uppercase every other letter in a string.
Thanks all, KMW
> On 29 May 2024, at 05:38, Kevin M. Wilson via Python-list
> wrote:
>
> The format in this email is not of my making, should someone know, how to do
> this so that it's a readable script do tell!
> KMW
Your mail program may have a plain-text mode to compose messages in try using
that.
B
On 5/29/2024 8:55 AM, Kevin M. Wilson wrote:
Please recall, I said the format for the email failed to retain the
proper indents.
I'll attach a picture of the code!
Purpose; to uppercase every other letter in a string.
Thanks all, KMW
Simpler is good, and readability is good. For a simple con
On 5/29/24 08:02, Grant Edwards via Python-list wrote:
On 2024-05-29, Chris Angelico via Python-list wrote:
print(f"if block {name[index]=} {index=}")
Holy cow! How did I not know about the f-string {=} thing?
It's more recent than f-strings in general, so it's not that hard to miss.
--
On 2024-05-29, Chris Angelico via Python-list wrote:
> print(f"if block {name[index]=} {index=}")
Holy cow! How did I not know about the f-string {=} thing?
--
Grant
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 29 May 2024 at 23:06, Dan Sommers via Python-list
wrote:
> (For the history-impaired, getopt existed long before Python and will
> likely exist long after it, but getopt's "replacement" optparse lasted
> only from 2003 until 2011.)
Depends on your definition of "lasted". It's not getting
On 2024-05-29 at 17:14:51 +1000,
Chris Angelico via Python-list wrote:
> I wouldn't replace str.format() everywhere, nor would I replace
> percent encoding everywhere - but in this case, I think Thomas is
> correct. Not because it's 2024 (f-strings were brought in back in
> 2015, so they're hardl
On 5/29/2024 3:14 AM, Chris Angelico via Python-list wrote:
On Wed, 29 May 2024 at 16:03, Cameron Simpson via Python-list
wrote:
By which Thomas means stuff like this:
print(f'if block {name[index]} and index {index}')
Notice the leading "f'". Personally I wouldn't even go that far, jus
seif block, index is {}, letter is {}'.format(index, name)) # print('letter
to lower = {}'.format(name[index])) # print('Already lowercase do noting:
name = {}'.format(name[index])) index += 1 # index = name.upper()
return name
myf
On Wed, 29 May 2024 at 16:03, Cameron Simpson via Python-list
wrote:
> By which Thomas means stuff like this:
>
> print(f'if block {name[index]} and index {index}')
>
> Notice the leading "f'". Personally I wouldn't even go that far, just:
>
> print('if block', name[index], 'and index',
On 29May2024 01:14, Thomas Passin wrote:
Also, it's 2024 ... time to start using f-strings (because they are
more readable than str.format())
By which Thomas means stuff like this:
print(f'if block {name[index]} and index {index}')
Notice the leading "f'". Personally I wouldn't even go t
(name[index])) # print('Already lowercase do noting:
name = {}'.format(name[index])) index += 1 # index = name.upper()
return name
myfunc('capitalism')
Error message: Not making sense, index is 1, letter s/b
'a'
ubbed it in the second interation through the string: range error... HOW?
The following is my effort to understand how to process a string, letter, by
letter:
def myfunc(name): index = 0 howmax = len(name) # while (index <=
howmax): while (index < howmax): if (index % 2 ==
e)) # print('letter to lower =
{}'.format(name[index])) # print('Already lowercase do noting: name
= {}'.format(name[index])) index += 1 # index = name.upper()
return name
myfunc('capitalism')
Error mes
When running the code below , I get error as enumerated below. Why am I
not able to trap this paramiko runtime traceback in try-except block ?
Exception (client): Error reading SSH protocol banner
Traceback (most recent call last):
File
"/home/uzi/.local/lib/python3.8/site-packages/par
he application
I think I have seen this error being discussed before…
A web search for pyinstaller and that error leads to people discussing why it
happens it looks like.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
eptance is versatile..."
On 2024/03/31 14:51, Barry wrote:
On 31 Mar 2024, at 13:24, Jacob Kruger via Python-list
wrote:
pkg_resources.DistributionNotFound: The 'altgraph' distribution was not found
and is required by the application
I think I have seen this error being
ote:
>>>
>>> pkg_resources.DistributionNotFound: The 'altgraph' distribution was not
>>> found and is required by the application
>> I think I have seen this error being discussed before…
>>
>> A web search for pyinstaller and that error leads to people discussing why
>> it happens it looks like.
>>
>> Barry
>>
>>
> --
> https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
'altgraph' distribution was not found
and is required by the application
I think I have seen this error being discussed before…
A web search for pyinstaller and that error leads to people discussing why it
happens it looks like.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
> On 31 Mar 2024, at 13:24, Jacob Kruger via Python-list
> wrote:
>
> pkg_resources.DistributionNotFound: The 'altgraph' distribution was not found
> and is required by the application
I think I have seen this error being discussed before…
A web search for pyinsta
This started happening this past week, and, while it's worked fine in
the past, the moment I try to launch the pyinstaller process at all, to
generate compiled output, or even if just launch it with no command line
options, I receive the following error me
Thank you for the information.
On Mon, Mar 11, 2024, 22:36 wrote:
> Sanskar Mukeshbhai Joshi wrote at 2024-3-10 18:08 +:
> >I had made my project in BCA in Python. When I had complete my project
> and run the program, at that time I got the error in runnig my project. The
Sanskar Mukeshbhai Joshi wrote at 2024-3-10 18:08 +:
>I had made my project in BCA in Python. When I had complete my project and run
>the program, at that time I got the error in runnig my project. The error was
>ModuleNotFoundError: No module named 'flask'.
`flask`
On 10/03/2024 18:08, Sanskar Mukeshbhai Joshi via Python-list wrote:
> I had made my project in BCA in Python. When I had complete my
> project and run the program, at that time I got the error in
> runnig my project. The error was ModuleNotFoundError: No module named 'flask'
Respected Sir/Ma'am
I had made my project in BCA in Python. When I had complete my project and run
the program, at that time I got the error in runnig my project. The error was
ModuleNotFoundError: No module named 'flask'.
I request you to check this problem and resolve it or gu
now I get:
File e:\getmodpot.py:40
fig,ax = initPlot()
File E:\mystuff.py:272 in initPlot
fig,ax = plt.subplots(figsize=(xs,ys))
File ~\anaconda3\Lib\site-packages\matplotlib\pyplot.py:1501 in subplots
fig = figure(**fig_kw)
File ~\anaconda3\Lib\site-packages\matplotlib\_api\d
On Sunday, February 18, 2024 at 10:48:29 PM UTC+3, Leif Svalgaard wrote:
> The latest[?] version of Matplotlib cannot show a figure. I get the
> annoying error message: "Matplotlib is currently using agg, which is a
> non-GUI backend, so cannot show the figure"
> I'm
The latest[?] version of Matplotlib cannot show a figure. I get the
annoying error message: "Matplotlib is currently using agg, which is a
non-GUI backend, so cannot show the figure"
I'm using Spyder python 3.11 on Windows 11.
What to do?
--
Leif Svalgaard
l...@lei
On 2024-02-03 23:02, gelukt gelukt via Python-list wrote:
Dear,
While running a code, I get the error below:
What does this error mean? How can I fix this error?
C:\Users\brech\Desktop\Crypto\venv\Scripts\python.exe
"C:/Users/brech/Desktop/Crypto/Project/aaa Arbitrage.py"
Trace
Dear,
While running a code, I get the error below:
What does this error mean? How can I fix this error?
C:\Users\brech\Desktop\Crypto\venv\Scripts\python.exe
"C:/Users/brech/Desktop/Crypto/Project/aaa Arbitrage.py"
Traceback (most recent call last):
File "C:\Users\brech\Desktop
On 2023-10-30 19:19, McDermott Family via Python-list wrote:
Hello, I am trying to create a one file executable with pyinstaller 6.1.0
and auto-py-to-exe 2.41.0 using Python version 3.10.9 in a virtual
environment.
Some points before the output of pinstaller is shown. My resource .py file
is the
This isn't an error.
This is just a normal Python Header message announcing that you are
using Python 3.11.3
The rest is just information from the build system : The build Id, the
date/time the build was made, and the version of the compiler.
There is nothing to fix.
-- Ori
On 27/09/23 3:30 pm, Chris Roy-Smith wrote:
surely running a 64 bit version of python in a 23mbit version of windows
will cause significant problems!
23 millibits? I don't think you'd be able to run much at all
with that few bits! :-)
--
Greg
--
https://mail.python.org/mailman/listinfo/python-
On 2023-09-27 03:30, Chris Roy-Smith via Python-list wrote:
On 26/9/23 22:27, Abdelkhelk ashref salay eabakh via Python-list wrote:
Dear Python team,
This is my not first time using Python, I tried to launch Python and it showed
I'm no expert but
"Python 3.11.3 (tags/v3.11.3:f3909b8, Apr
On 26/9/23 22:27, Abdelkhelk ashref salay eabakh via Python-list wrote:
Dear Python team,
This is my not first time using Python, I tried to launch Python and it showed
I'm no expert but
"Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit
(AMD64)] on win
surel
right", "credits" or "license" for more information." I
don't know what this meant and how to fix this. Could you please help me?
What error did you encounter? Aside from the lack of line breaks, it looks
quite similar to what I get when I start up python:
Python
Dear Python team,
This is my not first time using Python, I tried to launch Python and it showed
"Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information." I
don't know what this meant a
On Sun, Aug 27, 2023, at 17:19, Rob Cliffe via Python-list wrote:
> I understand that this is an error: I'm telling the f-string to expect
> an integer when in fact I'm giving it a Decimal.
> And indeed f"{x:3}" gives ' 42' whether x is an int or a Decim
I am currently using Python 3.11.4.
First I want to say: f-strings are great! I use them all the time,
mostly but by no means exclusively for debug messages. And in 3.12 they
will get even better.
And the improved error messages in Python (since 3.9) are great too!
Keep up the good work
When i try to open a python script it either says theres no ctk module or
no pip
On Sun, Aug 6, 2023, 3:51 PM Peter J. Holzer via Python-list <
python-list@python.org> wrote:
> Mostly, error messages got a lot better in Python 3.10, but this one had
> me scratching my head for a
On 07Aug2023 08:02, Barry wrote:
On 7 Aug 2023, at 05:28, Cameron Simpson via Python-list
wrote:
Used to use a Pascal compiler once which was uncannily good at
suggesting where you'd missing a semicolon.
Was that on DEC VMS? It was a goal at DEC for its compilers to do this well.
No, a PD
> On 7 Aug 2023, at 05:28, Cameron Simpson via Python-list
> wrote:
>
> Used to use a Pascal compiler once which was uncannily good at suggesting
> where you'd missing a semicolon.
Was that on DEC VMS? It was a goal at DEC for its compilers to do this well.
They could output the errors in a
On 06Aug2023 22:41, Peter J. Holzer wrote:
Mostly, error messages got a lot better in Python 3.10, but this one had
me scratching my head for a few minutes.
Consider this useless and faulty script:
r = {
"x&quo
On 07/08/2023 08.41, Peter J. Holzer via Python-list wrote:
Mostly, error messages got a lot better in Python 3.10, but this one had
me scratching my head for a few minutes.
...
The error message is now a lot better, of course, but the fact that it
points at the expression *before* the error
Mostly, error messages got a lot better in Python 3.10, but this one had
me scratching my head for a few minutes.
Consider this useless and faulty script:
r = {
"x": (1 + 2 + 3)
"y": (4 + 5 + 6)
On 5/26/2023 8:30 PM, giuseppacef...@gmail.com wrote:
I have reinstalled python which reinstalls pip. I have added the
path:'C:\sers\Giuseppa\AppData\Local\Packages\PythonSoftwareFoundation.Pytho
n.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts and still
get the error
On 2023-05-27 01:30, giuseppacef...@gmail.com wrote:
I have reinstalled python which reinstalls pip. I have added the
path:'C:\sers\Giuseppa\AppData\Local\Packages\PythonSoftwareFoundation.Pytho
n.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts and still
get the error
: giuseppacef...@gmail.com
Sent: Friday, May 26, 2023 8:31 PM
To: python-list@python.org
Subject: Module error
I have reinstalled python which reinstalls pip. I have added the
path:'C:\sers\Giuseppa\AppData\Local\Packages\PythonSoftwareFoundation.Pytho
n.3.11_qbz5n2kfra8p0\LocalCache\local-pac
Dir(s) 378,485,805,056 bytes free
From: giuseppacef...@gmail.com
Sent: Friday, May 26, 2023 8:31 PM
To: python-list@python.org
Subject: Module error
I have reinstalled python which reinstalls pip. I have added the
path:'C:\sers\Giuseppa\AppData\Local\Packages\PythonSoftwareFoundation.
I have reinstalled python which reinstalls pip. I have added the
path:'C:\sers\Giuseppa\AppData\Local\Packages\PythonSoftwareFoundation.Pytho
n.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts and still
get the error below. Could you help me with this please?
Traceback
ne? A really
quick try shows several hits, including some StackOverflow articles.
There's no way for us to judge if any of those scenarios actually would
apply to your case, so suggesting you take a look first.
the error I get when I try to upgrade or install a package for example
pip insta
Hi there, I hope you are in a great health
I am having a problem with python even though I uninstall and reinstall it
again multiple times
the error I get when I try to upgrade or install a package for example
pip install requests
I get this error which I could not find a solution for
pip
PyObject* str_value = PyObject_Repr(pyExcValue);
PyObject* pyExcValueStr = PyUnicode_AsEncodedString(str_value, "utf-8",
"Error ~");
const char *strErrValue = PyBytes_AS_STRING(pyExcValueStr);
//where strErrValue = "ImportError('Error: Reinit is f
String(str_value, "utf-8",
"Error ~");
const char **strErrValue* = PyBytes_AS_STRING(pyExcValueStr);
//where *strErrValue* = "ImportError('Error: Reinit is forbidden')"
...
}
What we imported is a Python file which import some pyd libraries.
Thanks
Jason
> On 17 May 2023, at 20:35, Jason Qian via Python-list
> wrote:
>
> Hi,
>
> I Need some of your help.
>
> I have the following C code to import *Import python.* It works 99% of
> the time, but sometimes receives "*ImportError('Error: Reinit
Hi,
I Need some of your help.
I have the following C code to import *Import python.* It works 99% of
the time, but sometimes receives "*ImportError('Error: Reinit is
forbidden')*". error.
**We run multiple instances of the app parallelly.
*** Python version(3.7.
On 5/17/2023 10:54 AM, Aysu Mammadli wrote:
I encountered an error while attempting to install pip using the terminal.
The exact error message I received is:
"An error occurred during configuration: option use-feature: invalid
choice: '2020-resolver' (choose from 'fast-deps
> On 17 May 2023, at 17:26, Aysu Mammadli wrote:
>
> I encountered an error while attempting to install pip using the terminal.
> The exact error message I received is:
>
> "An error occurred during configuration: option use-feature: invalid
> choice: '2020-re
I encountered an error while attempting to install pip using the terminal.
The exact error message I received is:
"An error occurred during configuration: option use-feature: invalid
choice: '2020-resolver' (choose from 'fast-deps', 'truststore',
'no-bi
is my pickled object",{my_pickeld_object},)
with open('file.pkl', 'rb') as file:
number=pickle.load(file)
my_unpickeled_object=pickle.loads(my_pickeld_object)
print("this is my unpickeled object",{my_unpickeled_object},)
but now i get error
Traceback (most recent c
3 at 04:55:41 PM, Chris Green wrote:
> > > > > I'm sure I'm missing something obvious here but I can't see an
> elegant
> > > > > way to do this. I want to create a directory, but if it exists
> it's
> > > > > not an e
be I only say this because it has happened to me too many times but
> before ignoring the error in the 'except' branch, I would make sure that
> if the name exists it is a folder and not a file.
>
That's a fair consideration, although the other way to handle that is
to allow
Stefan Ram ha scritto:
jak writes:
Maybe I only say this because it has happened to me too many times but
before ignoring the error in the 'except' branch, I would make sure that
if the name exists it is a folder and not a file.
If the name exists and it is a file's nam
us here but I can't see an elegant
> > > > way to do this. I want to create a directory, but if it exists it's
> > > > not an error and the code should just continue.
> > > >
> > > > So, I have:-
> > > >
> > >
Chris Angelico ha scritto:
Using mkdirs when you only want to make one is inviting problems of
being subtly wrong, where it creates too many levels of directory.
Personally, I would just do:
Maybe I only say this because it has happened to me too many times but
before ignoring the error in
Kushal Kumaran wrote:
> On Fri, Apr 28 2023 at 04:55:41 PM, Chris Green wrote:
> > I'm sure I'm missing something obvious here but I can't see an elegant
> > way to do this. I want to create a directory, but if it exists it's
> > not an error and the
ant to create a directory, but if it exists it's
> > > not an error and the code should just continue.
> > >
> > > So, I have:-
> > >
> > > for dirname in listofdirs:
> > > try:
> > > os.mkdir(dir
On 30/04/23 2:43 am, jak wrote:
Maybe I expressed myself badly but I didn't mean to propose alternatives
to the EAFP way but just to evaluate the possibility that it is not a
folder.
If it's not a folder, you'll find out when the next thing you
try to do to it fails.
You could check for it ear
require a loss of simplicity.
-Original Message-
From: Python-list On
Behalf Of Kushal Kumaran
Sent: Saturday, April 29, 2023 12:19 AM
To: python-list@python.org
Subject: Re: How to 'ignore' an error in Python?
On Fri, Apr 28 2023 at 04:55:41 PM, Chris Green wrote:
>
On Sat, 29 Apr 2023 at 14:27, Kushal Kumaran wrote:
>
> On Fri, Apr 28 2023 at 04:55:41 PM, Chris Green wrote:
> > I'm sure I'm missing something obvious here but I can't see an elegant
> > way to do this. I want to create a directory, but if it exists it'
On Fri, Apr 28 2023 at 04:55:41 PM, Chris Green wrote:
> I'm sure I'm missing something obvious here but I can't see an elegant
> way to do this. I want to create a directory, but if it exists it's
> not an error and the code should just continue.
>
>
On 28Apr2023 10:39, Mats Wichmann wrote:
For this specific case, you can use os.makedirs:
os.makedirs(dirname, exist_ok=True)
I'm not a great fan of makedirs because it will make all the missing
components, not just the final one. So as an example, if you've got a
NAS mounted backup area at
On 28Apr2023 16:55, Chris Green wrote:
for dirname in listofdirs:
try:
os.mkdir(dirname)
except FileExistsError:
# so what can I do here that says 'carry on regardless'
except:
# handle any other error, which is reall
On 4/28/23 11:05, MRAB wrote:
On 2023-04-28 16:55, Chris Green wrote:
I'm sure I'm missing something obvious here but I can't see an elegant
way to do this. I want to create a directory, but if it exists it's
not an error and the code should just continue.
So, I have:-
On 2023-04-28 16:55, Chris Green wrote:
I'm sure I'm missing something obvious here but I can't see an elegant
way to do this. I want to create a directory, but if it exists it's
not an error and the code should just continue.
So, I have:-
for dirname in list
On 4/28/23 09:55, Chris Green wrote:
I'm sure I'm missing something obvious here but I can't see an elegant
way to do this. I want to create a directory, but if it exists it's
not an error and the code should just continue.
So, I have:-
for dirname in list
I'm sure I'm missing something obvious here but I can't see an elegant
way to do this. I want to create a directory, but if it exists it's
not an error and the code should just continue.
So, I have:-
for dirname in listofdirs:
try:
os.mkdir(dir
#x27;, 'rb') as file:
number=pickle.load(file)
my_unpickeled_object=pickle.loads(my_pickeld_object)
print("this is my unpickeled object",{my_unpickeled_object},)
but now i get error
Traceback (most recent call last):
File "C:\Users\lukwi\Desktop\python\tester2.py
e:
number=pickle.load(file)
my_unpickeled_object=pickle.loads(my_pickeld_object)
print("this is my unpickeled object",{my_unpickeled_object},)
but now i get error
Traceback (most recent call last):
File "C:\Users\lukwi\Desktop\python\tester2.py", line 5, in
with open('file.pkl
When I using pip list, it tells me there is a new release of pip is available,
but I got these error messages when I upgrading pip. I don’t know what happened
it is.
PS C:\Users\USER> pip --version pip
pip 23.0.1 from
C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\pip (pyt
On Tue, 7 Mar 2023 at 16:53, Stephen Tucker wrote:
>
> Hi again,
>
> I tried xrange, but I got an error telling me that my integer was too big
> for a C long.
>
> Clearly, xrange in Py2 is not capable of dealing with Python (that is,
> possibly very long) integers.
Th
Hi again,
I tried xrange, but I got an error telling me that my integer was too big
for a C long.
Clearly, xrange in Py2 is not capable of dealing with Python (that is,
possibly very long) integers.
I am raising this because,
(a) IF xrange in Py3 is a simple "port" from Py2, the
On 2023-03-02, Stephen Tucker wrote:
> The range function in Python 2.7 (and yes, I know that it is now
> superseded), provokes a Memory Error when asked to deiliver a very long
> list of values.
>
> I assume that this is because the function produces a list which it then
>
On Thu, 2 Mar 2023 at 22:27, Stephen Tucker wrote:
>
> Hi,
>
> The range function in Python 2.7 (and yes, I know that it is now
> superseded), provokes a Memory Error when asked to deiliver a very long
> list of values.
>
> I assume that this is because the function produ
On 2023-03-02 at 11:25:49 +,
Stephen Tucker wrote:
> The range function in Python 2.7 (and yes, I know that it is now
> superseded), provokes a Memory Error when asked to deiliver a very long
> list of values.
>
> I assume that this is because the function produces a lis
1 - 100 of 1171 matches
Mail list logo