question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems using a package

See original GitHub issue

Hi there, the following simple script doesn’t work

#!/usr/bin/env zxpy

import toml

def main():
    toml_string = """
[test]
x = "something"
"""
    parsed_toml = toml.loads(toml_string)
    print(parsed_toml)


if __name__ == '__main__':
    main()

I get

Traceback (most recent call last):
  File "/home/manfred/.local/bin/zxpy", line 8, in <module>
    sys.exit(cli())
  File "/home/manfred/.local/lib/python3.8/site-packages/zx.py", line 56, in cli
    run_zxpy(filename, module)
  File "/home/manfred/.local/lib/python3.8/site-packages/zx.py", line 121, in run_zxpy
    exec(code, None, {'__name__': '__main__'})
  File "./x.py", line 15, in <module>
    main()
  File "./x.py", line 10, in main
    parsed_toml = toml.loads(toml_string)
NameError: name 'toml' is not defined

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
manfredlotzcommented, Jul 16, 2021

Yep, working fine now.

You are really quick. Much appreciated. Thanks a lot @tusharsadhwani and @jack1142 .

0reactions
tusharsadhwanicommented, Jul 16, 2021

@manfredlotz Alright, try again after doing pip install zxpy==1.4.2?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shipping Issues and Problems? 7 Fixes to the Most Common ...
7 Fixes to the Most Common Fulfillment Challenges. Lost packages. Damaged products and shipping containers. Hidden fees.
Read more >
Package Handling Problems | Community Associations Institute
Additionally, Associations are addressing growing concerns of parcel security and theft. For example, if a person is not available to accept a package,...
Read more >
8 Most Common Shipping & Fulfillment Problems (and how to ...
8 Most Common Shipping & Fulfillment Problems (and how to fix them) · Demand planning · Inventory management · Product packaging · Shipping...
Read more >
Shipping Problems: Common Shipping Issues and Problems
Shipping can be delayed for many reasons, but the most common are bad weather, incorrect addresses, and carrier mishaps. Severe weather like tornadoes, ......
Read more >
4 Common Package Delivery Problems - Fleet Couriers
4 Common Package Delivery Problems · PROBLEM: Your order is delayed · PROBLEM: The order arrived damaged · PROBLEM: The tracking number is ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found