Re: Installation does not work fro GitBash command line

2022-08-24 Thread J.O. Aho



On 23/08/2022 13.00, Gladstone Rose wrote:

Why is my installation of Python does not work at the command line for git bash.

I get the following message
bash: python3: command not found


It can be that you need to use python.exe instead of python3.exe, see my 
work computers response when using git bash:


result from tabbing python:
$ python
python.exepython3.dll   python3.exe   python39.dll  pythonw.exe

run python3:
$ python3.exe --version
Python was not found; run without arguments to install from the 
Microsoft Store, or disable this shortcut from Settings > Manage App 
Execution Aliases.


run python:
$ python.exe --version
Python 3.9.7


You could always install a proper OS that provides you a bash out of the 
box.


--
  //Aho
--
https://mail.python.org/mailman/listinfo/python-list


Re: INSTALLATION DOES NOT WORK FRO GITBASH COMMAND LINE

2022-08-24 Thread Mats Wichmann
On 8/23/22 05:00, Gladstone Rose wrote:
> Why is my installation of Python does not work at the command line for git 
> bash.
> 
> I get the following message
> bash: python3: command not found

The git bash package for Windows is built from msys2, a GNU/Linux type
environment which is only provisioned with tools that are deemed
necessary for the operation of git. Which happens not to include Python.
You can add it there, although it's not entirely trivial, because the
git-bash setup also doesn't include the pacman package manager, which
would make the install trivial.

-- 
https://mail.python.org/mailman/listinfo/python-list


ImportError: No module named spambayes.resources (line 12 of setup_all.py)

2022-08-24 Thread Erik M. Brown via Python-list
Is anyone here familiar with SpamBayes?  I am working with legacy 2.4.x
Python code (I'm not a programmer, more of a power user) and I'm attempting
to build the windows binary from the SpamBayes source.  

 

I'm running into an error when attempting to run "setup_all.py", the py2exe
setup script, and I get the following:

 

"ImportError: No module named spambayes.resources (line 12 of setup_all.py)"

 

I'm able to run Spambayes from these source files in Outlook and have the
correct python version, pywin32, as well as py2exe (2.4.x).

 

Any idea on how to resolve this module import error?  I can provide files
and/or more details as well.

 

Thank you all for the help!

 

Take care,

 

Erik Brown

 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ImportError: No module named spambayes.resources (line 12 of setup_all.py)

2022-08-24 Thread Mats Wichmann
On 8/24/22 13:54, Erik M. Brown via Python-list wrote:
> Is anyone here familiar with SpamBayes?  I am working with legacy 2.4.x
> Python code (I'm not a programmer, more of a power user) and I'm attempting
> to build the windows binary from the SpamBayes source.  
> 
>  
> 
> I'm running into an error when attempting to run "setup_all.py", the py2exe
> setup script, and I get the following:
> 
>  
> 
> "ImportError: No module named spambayes.resources (line 12 of setup_all.py)"


Wow, that's a blast from the past... I wouldn't hold out too much hope,
we're talking about something that's been on the inactive list for a
decade and a half at least, if memory serves.  Python 2.4 itself dates
to 2004. There does seem to be have been some effort to uplift Spambayes
to Python 3:

https://github.com/mpwillson/spambayes3

but in generic terms: "no module named" is always a path problem.  The
Python that is running and emits that error is looking in a place where
the code it's trying to import... isn't.  If you got it to work in some
scenario, you need to compare the version of Python involved in that
effort, and its paths (sys.path value) vs. what's getting run when you
try to execute the thing that's failing.


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ImportError: No module named spambayes.resources (line 12 of setup_all.py)

2022-08-24 Thread Barry


> On 24 Aug 2022, at 23:25, Mats Wichmann  wrote:
> 
> On 8/24/22 13:54, Erik M. Brown via Python-list wrote:
>> Is anyone here familiar with SpamBayes?  I am working with legacy 2.4.x
>> Python code (I'm not a programmer, more of a power user) and I'm attempting
>> to build the windows binary from the SpamBayes source.  
>> 
>> 
>> 
>> I'm running into an error when attempting to run "setup_all.py", the py2exe
>> setup script, and I get the following:
>> 
>> 
>> 
>> "ImportError: No module named spambayes.resources (line 12 of setup_all.py)"
> 
> 
> Wow, that's a blast from the past... I wouldn't hold out too much hope,
> we're talking about something that's been on the inactive list for a
> decade and a half at least, if memory serves.  Python 2.4 itself dates
> to 2004. There does seem to be have been some effort to uplift Spambayes
> to Python 3:
> 
> https://github.com/mpwillson/spambayes3
> 
> but in generic terms: "no module named" is always a path problem.  The
> Python that is running and emits that error is looking in a place where
> the code it's trying to import... isn't.  If you got it to work in some
> scenario, you need to compare the version of Python involved in that
> effort, and its paths (sys.path value) vs. what's getting run when you
> try to execute the thing that's failing.

On fedora I still use spambayes and it works great, but I have it
running under python 2.7. never did take on a port to python 3
I will have to consider that when python 2 finally is removed from fedora,
or use something else.

Barry

> 
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 

-- 
https://mail.python.org/mailman/listinfo/python-list