git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git-p4 fails with NameError with python 2.7.2

From
Luke Diamand <luke@diamand.org>
Date
Oct 20, 2015, 13:57 UTC
Message-ID
<CAE5ih793+YDd30rpMSyTHjUNZS+-BLY9D-kJkF9RAogjdctPFw@mail.gmail.com>
In-Reply-To
<CAJA=mv5Kdsn1YEo4sUAwpTv=0Jc8Xg5V2WPMoCmsxNL4Hnk=kg@mail.gmail.com>
On 20 October 2015 at 11:34, Etienne Girard <etienne.g.girard@gmail.com> wrote:
Show 11 quoted lines
> Hello,
>
> Git-p4 fail when I try to rebase with the error: "NameError: global
> name 'ctypes' is not defined". The error occurs when I use python
> 2.7.2 that is installed by default on my company's computers (it goes
> without saying that everything works fine with python 2.7.10).
>
> I'm a beginner in python, but simply importing ctypes at the beginning
> of the script does the trick. I was wondering if submitting a patch
> for this issue is worth the trouble, when a satisfying solution is not
> using a 4 years old version of python.
If you're able to submit a patch that would be great!

Thanks, Luke

Previous: Etienne GirardNext: Junio C Hamano
Message 2 of 10 in “Git-p4 fails with NameError with python 2.7.2”
  1. Etienne GirardOct 20, 2015
  2. Luke DiamandOct 20, 2015
  3. Junio C HamanoOct 20, 2015
  4. Manlio PerilloOct 20, 2015
  5. git-p4: import the ctypes moduleDennis Kaarsemaker, Oct 20, 2015
  6. Junio C HamanoOct 20, 2015
  7. Luke DiamandOct 20, 2015
  8. Etienne GirardOct 21, 2015
  9. Etienne GirardOct 21, 2015
  10. Lars SchneiderOct 21, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.