3
votes

I have had trouble setting up the pycharm ide on my macosx10.7 with python3..

I have scoured every resource available and tried hundreds of approaches, at this point I must accept my incompetence and seek help via this channel.

In my research, I notice a lack of ground-up explanations on python integration into macosx and how to configure pycharm to import modules, run code within the editor, etc. If i ever solve this I will make a very detailed tutorial.

I have imported python3 successfully, it looks like it is linked appropriately from /sys/lib/frameworks to /usr/lib ...etc -- version control is working just fine.

I think my issue is either in setting environmental variables (tried the program to fix this and tried macports) and in the script needed to execute. it will catch errors throughout but final product does not run in python and returns printout of :

/Library/Frameworks/Python.framework/Versions/3.2/bin/python3.2 /Users/anon/Desktop/pythonpractice/Py_Ex/classes.py

Process finished with exit code 0

i really need to get this configuration sound for my python programming class. please help (I've been through every line of pycharm website) .. preferably is there a way to map it via terminal? thanks for anyone who took the time to read this.

1
or honestly any successful config.. I've had this problem with aptana /wingware / komodo .... i just need to find my error any ide will work at this point - Cory Brown
i keep erring at run configuration error --> please specify script name... what script is used here? - Cory Brown
I'm sorry to comment so often as i understand its frowned upon and will not happen again, i just need to include this error log to get a good answer : Either do the specified parameters not match any of the following constructors: Either do the specified parameters not match any of the following constructors: [edu.jetbrains.completionWithLiveTemplates.LiveTemplatesCompletionContributor()] or the constructors were not accessible for 'class edu.jetbrains.completionWithLiveTemplates.LiveTemplatesCompletionContributor': Either do the specified parameters not match any of the following co - Cory Brown
The last error you have comes from the third-party plug-in Extended Code Sense. Uninstall it in Preferences | Plugins. Provide the sample script to reproduce the problem, the error you get when running from Terminal, the error you get when running from PyCharm. - CrazyCoder
words don't encompass how grateful I am for the response ::: run output from pycharm : /Library/Frameworks/Python.framework/Versions/3.2/bin/python3.2 /Applications/PyCharm.app/helpers/run_coverage.py run --omit=/Applications/PyCharm.app/helpers /Users/anon/PycharmProjects/Python3/program1.py Process finished with exit code 0 - Cory Brown

1 Answers

4
votes

Summary of the discussion above:

  • Python 3.2.2 installation was broken on this Mac, installing ActiveState Python 3.2.2 from scratch and configuring it in PyCharm has fixed the problem.

  • Python path to be used in PyCharm settings: /Library/Frameworks/Python.framework/Versions/3.2/bin/python3

  • Incompatible third-party plug-ins may break PyCharm, uninstall/disable them in Preferences | Plugins.

  • Ensure the latest PyCharm version is installed.

  • User's code depends on the graphics.py module which was not in the project or in the PYTHONPATH. Putting it into the project has solved the problem.

  • Most likely the wrong Run/Debug configuration was used in PyCharm, the easiest way to run or debug such scripts is by using the editor context menu Run and Debug actions. PyCharm creates the configuration automatically and debugging works fine as shown of the screenshot:

debugging

  • If one wants to configure and debug it, he can use the code.zip file to get started.

Sorry for the comments mess above, but it was not possible to move it into chat as user had only 1 reputation point, hence not able to use the chat feature of StackOverflow.