Failed to import Arduino Sketch

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am attempting to add a touch screen to a large program, which I did not write. I am almost finished, but I have a bug that the Arduino IDE can't help me with.

 

When I try to import this sketch, in Atmel Studio 7, I get this message 'Failed to import Arduino Sketch:'NoneType' object has no attribute 'name'.

 

I imported some example programs, and the program with only my touch screen code without the large program, with no problems.

 

Is there any way of narrowing down this problem to something besides somewhere in this huge program?

 

By the way this program has a large number of options. These are enabled/disabled by using #ifdef statements. This makes this code difficult to follow. Like I said I did not write it.

73 Rodger

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

rkitchens wrote:
By the way this program has a large number of options. These are enabled/disabled by using #ifdef statements. This makes this code difficult to follow. Like I said I did not write it.

You could take a peek at the pre-processed source; that might clean it up a bit.

 

Oops -- never mind.  It is an import problem and not a build problem, right?

 

[edit]  Maybe it is a political situation, involving tariffs and import/export restrictions.  Perhaps it is illegal to import the sketch below in your political area?  Or the import duty has not been paid?

Image result for hand-drawn sketch arduino

devil

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

Last Edited: Tue. Oct 3, 2017 - 06:56 PM