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

NameError: name 'unicode' is not defined #164

Open
DCCP80 opened this issue Jan 22, 2025 · 1 comment
Open

NameError: name 'unicode' is not defined #164

DCCP80 opened this issue Jan 22, 2025 · 1 comment

Comments

@DCCP80
Copy link

DCCP80 commented Jan 22, 2025

I'm running the code from legends:
l = u"""colour, width, component lithology, component colour, component grainsize #F7E9A6, 3, Sandstone, Grey, VF-F #FF99CC, 2, Anhydrite, , #DBD6BC, 3, Heterolithic, Grey, #FF4C4A, 2, Volcanic, , #86F0B6, 5, Conglomerate, , #FF96F6, 2, Halite, , #F2FF42, 4, Sandstone, Grey, F-M #DBC9BC, 3, Heterolithic, Red, #A68374, 2, Siltstone, Grey, #A657FA, 3, Dolomite, , #FFD073, 4, Sandstone, Red, C-M #A6D1FF, 3, Limestone, , #FFDBBA, 3, Sandstone, Red, VF-F #FFE040, 4, Sandstone, Grey, C-M #A1655A, 2, Siltstone, Red, #363434, 1, Coal, , #664A4A, 1, Mudstone, Red, #666666, 1, Mudstone, Grey, """ from striplog import Legend legend = Legend.from_csv(text=1) legend[:5]

i get the following error:

Image

any advice on this? i'm using arcgis pro and a jupytr notebook. Pyhton 3

@DCCP80
Copy link
Author

DCCP80 commented Jan 22, 2025

Update:
I changed the name of the csv from 1 to color and it worked fine.

Image

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