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

"ImportError: attempted relative import beyond top-level package" when using a stim.extras.RandomDotKinematogram #13

Open
chrplr opened this issue Oct 16, 2024 · 2 comments

Comments

@chrplr
Copy link
Contributor

chrplr commented Oct 16, 2024

Hello,

When calling present_and_wait_keyboard() on a RandomDotKinematogram object, I get:


.expyriment/extras/expyriment_stimuli_extras/randomdotkinematogram/_randomdotkinematogram.py", line 251, in present_and_wait_keyboard
    from ... import _internals
ImportError: attempted relative import beyond top-level package

Other types of extras.stimuli like GaborPatch, DotCloud, work well.

@chrplr
Copy link
Contributor Author

chrplr commented Oct 16, 2024

Fixed by replacing ... by expyriment on line 251 of _randomdotkinematogram.py

@fladd fladd transferred this issue from expyriment/expyriment Oct 16, 2024
@fladd
Copy link
Member

fladd commented Oct 16, 2024

@lindemann09 Can you have a look at this?

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