Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Fail to import icons_rc with Python 3.3
Qt 6.11 is out! See what's new in the release blog

Fail to import icons_rc with Python 3.3

Scheduled Pinned Locked Moved Language Bindings
2 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    robinsiebler
    wrote on last edited by
    #1

    I have a simple app I am working on. Everything worked fine under Python 2.7, but when I switched to Python 3.3, suddenly importing icons_rc fails. I have icons_rc.py in a subfolder and the subfolder contains an init.py file. If I move icons_rc.py into the main folder, it imports correctly.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      redstoneleo
      wrote on last edited by
      #2

      you'd better not move it.Each time when you run your program ,the current folder is always the one that the start file lives in.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved