Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
I cannot import modules
-
I told you that I tried to paste the traceback but your algorithm marked it as spam. So I pasted the traceback on another website. Did you read the traceback that I posted on the other website? Also, I have the
__init__
file in the same folder as my other files. It says that on the traceback that your algorithm blocked. -
Any idea what I should do now? I've done everything you told me so I don't understand why the help suddenly dried up?
-
This forum is not 24/7 support. Sitting in a pub, drinking beer, ... ;)
-
cool, what type of beer and where is the pub?
-
@bobsmith76 Hi. @zrzka is right about 24/7, for one reason: nobody here is paid to help anyone. Also @omz (Pythonista developer) can't answer to everyone asks something here.
But if you try to immagine to be the person that could help you, which kind of question would you prefer?
This simple question is in my opinion the only one that could help you on posting a good question (it is valid also for me: a good question in this case is: a question that has high probability to be answered).
So, sorry if I ask you something: can you post here a full-work example of code that creates the issues you have? If you don't want to post your work for any reason (privacy, ...) you should post a full-work limited example that reproduces the big code you are trying to use.
You can use here a dropbox link (or any other kind of cloud service) in order to allow user to download your example (with folders, files, scripts, ...) and try it with his/her own device (maybe someone could have some problems about executing some arbitrary code in his/her Pythonista for security reasons, but a full-working example shared with other people makes very easy to start to understand what and where is the problem you have with your code).
Regards
Bye -
@bobsmith76 Europe, Czech Republic, Rokytnice v Orlickych horach. I don't know which beer it is, some local one. Testing what do they have.
@Matteo it wasn't about paid support, happy to help for free, but people tend to forget that we live in different time zones, one can have morning, another one evening, ...
-
@zrzka yes, you are right. Howerver it is also good when people (like @bobsmith76) ask something because want to understand deeper, to learn something new and to solve problems. Sometimes I can't sleep when I have something I can't understand...
Anyway, @bobsmith76 try to post link to a full-work example that reproduces your problems.
Bye -
I'll wait for JonB to read the error message that I posted. Then we'll go from there.
http://www.dreamincode.net/forums/blog/2557/entry-5112-to-be-deleted/ -
@bobsmith76 That's an empty page (in Safari on my iPhone with iOS 10.3.3).
For uploading code or text snippets I'd suggest https://gist.github.com/ or https://pastebin.com/. Or you can wait a couple of days and try posing the text again, sometimes @omz manually whitelists legitimate users caught in the spam filter.
-
@bobsmith76 okay, now add to your simple script your failing import statement.
If you get an exception, copy the full traceback. you should be able to paste it to the forum with backticks, but if not, copy it into a new file in pythonista, and from the wrench menu, you can share it to an anonymous gist, then paste the link.. that is easier than emailing it.
-
Here is my gist
https://gist.github.com/anonymous/20cd6b7383a4875b20bc01724c08fecd
And here is my traceback, at least I think this is what that is. Once again, thanks for helping me out. I still cannot paste it in this forum even when I use backticks so here is a link a pastebin.
-
here is the traceback for the program that I really want to run
Let me post the complete code and expected output shortly.
-
This post is deleted! -
Which is the script you are running from the Play button?
I seefrom dictionary_new import large_dict
yet the traceback showsfrom .dictionary_new
Here is what I did:
- I created a folder in This Ipad (bobsmith)
- I put your scripts in the folder
- pressed play on intermed_code.py -- it imported dictionary_new without an issue.
If the issue is that you were testing things out in the console, or another script (import intermed_code), then you may need to set sys.path
sys.path.insert(0,os.path.expanduser('~/Documents/bobsmith')
-
got it working. The problem was that there were four possibilities and I was only trying 3 of them.
- dots before file name in the external library
- no dots before file name in the external library
- dots before file name in the script library
- no dots before file name in the script library
The fourth possibility was the one that worked. I want to thank you for sticking with me through this trying ordeal.
-
Also, I want to add that pythonista is a real big boost for me. You can't just whip out your laptop at a party and say 'hey, look I can calculate the consistency of sentences' but you can do that if you have an iphone.