Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QRC example is broken - Python's sys module only partially imported #84

Closed
drs251 opened this issue Aug 1, 2017 · 2 comments
Closed

Comments

@drs251
Copy link

drs251 commented Aug 1, 2017

I'm trying to learn how to use pyotherside by running the included examples, and I have the following problem with the QRC example:

"PyOtherSide error: Traceback (most recent call last):\n\n  File \"qrc:/below/qrc_example_below.py\", line 5, in <module>\n\nAttributeError: module 'sys' has no attribute 'path'\n"
Unhandled PyOtherSide error: Cannot import module: qrc_example_below (Traceback (most recent call last):

  File "qrc:/below/qrc_example_below.py", line 5, in <module>

This is quite weird, since the same call to sys.path works fine in qrc_example.qml. When I run print(dir(sys)) in both Python files, it appears that some parts are missing in qrc_example_below.py, although they're using the same version of Python3 (which I also checked). I tried on Windows 10 with MSVC 2015 and Qt 5.9.1 and 5.6.2 and Anaconda 4.4.0, as well as on Ubuntu with GCC and the included version of Python3. Any ideas what might be happening?

@thp thp closed this as completed in d1e3290 Oct 14, 2017
@thp
Copy link
Owner

thp commented Oct 14, 2017

The issue was that we were decref'ing an internal Python object when we shouldn't have. Fixed in d1e3290.

@thp
Copy link
Owner

thp commented Oct 14, 2017

Fix released as version 1.5.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants