Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7835425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:37:36+00:00 2026-06-02T13:37:36+00:00

I have an application that used to work. I recently had a full reinstall

  • 0

I have an application that used to work. I recently had a full reinstall and tried to get the application working again, but I’ve run up against the problem in the title. I would appreciate any advice on next steps to investigate or try to get it working.

What happens:

ctypes_opencv.cvLoadImage('tmp.bmp', 1) #or a fully specified path

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\python32_32bit\lib\site-packages\ctypes_opencv\highgui.py", line 289, in cvLoadImage
    z = pointee(_cvLoadImage(filename, iscolor))
ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type

I tried using highgui.py’s _cvLoadImage directly and got the same error. I don’t think it’s getting to the pointee() function.

I haven’t been able to find anything I can pass to the function to make it not give me a TypeError. Hopefully I’m missing something obvious, but I haven’t changed the code that worked previously.

The setup of this system:

  • windows 7
  • python 3.2.3 32bit (previous installation was 3.1.x 32bit but I couldn’t find an installer for it this time)
  • opencv 1.0 (I never had luck with ctypes_opencv and opencv > 1.0)
  • ctypes_opencv 0.8.0
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T13:37:37+00:00Added an answer on June 2, 2026 at 1:37 pm

    Aaargh. I figured it out. ctypes_opencv apparently doesn’t accept unicode strings. So using a bytes literal works.

    ctypes_opencv.cvLoadImage(b'tmp.bmp', 1) 
    

    I hadn’t worried about trying that yet since it used to work with my 3.1.x installation. Weren’t all strings already unicode from the beginning of 3.x? I wrote the code myself so I am sure it hasn’t been changed since I used it last.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that used Macro. In this macro I would like to
Say I have an application that used an ORM (I am thinking of nHibernate
I have an application that is used on several hundred computers across the company
I have a C# application that is used by about a dozen employees simultaneously.
I have an existing 32-bit ASP.NET application that used 32-bit unmanaged DLLs. If I
I have a small lightweight application that is used as part of a larger
I have an application that was originally written in Borland C++ and used a
We have a Struts 2 web application that's used by pretty much every employee
We have an in house winform application that is used by about 20 users
The problem: we have one application that has a portion which is used by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.