pip "pyrax" dependency with iron worker - python

I created a Python script to use Rackspace's API (Pyrax) to handle some image processing. It works perfect locally, but when I upload it to Iron.io worker, it builds but does not import.
I am using a Windows 8 pc, but my boss runs OS X and uploading the exact worker package, it works fine. So I'm thinking it's something with Windows 8 but I don't know how to check/fix.
I do apologize in advance if I ramble or do not explain things clearly enough but any help would be greatly appreciated.
My worker file looks like this:
runtime "python"
exec "rackspace.py"
pip "pyrax"
full_remote_build true
Then I simply import pyrax in my python file.

I figured out that it was a bad Ruby install. No idea why, but reinstalling it worked.

It's difficult to know for sure what's happening without being able to see a traceback. Do you get anything like that which could be used to help figure out what's going on?

Related

Need help to understand how the app packed by py2app works

I'm using py2app to package my Python code(Tkinter app), but I'm facing a very strange problem.
I have two Macs, they both have an intel CPU, and they both have the same python version 3.9.8 installed. I packed my App on Mac1 using py2app, it works totally fine. However, on my another Mac2, if I run ./dist/MyApplication.app/Contents/MacOS/MyApplication in the terminal, it works totally fine as well, but if I run ./dist/MyApplication.app directly, it still works, I mean I can still open my App, but some functions will report an error. In addition, if I run the python code on Mac2, it also works totally fine.
I'm sorry I can't provide a reproducible example, but can someone give me a hint or any idea what is going on? How I can debug this issue? Thanks for your help.

How to setup python 3.9 on my windows command prompt? It shows an error python not found

I am trying since many hours, after watching several tutorials and reading many blogs I've setup variables as shown by them. Tried all of their methods to setup python3.9 on my windows cmd, but failed. I'm sharing some screenshots of my system variables and other things, please look into the problem and help me.
When you want to share on your post the errors you are getting, please insert them using the Code Sample function so that we can clearly read your errors and have a clear look at your situation.
Anyways, when you first install Python you have to option to automatically add Python to PATH, try uninstalling and checking that option.
If this doesn't work, paste inside your post the error you are getting.
EDIT: Can you share a screenshot of your Python directory?

Spyder/Anaconda not installed properly. How do I find it?

I have tried installing anaconda multiple times on my Windows’s 10 laptop however, when I look for it after installation in the start menu it isn’t there?
Neither is spyder? I tried downloading win python but that didn’t work either. Any help would be much appreciated. Thankyou.
For a standard installation you should have this folder
C:\Users\<USERNAME>\.anaconda\navigator\scripts
If so, start anaconda-navigator-app.bat and see if it works.
P.S.: I really can't recommend Spyder anymore, since it has multiple problems especially if you might work with Qt. VS Code seems to be a better alternative.

VSCode Mac debugging little issue

https://i.stack.imgur.com/k0Ypt.png
Hi guys!
I wanted to come back to the coding world and been practicing with VSCode on Mac. Since today, I don't know what I have done that every time that I debug Python code it shows me the image abobe. It's not a big issue but for me, it is very annoying since I like to keep things clean and simple.
I tried to uninstall every extension and add-on on VS and uninstall but I can solve it myself.
Thanks for the help!
That's the command to execute the debugger, so there's not much you can do about it without changing your launch.json to not use the terminal.
After a lot of trying there's no solution. It's just how VScode works on Mac.

Running ParseySaurus

I've been hacking around with Parsey McParseface and Parsey Universal. Google released their next version of the parser:
https://research.googleblog.com/2017/03/an-upgrade-to-syntaxnet-new-models-and.html
After a bit of looking I was able to find and download the models, but I can't seem to find a way to actually run them i.e.
echo "I have it working" | syntaxnet/models/parsey_saurus_english/parse.sh
There is no parse.sh and using the demo.sh or parsey_universals parse.sh also won't work.
Has anyone gotten them working or found a tutorial somewhere that I could get started with?
Thanks in advance
There has been a stall in the issue #2822 on github which makes it problematic to build syntaxnet with bazel. Instead I have modified the syntaxnet docker file and use that in my project. Here is a link to the repo.
Hope it helps :)

Categories