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

Can't use modules #31

Closed
yz55 opened this issue Jun 27, 2018 · 3 comments
Closed

Can't use modules #31

yz55 opened this issue Jun 27, 2018 · 3 comments

Comments

@yz55
Copy link

yz55 commented Jun 27, 2018

When trying to use some modules directly on a Mac, I got the following Error. Looks like it can't find the modules in this directory. I tried to move the icloud_contacts.py from the /server to the /bot directory, but that failed also.

bildschirmfoto 2018-06-27 um 02 33 59

If I run the server on Debian (python3) I can't even use the command "modules". I get an "AttributeError" with: 'module' object has no attribute 'module_from_spec'

screenshot_1

@Marten4n6
Copy link
Owner

Yesterday I forgot to commit the upload module which needed to follow new API changes, this should be the cause of the "modules" command throwing an error.
I'm still re-implementing modules from the old system to the new one, icloud_contacts will be added soon (the error is telling you the code can't be found).

Thanks!

Marten4n6 added a commit that referenced this issue Jun 27, 2018
@yz55
Copy link
Author

yz55 commented Jun 27, 2018

Updated, same error on "modules" command

@Marten4n6
Copy link
Owner

Marten4n6 commented Jun 27, 2018

The server uses importlib's module_from_spec to load modules from paths.
This only exists in Python 3.5, not 3.4. Can you try updating python3?

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