Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.
/ pyspotify Public archive
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

'_lock' is not defined on exit when using python 3 #133

@trygveaa

Description

@trygveaa

When using pyspotify 2 (newest develop at current time) and python 3, I get this error when my script exits:

Exception ignored in: <function GcWeakrefs.__init__.<locals>.remove at 0x7f9c06ea4b70>
Traceback (most recent call last):
  File "/home/trygve/dev/pyspotify/venv3/lib/python3.4/site-packages/cffi-0.8.2-py3.4-linux-x86_64.egg/cffi/gc_weakref.py", line 12, in remove
  File "/home/trygve/dev/pyspotify/spotify/__init__.py", line 57, in wrapper
NameError: name '_lock' is not defined

It happens consistently, every time. The only code needed to make it happen is this:

import spotify
session = spotify.Session()

I'm running Python 3.4.0. When running Python 2.7.6, I don't get this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions