You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
from sknano.generators import SWNTBundleGenerator
/usr/local/lib/python3.5/dist-packages/sknano/core/refdata/element_data.yaml
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/sknano/generators/init.py", line 59, in
from ._base import *
File "/usr/local/lib/python3.5/dist-packages/sknano/generators/_base.py", line 19, in
from sknano.core.atoms import StructureAtom as Atom, StructureAtoms as Atoms
File "/usr/local/lib/python3.5/dist-packages/sknano/core/atoms/init.py", line 113, in
from ._atoms import *
File "/usr/local/lib/python3.5/dist-packages/sknano/core/atoms/_atoms.py", line 21, in
from sknano.core.refdata import atomic_masses, atomic_mass_symbol_map,
File "/usr/local/lib/python3.5/dist-packages/sknano/core/refdata/init.py", line 45, in
from ._element_data import *
File "/usr/local/lib/python3.5/dist-packages/sknano/core/refdata/_element_data.py", line 21, in
'element_data.yaml'))
File "/usr/local/lib/python3.5/dist-packages/sknano/core/_io.py", line 299, in loadobj
kwargs["Loader"] = Loader
NameError: name 'Loader' is not defined
I checked out the "_io.py" and realised I need something like "yaml" to define "Loader". This was not obvious from the output...
Then I googled and installed the following: $ sudo pip3 install pyyaml
Now it forwards to less files but still doesn't work:
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
from sknano.generators import SWNTBundleGenerator
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/sknano/generators/init.py", line 59, in
from ._base import *
File "/usr/local/lib/python3.5/dist-packages/sknano/generators/_base.py", line 19, in
from sknano.core.atoms import StructureAtom as Atom, StructureAtoms as Atoms
File "/usr/local/lib/python3.5/dist-packages/sknano/core/init.py", line 128, in
from ._io import *
File "/usr/local/lib/python3.5/dist-packages/sknano/core/_io.py", line 298
return yaml.load(fp, *args, **kwargs)
^
IndentationError: unindent does not match any outer indentation level
What to do?
The text was updated successfully, but these errors were encountered:
First I got this response:
I checked out the "_io.py" and realised I need something like "yaml" to define "Loader". This was not obvious from the output...
Then I googled and installed the following:
$ sudo pip3 install pyyaml
Now it forwards to less files but still doesn't work:
What to do?
The text was updated successfully, but these errors were encountered: