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 get the python example to work #5

Closed
Neon22 opened this issue Sep 7, 2021 · 2 comments
Closed

can't get the python example to work #5

Neon22 opened this issue Sep 7, 2021 · 2 comments

Comments

@Neon22
Copy link
Collaborator

Neon22 commented Sep 7, 2021

Probably me or a python 3 issue with way the __init__ work is done.

However I can't get this to work in python code (commandline is working)

from pyweaving import WIFReader

checked the dir() as well - nothing there.
Just cant work out how to get the rest of the internal code. :(

E.g.

import pyweaving as pw
dir(pw)
['Color', 'Draft', 'DraftError', 'Shaft', 'Treadle', 'WarpThread', 'WeftThread', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__',
 'absolute_import', 'datetime', 'deepcopy', 'defaultdict', 'division', 'json', 'print_function', 'unicode_literals']
@Neon22
Copy link
Collaborator Author

Neon22 commented Jan 10, 2022

OK. Going to reorganize so the init file pulls in the components and presents as a whole.
Still want the Script to work but also allow easy import pyweaving as pw (for example)
see Issue #4
Will present with python 3 mods for release.

@Neon22
Copy link
Collaborator Author

Neon22 commented Feb 21, 2022

now reorganised into new init structure and python 3.8+

@Neon22 Neon22 closed this as completed Feb 21, 2022
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

1 participant