Python Forum
using attachment for trouble in a project
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using attachment for trouble in a project
#1
my question :To MettulBurr. I think there is an error in the tree. So I join two attacments(screenshots), because the tree is very high. PyCharm tells he cannot import AI. Thanks for your help.

my code here

Unfortunately I cannot join the second screenshot in the same thread. If you like I will make a second thread.

Attached Files

Thumbnail(s)
   
Reply
#2
You should be able to attach a second screenshot. It has to be stored as a different name.
You can place in line like:
  • New Attachment
  • Browse
  • Select Attachment]
  • Click in your post where you want the attachment to appear
  • Click Insert Into Post (bottom of window (may not be visible without scrolling)
  • Done!
   
Reply
#3
Here is the second attachment:

Here is the first:

Attached Files

Thumbnail(s)
       
Reply
#4
you dont need to import the project into pycharm to run it at all. You just need to execute game.py in the root directory. I am assuming your trying to run it?
Recommended Tutorials:
Reply
#5
Thanks for your reply. I should like to have a whole project in my PyCharm. Till now I worked with standalone files. Please look at the tree in the screenshots, and tell me where the error is.
Reply
#6
Im not sure, i dont use pycharm
Recommended Tutorials:
Reply
#7
Since it is you the creator of this game, it is easy for you to send me the tree, using 2 screenshots. Thanks
Reply
#8
im not sure why you would need the tree structure? The structure is there in Github
Recommended Tutorials:
Reply
#9
File "/home/sylvain/PycharmProjects/ping/data/states/classic.py", line 7, in <module>
    from .. import AI
ImportError: cannot import name 'AI'......Look please at the upper side of my tree. There is something like a break. I followed as much as possible GitHub. Thanks again.
Reply
#10
i think pycharm is messing something up. You dont need PyCharm or any other IDE. Just clone the repo and execute it directly.
metulburr@ubuntu:~$ git clone https://github.com/metulburr/pong.git
Cloning into 'pong'...
remote: Counting objects: 583, done.
remote: Total 583 (delta 0), reused 0 (delta 0), pack-reused 583
Receiving objects: 100% (583/583), 17.67 MiB | 7.86 MiB/s, done.
Resolving deltas: 100% (338/338), done.
Checking connectivity... done.

metulburr@ubuntu:~$ cd pong

metulburr@ubuntu:~/pong$ ls
data  game.exe  game.py  LICENSE  readme.md  resources  setup.py

metulburr@ubuntu:~/pong$ python game.py
difficulty: medium
window size: [800, 600]
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to download TLS Report attachment blason16 6 661 Feb-26-2024, 07:36 AM
Last Post: Pedroski55
  Extract PDF Attachment from Gmail jstaffon 0 621 Sep-10-2023, 01:55 PM
Last Post: jstaffon
  I get attachment paperclip on email without any attachments monika_v 5 2,122 Mar-19-2022, 10:20 PM
Last Post: cosmarchy
  Trying to determine attachment file type before saving off.. cubangt 1 2,259 Feb-23-2022, 07:45 PM
Last Post: cubangt
  Clicking Every Page and Attachment on Website shoulddt 1 1,803 Jul-09-2021, 01:08 PM
Last Post: snippsat
  ATT00001 instead of PDF attachment to an email dominiklucas 0 3,815 Jul-25-2020, 04:05 PM
Last Post: dominiklucas
  Sending an email with attachment without using SMTP? PythonNPC 5 3,316 May-05-2020, 07:58 AM
Last Post: PythonNPC
  download base64 email attachment cferguson 3 4,832 Feb-25-2020, 06:50 PM
Last Post: cferguson
  Add png to the body of the email, not the attachment Ivan87 8 6,079 Dec-14-2018, 11:05 AM
Last Post: wavic
  How can read and download the attachment from the mail using while loop in IMAPlib Py Samjith 0 4,386 Oct-11-2018, 07:15 AM
Last Post: Samjith

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020